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(org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs2_2.DiagnosisResource2_2Test)  Time elapsed: 0.034 sec  <<< ERROR!
org.dbunit.DatabaseUnitRuntimeException: org.dbunit.dataset.NoSuchTableException: condition
	at org.dbunit.database.DatabaseDataSet.getTableMetaData(DatabaseDataSet.java:305)
	at org.dbunit.operation.AbstractOperation.getOperationMetaData(AbstractOperation.java:80)
	at org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:101)
	at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(BaseContextSensitiveTest.java:785)
	at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(BaseContextSensitiveTest.java:679)
	at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs2_2.DiagnosisResource2_2Test.before(DiagnosisResource2_2Test.java:25)
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.

Mike

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.