Runs unit test and deploys artifacts to artifactory. More details of the release in https://wiki.openmrs.org/x/i4DTAw

Build: #28 failed Changes by Wyclif Luyima

Stages & jobs

  1. Test module

  2. Release

    Requires a user to start manually

Build result summary

Details

Completed
Queue duration
< 1 second
Duration
54 seconds
Labels
None
Revisions
Git
d4c09f30f8a49f60fb3b012acb3b8eb53a07f774 d4c09f30f8a49f60fb3b012acb3b8eb53a07f774
Release scripts
ab83775184d5fb0f928388fa25ee675b855dd53c ab83775184d5fb0f928388fa25ee675b855dd53c
Total tests
76
Fixed in
#29 (Changes by Wyclif Luyima)

Tests

Responsible

Code commits

Git
Author Commit Message Commit date
Wyclif Luyima Wyclif Luyima d4c09f30f8a49f60fb3b012acb3b8eb53a07f774 d4c09f30f8a49f60fb3b012acb3b8eb53a07f774 Moved location based access constants to another class and all tests to the locations sub package
Signed-off-by: Wyclif Luyima <wyclif@openmrs.org>

Tests

New test failures 19
Status Test View job Duration
Collapse Failed EncounterAllFiltersTest getEncounters_shouldReturnEncountersBelongingToPatientsAccessibleToTheUser History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<2> but was:<4>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.EncounterAllFiltersTest.getEncounters_shouldReturnEncountersBelongingToPatientsAccessibleToTheUser(EncounterAllFiltersTest.java:52)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterAllFiltersTest getEncounters_shouldReturnNoEncountersIfTheUserIsNotGrantedAnyAccess History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<0> but was:<4>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.EncounterAllFiltersTest.getEncounters_shouldReturnNoEncountersIfTheUserIsNotGrantedAnyAccess(EncounterAllFiltersTest.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterEncTypeViewPrivilegeBasedFilterTest getEncounters_shouldIncludeEncountersThatRequireAPrivilegeAndTheUserHasIt History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<3> but was:<4>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.EncounterEncTypeViewPrivilegeBasedFilterTest.getEncounters_shouldIncludeEncountersThatRequireAPrivilegeAndTheUserHasIt(EncounterEncTypeViewPrivilegeBasedFilterTest.java:60)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterEncTypeViewPrivilegeBasedFilterTest getEncounters_shouldExcludeEncountersThatRequireAPrivilege History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<3> but was:<4>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.EncounterEncTypeViewPrivilegeBasedFilterTest.getEncounters_shouldExcludeEncountersThatRequireAPrivilege(EncounterEncTypeViewPrivilegeBasedFilterTest.java:51)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterEncTypeViewPrivilegeBasedFilterTest getVisits_shouldExcludePrivilegedEncountersOfTheVisitIfTheUserHasNoRequiredPrivilege History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<2> but was:<4>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.EncounterEncTypeViewPrivilegeBasedFilterTest.getVisits_shouldExcludePrivilegedEncountersOfTheVisitIfTheUserHasNoRequiredPrivilege(EncounterEncTypeViewPrivilegeBasedFilterTest.java:111)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterLocationBasedFilterTest getEncounters_shouldReturnEncountersBelongingToPatientsAccessibleToTheUser History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<2> but was:<3>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.EncounterLocationBasedFilterTest.getEncounters_shouldReturnEncountersBelongingToPatientsAccessibleToTheUser(EncounterLocationBasedFilterTest.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterLocationBasedFilterTest getEncounters_shouldReturnNoEncountersIfTheUserIsNotGrantedAccessToAnyBasis History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<0> but was:<3>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.EncounterLocationBasedFilterTest.getEncounters_shouldReturnNoEncountersIfTheUserIsNotGrantedAccessToAnyBasis(EncounterLocationBasedFilterTest.java:44)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ObsEncTypeViewPrivilegeBasedFilterTest getObs_shouldIncludeEncountersThatRequireAPrivilegeAndTheUserHasIt History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<0> but was:<1>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.ObsEncTypeViewPrivilegeBasedFilterTest.getObs_shouldIncludeEncountersThatRequireAPrivilegeAndTheUserHasIt(ObsEncTypeViewPrivilegeBasedFilterTest.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ObsEncTypeViewPrivilegeBasedFilterTest getObs_shouldExcludeEncountersThatRequireAPrivilege History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<0> but was:<1>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.ObsEncTypeViewPrivilegeBasedFilterTest.getObs_shouldExcludeEncountersThatRequireAPrivilege(ObsEncTypeViewPrivilegeBasedFilterTest.java:61)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ObsLocationBasedFilterTest getObs_shouldReturnObsBelongingToPatientsAccessibleToTheUser History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<2> but was:<3>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.ObsLocationBasedFilterTest.getObs_shouldReturnObsBelongingToPatientsAccessibleToTheUser(ObsLocationBasedFilterTest.java:66)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ObsLocationBasedFilterTest getObs_shouldReturnNoObsIfTheUserIsNotGrantedAccessToAnyBasis History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<0> but was:<3>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.ObsLocationBasedFilterTest.getObs_shouldReturnNoObsIfTheUserIsNotGrantedAccessToAnyBasis(ObsLocationBasedFilterTest.java:58)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed PatientLocationBasedFilterTest getPatients_shouldReturnNoPatientsIfTheUserIsNotGrantedAccessToAnyBasis History
Build and test Module < 1 sec
org.hibernate.search.exception.SearchException: HSEARCH000115: Unknown @FullTextFilter: 'datafilter_locationBasedPatientFullTextFilter'
	at org.hibernate.search.query.engine.impl.HSQueryImpl.enableFullTextFilter(HSQueryImpl.java:389)
	at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.enableFullTextFilter(FullTextQueryImpl.java:318)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:81)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:34)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)
