Skip to content

Instantly share code, notes, and snippets.

@ssmusoke
Created June 28, 2019 13:39
Show Gist options
  • Save ssmusoke/3b97c59bd142a8e9f5480dea48d90645 to your computer and use it in GitHub Desktop.
Save ssmusoke/3b97c59bd142a8e9f5480dea48d90645 to your computer and use it in GitHub Desktop.
Running org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport
ERROR - SchemaUpdate.execute(261) |2019-06-28 13:49:49,688| HHH000388: Unsuccessful: alter table concept_set add constraint FK_q1dxs9mdmm0fqi89gv7c9io56 foreign key (concept_id) references concept (concept_id)
ERROR - SchemaUpdate.execute(262) |2019-06-28 13:49:49,691| Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-87e_e`, CONSTRAINT `FK_q1dxs9mdmm0fqi89gv7c9io56` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`))
Setting Parameters
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 61.247 sec <<< FAILURE!
test106AExport(org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport) Time elapsed: 23.733 sec <<< ERROR!
org.openmrs.module.metadatadeploy.MissingMetadataException: No such EncounterType with identifier '8d5b27bc-c2cc-11de-8d13-0010c6dffd0f'
at org.openmrs.module.metadatadeploy.MetadataUtils.existing(MetadataUtils.java:56)
at org.openmrs.module.ugandaemrreports.metadata.HIVMetadata.getARTSummaryPageEncounterType(HIVMetadata.java:152)
at org.openmrs.module.ugandaemrreports.library.HIVCohortDefinitionLibrary.getEnrolledInCareByEndOfPreviousDate(HIVCohortDefinitionLibrary.java:48)
at org.openmrs.module.ugandaemrreports.reports.Setup106A1AReport.constructReportDefinition(Setup106A1AReport.java:98)
at org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport.test106AExport(TestSetup106A1AReport.java:32)
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.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.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:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Results :
Tests in error:
test106AExport(org.openmrs.module.ugandaemrreports.reports.TestSetup106A1AReport): No such EncounterType with identifier '8d5b27bc-c2cc-11de-8d13-0010c6dffd0f'
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment