Build: #176 failed

Job: Unit and Component Tests failed

Stages & jobs

  1. Default Stage

Test results

  • 2,538 tests in total
  • 5 tests failed
  • 5 failures are new
  • 1 test was fixed
  • 9 minutes taken in total.

Build 176 has the following 5 errors: 5 new failure(s) occurred since the previous build.

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...)