(80 more lines...)
Collapse Failed PatientLocationBasedFilterTest getPatients_shouldReturnPatientsByIdentifierAccessibleToTheUser History
Build and test Module < 1 sec
org.hibernate.search.exception.SearchException: HSEARCH000115: Unknown @FullTextFilter: 'datafilter_locationBasedPatientFullTextFilter'
	at org.hibernate.search.query.engine.impl.HSQueryImpl.enableFullTextFilter(HSQueryImpl.java:389)
	at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.enableFullTextFilter(FullTextQueryImpl.java:318)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:81)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:34)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)
(80 more lines...)
Collapse Failed PatientLocationBasedFilterTest getPatients_shouldReturnPatientsByPersonAttributeAccessibleToTheUser History
Build and test Module < 1 sec
org.hibernate.search.exception.SearchException: HSEARCH000115: Unknown @FullTextFilter: 'datafilter_locationBasedPatientFullTextFilter'
	at org.hibernate.search.query.engine.impl.HSQueryImpl.enableFullTextFilter(HSQueryImpl.java:389)
	at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.enableFullTextFilter(FullTextQueryImpl.java:318)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:81)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:34)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)
(80 more lines...)
Collapse Failed PatientLocationBasedFilterTest getAllPatients_shouldReturnNoPatientsIfTheUserIsNotGrantedAccessToAnyBasis History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<0> but was:<11>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.PatientLocationBasedFilterTest.getAllPatients_shouldReturnNoPatientsIfTheUserIsNotGrantedAccessToAnyBasis(PatientLocationBasedFilterTest.java:72)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed PatientLocationBasedFilterTest getPatients_shouldReturnPatientsByNameAccessibleToTheUser History
Build and test Module < 1 sec
org.hibernate.search.exception.SearchException: HSEARCH000115: Unknown @FullTextFilter: 'datafilter_locationBasedPatientFullTextFilter'
	at org.hibernate.search.query.engine.impl.HSQueryImpl.enableFullTextFilter(HSQueryImpl.java:389)
	at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.enableFullTextFilter(FullTextQueryImpl.java:318)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:81)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:34)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)
(80 more lines...)
Collapse Failed PatientLocationBasedFilterTest getAllPatients_shouldReturnPatientsAccessibleToTheUser History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<3> but was:<11>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.PatientLocationBasedFilterTest.getAllPatients_shouldReturnPatientsAccessibleToTheUser(PatientLocationBasedFilterTest.java:52)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed VisitLocationBasedFilterTest getVisits_shouldReturnNoVisitsIfTheUserIsNotGrantedAccessToAnyBasis History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<0> but was:<3>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.VisitLocationBasedFilterTest.getVisits_shouldReturnNoVisitsIfTheUserIsNotGrantedAccessToAnyBasis(VisitLocationBasedFilterTest.java:49)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed VisitLocationBasedFilterTest getVisits_shouldReturnVisitsBelongingToPatientsAccessibleToTheUser History
Build and test Module < 1 sec
java.lang.AssertionError: expected:<2> but was:<3>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.openmrs.module.datafilter.location.VisitLocationBasedFilterTest.getVisits_shouldReturnVisitsBelongingToPatientsAccessibleToTheUser(VisitLocationBasedFilterTest.java:57)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)