From 0b6a1469451fd8b2c97a8de08bef14dd5dbc4d7a Mon Sep 17 00:00:00 2001 From: James Agnew Date: Wed, 16 May 2018 14:24:55 -0400 Subject: [PATCH] Don't do karaf verifier by default --- .../FhirInstanceValidatorR4Test.java | 17 +++-- osgi/hapi-fhir-karaf-features/pom.xml | 74 ++++++++++++------- 2 files changed, 55 insertions(+), 36 deletions(-) diff --git a/hapi-fhir-validation/src/test/java/org/hl7/fhir/r4/validation/FhirInstanceValidatorR4Test.java b/hapi-fhir-validation/src/test/java/org/hl7/fhir/r4/validation/FhirInstanceValidatorR4Test.java index f0405143199..59244038670 100644 --- a/hapi-fhir-validation/src/test/java/org/hl7/fhir/r4/validation/FhirInstanceValidatorR4Test.java +++ b/hapi-fhir-validation/src/test/java/org/hl7/fhir/r4/validation/FhirInstanceValidatorR4Test.java @@ -411,11 +411,7 @@ public class FhirInstanceValidatorR4Test { ourLog.info("Took {} ms -- {}ms / pass", delay, per); } - /** - * // TODO: reenable - */ @Test - @Ignore public void testValidateBuiltInProfiles() throws Exception { org.hl7.fhir.r4.model.Bundle bundle; String name = "profiles-resources"; @@ -444,11 +440,16 @@ public class FhirInstanceValidatorR4Test { ValidationResult output = myVal.validateWithResult(next); List errors = logResultsAndReturnNonInformationalOnes(output); - // This isn't a validator problem but a definition problem.. it should get fixed at some point and - // we can remove this - if (next.getId().equalsIgnoreCase("http://hl7.org/fhir/OperationDefinition/StructureDefinition-generate")) { +// // This isn't a validator problem but a definition problem.. it should get fixed at some point and +// // we can remove this +// if (next.getId().equalsIgnoreCase("http://hl7.org/fhir/OperationDefinition/StructureDefinition-generate")) { +// assertEquals(1, errors.size()); +// assertEquals("A search type can only be specified for parameters of type string [searchType implies type = 'string']", errors.get(0).getMessage()); +// continue; +// } + if (next.getId().equalsIgnoreCase("http://hl7.org/fhir/OperationDefinition/StructureDefinition-snapshot")) { assertEquals(1, errors.size()); - assertEquals("A search type can only be specified for parameters of type string [searchType implies type = 'string']", errors.get(0).getMessage()); + assertEquals("A search type can only be specified for parameters of type string [searchType.exists() implies type = 'string']", errors.get(0).getMessage()); continue; } diff --git a/osgi/hapi-fhir-karaf-features/pom.xml b/osgi/hapi-fhir-karaf-features/pom.xml index 306c04837a6..53c06ca7f89 100644 --- a/osgi/hapi-fhir-karaf-features/pom.xml +++ b/osgi/hapi-fhir-karaf-features/pom.xml @@ -185,34 +185,52 @@ - - org.apache.karaf.tooling - karaf-maven-plugin - ${apache_karaf_version} - - - file://${project.build.directory}/classes/${features.file} - mvn:org.apache.karaf.features/enterprise/${apache_karaf_version}/xml/features - - org.apache.karaf.features:framework - 1.8 - - framework - - - hapi-fhir* - - - - - validate - process-resources - - verify - - - - + + + + + + DIST + + + + org.apache.karaf.tooling + karaf-maven-plugin + ${apache_karaf_version} + + + file://${project.build.directory}/classes/${features.file} + mvn:org.apache.karaf.features/enterprise/${apache_karaf_version}/xml/features + + org.apache.karaf.features:framework + 1.8 + + framework + + + hapi-fhir* + + + + + validate + process-resources + + verify + + + + + + + + +