OpenMRS Core Master
Build: #2207 failed
Job: Integration Test failed
Should fail migrating drug orders if units to concepts mappings is not set: Test case result
The below summarizes the result of the test "Should fail migrating drug orders if units to concepts mappings is not set" in build 2,207 of OpenMRS Core - OpenMRS Core Master - Integration Test.
- Description
- Should fail migrating drug orders if units to concepts mappings is not set
- Test class
- org.openmrs.util.databasechange.Database1_9_7UpgradeIT
- Method
- shouldFailMigratingDrugOrdersIfUnitsToConceptsMappingsIsNotSet
- Duration
- 1 sec
- Status
- Failed (New Failure)
Error Log
java.lang.AssertionError: Expected: (an instance of java.io.IOException and exception with message a string containing "liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201401101647-TRUNK-4187::wyclif" and exception with message a string containing "Your order entry upgrade settings file does not have mapping for mg. Please refer to upgrade instructions for more details.") but: exception with message a string containing "liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201401101647-TRUNK-4187::wyclif" message was "liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest-2.0.x.xml::20090402-1519-concept_map::bwolfe: Reason: liquibase.exception.DatabaseException: Table "CONCEPT_MAP" not found; SQL statement: CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid) [42102-199] [Failed SQL: (42102) CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid)]" Stacktrace was: java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest-2.0.x.xml::20090402-1519-concept_map::bwolfe: Reason: liquibase.exception.DatabaseException: Table "CONCEPT_MAP" not found; SQL statement: CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid) [42102-199] [Failed SQL: (42102) CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid)] at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:236) at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:220) at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldFailMigratingDrugOrdersIfUnitsToConceptsMappingsIsNotSet(Database1_9_7UpgradeIT.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74) at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:258) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest-2.0.x.xml::20090402-1519-concept_map::bwolfe: Reason: liquibase.exception.DatabaseException: Table "CONCEPT_MAP" not found; SQL statement: CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid) [42102-199] [Failed SQL: (42102) CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid)] at liquibase.changelog.ChangeSet.execute(ChangeSet.java:646) at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:53) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:83) at liquibase.Liquibase.update(Liquibase.java:202) at liquibase.Liquibase.update(Liquibase.java:179) at liquibase.Liquibase.update(Liquibase.java:175) at liquibase.Liquibase.update(Liquibase.java:168) at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:231) ... 41 more Caused by: liquibase.exception.DatabaseException: Table "CONCEPT_MAP" not found; SQL statement: CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid) [42102-199] [Failed SQL: (42102) CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid)] at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:402) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:59) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:131) at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1276) at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1258) at liquibase.changelog.ChangeSet.execute(ChangeSet.java:609) ... 48 more Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "CONCEPT_MAP" not found; SQL statement: CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid) [42102-199] at org.h2.message.DbException.getJdbcSQLException(DbException.java:451) at org.h2.message.DbException.getJdbcSQLException(DbException.java:427) at org.h2.message.DbException.get(DbException.java:205) at org.h2.message.DbException.get(DbException.java:181) at org.h2.command.ddl.CreateIndex.update(CreateIndex.java:70) at org.h2.command.CommandContainer.update(CommandContainer.java:133) at org.h2.command.Command.executeUpdate(Command.java:267) at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:233) at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:205) at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:398) ... 53 more java.lang.AssertionError: Expected: (an instance of java.io.IOException and exception with message a string containing "liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201401101647-TRUNK-4187::wyclif" and exception with message a string containing "Your order entry upgrade settings file does not have mapping for mg. Please refer to upgrade instructions for more details.") but: exception with message a string containing "liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201401101647-TRUNK-4187::wyclif" message was "liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest-2.0.x.xml::20090402-1519-concept_map::bwolfe: Reason: liquibase.exception.DatabaseException: Table "CONCEPT_MAP" not found; SQL statement: CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid) [42102-199] [Failed SQL: (42102) CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid)]" Stacktrace was: java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest-2.0.x.xml::20090402-1519-concept_map::bwolfe: Reason: liquibase.exception.DatabaseException: Table "CONCEPT_MAP" not found; SQL statement: CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid) [42102-199] [Failed SQL: (42102) CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid)] at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:236) at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:220) at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldFailMigratingDrugOrdersIfUnitsToConceptsMappingsIsNotSet(Database1_9_7UpgradeIT.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74) at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:258) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest-2.0.x.xml::20090402-1519-concept_map::bwolfe: Reason: liquibase.exception.DatabaseException: Table "CONCEPT_MAP" not found; SQL statement: CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid) [42102-199] [Failed SQL: (42102) CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid)] at liquibase.changelog.ChangeSet.execute(ChangeSet.java:646) at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:53) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:83) at liquibase.Liquibase.update(Liquibase.java:202) at liquibase.Liquibase.update(Liquibase.java:179) at liquibase.Liquibase.update(Liquibase.java:175) at liquibase.Liquibase.update(Liquibase.java:168) at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:231) ... 41 more Caused by: liquibase.exception.DatabaseException: Table "CONCEPT_MAP" not found; SQL statement: CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid) [42102-199] [Failed SQL: (42102) CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid)] at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:402) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:59) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:131) at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1276) at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1258) at liquibase.changelog.ChangeSet.execute(ChangeSet.java:609) ... 48 more Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "CONCEPT_MAP" not found; SQL statement: CREATE UNIQUE INDEX PUBLIC.concept_map_uuid_index ON PUBLIC.concept_map(uuid) [42102-199] at org.h2.message.DbException.getJdbcSQLException(DbException.java:451) at org.h2.message.DbException.getJdbcSQLException(DbException.java:427) at org.h2.message.DbException.get(DbException.java:205) at org.h2.message.DbException.get(DbException.java:181) at org.h2.command.ddl.CreateIndex.update(CreateIndex.java:70) at org.h2.command.CommandContainer.update(CommandContainer.java:133) at org.h2.command.Command.executeUpdate(Command.java:267) at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:233) at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:205) at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:398) ... 53 more