Build: #176 failed

Job: Unit and Component Tests failed

Stages & jobs

  1. Default Stage

Job result summary

Completed
Duration
9 minutes
Revision
ccd0cef96a4609ad4d899c46f1c23621d289b1cb ccd0cef96a4609ad4d899c46f1c23621d289b1cb
Total tests
2538
Failing since
#175 (Code changes detected – )
Fixed in
#177 (Code changes detected)

Tests

  • 2,538 tests in total
  • 5 tests failed
  • 5 failures are new
  • 1 test was fixed
  • 9 minutes taken in total.
New test failures 5
Status Test Duration
Collapse Failed OrderServiceTest saveOrderFrequency_shouldAddANewOrderFrequencyToTheDatabase History
< 1 sec
org.hibernate.exception.ConstraintViolationException: could not insert: [org.openmrs.OrderFrequency]
	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
	at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:64)
	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2345)
	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2852)
	at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)
	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273)
(94 more lines...)
Collapse Failed Database1_9To1_10UpgradeTest shouldConvertOrderersToBeingProvidersInsteadOfUsers History
11 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20140313-TRUNK-4288::dszafranek:      Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:           Caused By: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:           Caused By: Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20140313-TRUNK-4288::dszafranek:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:
          Caused By: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:
          Caused By: Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]
(68 more lines...)
Collapse Failed Database1_9To1_10UpgradeTest shouldMigrateDrugOrders History
6 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20140313-TRUNK-4288::dszafranek:      Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:           Caused By: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:           Caused By: Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20140313-TRUNK-4288::dszafranek:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:
          Caused By: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:
          Caused By: Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]
(68 more lines...)
Collapse Failed Database1_9To1_10UpgradeTest shouldPassIfAllExistingDrugOrderUnitsAndFrequenciesAreMappedToConcepts History
6 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20140313-TRUNK-4288::dszafranek:      Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:           Caused By: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:           Caused By: Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20140313-TRUNK-4288::dszafranek:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:
          Caused By: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:
          Caused By: Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]
(68 more lines...)
Collapse Failed Database1_9To1_10UpgradeTest shouldUpgradeFromClean1_9To1_10 History
7 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20140313-TRUNK-4288::dszafranek:      Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:           Caused By: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:           Caused By: Column "ORDER_TYPE" not found; SQL statement: ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20140313-TRUNK-4288::dszafranek:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:
          Caused By: Error executing SQL ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id): Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]:
          Caused By: Column "ORDER_TYPE" not found; SQL statement:
ALTER TABLE order_type_class_map ADD CONSTRAINT fk_order_type_order_type_id FOREIGN KEY (order_type) REFERENCES order_type (order_type_id) [42122-135]
(68 more lines...)
Fixed tests 1
Status Test Failing since Duration
Successful ModuleActivatorTest shouldStopDependantModulesOnStopModule History
Failing since build #175 (Code changes detected) < 1 sec