OpenMRS Core Master

Build: #1369 failed

Job: Integration Test failed

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Should fail if there are drugs with dose strength and no null units: Test case result

The below summarizes the result of the test "Should fail if there are drugs with dose strength and no null units" in build 1,369 of OpenMRS Core - OpenMRS Core Master - Integration Test. View test case history
Description
Should fail if there are drugs with dose strength and no null units
Test class
org.openmrs.util.databasechange.Database1_9_7UpgradeIT
Method
shouldFailIfThereAreDrugsWithDoseStrengthAndNoNullUnits
Duration
13 secs
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::201403262140-TRUNK-4265::wyclif")
     but: exception with message a string containing "liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201403262140-TRUNK-4265::wyclif" message was "liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-2.0.xml::20090402-1519-concept_map::bwolfe:
     Reason: liquibase.exception.DatabaseException: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]"
Stacktrace was: java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-2.0.xml::20090402-1519-concept_map::bwolfe:
     Reason: liquibase.exception.DatabaseException: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]
 at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:233)
 at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:221)
 at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldFailIfThereAreDrugsWithDoseStrengthAndNoNullUnits(Database1_9_7UpgradeIT.java:356)
 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:47)
 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
 at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
 at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:73)
 at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
 at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
 at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:168)
 at org.junit.rules.RunRules.evaluate(RunRules.java:20)
 at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:73)
 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
 at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:217)
 at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:83)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
 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:68)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
 at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:163)
 at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
 at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-2.0.xml::20090402-1519-concept_map::bwolfe:
     Reason: liquibase.exception.DatabaseException: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]
 at liquibase.changelog.ChangeSet.execute(ChangeSet.java:347)
 at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
 at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
 at liquibase.Liquibase.update(Liquibase.java:114)
 at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:228)
 ... 38 more
Caused by: liquibase.exception.DatabaseException: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]
 at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)
 at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)
 at liquibase.database.AbstractDatabase.execute(AbstractDatabase.java:1091)
 at liquibase.database.AbstractDatabase.executeStatements(AbstractDatabase.java:1075)
 at liquibase.changelog.ChangeSet.execute(ChangeSet.java:317)
 ... 42 more
Caused by: org.h2.jdbc.JdbcSQLException: Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
 at org.h2.message.DbException.get(DbException.java:179)
 at org.h2.message.DbException.get(DbException.java:155)
 at org.h2.schema.Schema.getTableOrView(Schema.java:438)
 at org.h2.command.ddl.CreateIndex.update(CreateIndex.java:60)
 at org.h2.command.CommandContainer.update(CommandContainer.java:78)
 at org.h2.command.Command.executeUpdate(Command.java:254)
 at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:184)
 at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:158)
 at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
 at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
 ... 46 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::201403262140-TRUNK-4265::wyclif")
     but: exception with message a string containing "liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201403262140-TRUNK-4265::wyclif" message was "liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-2.0.xml::20090402-1519-concept_map::bwolfe:
     Reason: liquibase.exception.DatabaseException: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]"
Stacktrace was: java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-2.0.xml::20090402-1519-concept_map::bwolfe:
     Reason: liquibase.exception.DatabaseException: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]
	at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:233)
	at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:221)
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldFailIfThereAreDrugsWithDoseStrengthAndNoNullUnits(Database1_9_7UpgradeIT.java:356)
	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:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:73)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
	at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:168)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:73)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:217)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:83)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	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:68)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:163)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-2.0.xml::20090402-1519-concept_map::bwolfe:
     Reason: liquibase.exception.DatabaseException: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]:
          Caused By: Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]
	at liquibase.changelog.ChangeSet.execute(ChangeSet.java:347)
	at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
	at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
	at liquibase.Liquibase.update(Liquibase.java:114)
	at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:228)
	... 38 more
Caused by: liquibase.exception.DatabaseException: Error executing SQL CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid): Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]
	at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)
	at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)
	at liquibase.database.AbstractDatabase.execute(AbstractDatabase.java:1091)
	at liquibase.database.AbstractDatabase.executeStatements(AbstractDatabase.java:1075)
	at liquibase.changelog.ChangeSet.execute(ChangeSet.java:317)
	... 42 more
Caused by: org.h2.jdbc.JdbcSQLException: Table "CONCEPT_MAP" not found; SQL statement:
CREATE UNIQUE INDEX concept_map_uuid_index ON concept_map(uuid) [42102-187]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
	at org.h2.message.DbException.get(DbException.java:179)
	at org.h2.message.DbException.get(DbException.java:155)
	at org.h2.schema.Schema.getTableOrView(Schema.java:438)
	at org.h2.command.ddl.CreateIndex.update(CreateIndex.java:60)
	at org.h2.command.CommandContainer.update(CommandContainer.java:78)
	at org.h2.command.Command.executeUpdate(Command.java:254)
	at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:184)
	at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:158)
	at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
	at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
	... 46 more

	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.junit.Assert.assertThat(Assert.java:865)
	at org.junit.Assert.assertThat(Assert.java:832)
	at org.junit.rules.ExpectedException.handleException(ExpectedException.java:198)
	at org.junit.rules.ExpectedException.access$500(ExpectedException.java:85)
	at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:177)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:73)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:217)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:83)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	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:68)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:163)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)