REST web services clean checkout tests fail

With a clean checkout and “mvn clean install” of the of the REST web services module, the 2.2 OMOD tests fails with the following error. Is there a special profile one needs to set up to build this module?

asRepresentation_shouldReturnValidRefRepresentation(  Time elapsed: 0.034 sec  <<< ERROR!
org.dbunit.DatabaseUnitRuntimeException: org.dbunit.dataset.NoSuchTableException: condition
	at org.dbunit.database.DatabaseDataSet.getTableMetaData(
	at org.dbunit.operation.AbstractOperation.getOperationMetaData(
	at org.dbunit.operation.RefreshOperation.execute(
	at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(
	at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(
1 Like

FYI - I looked into this and committed a fix here:

No idea how/why this was previously working in CI or for involved developers in their local builds.


Is it possible that a change was made to core that introduced this error but the REST module isn’t automatically triggered by a change to core and therefore this went unnoticed?

@mogoodrich you are correct.