From a8ce62a3bae5976982f6d1432723251a414e2878 Mon Sep 17 00:00:00 2001 From: "LaMont, William(wl2432)" Date: Fri, 12 Jun 2020 13:35:23 -0400 Subject: v20 support in schema-service without javafx Issue-ID: AAI-2930 Change-Id: I68ba45069f465988e21602521e8e665cb27318d1 Signed-off-by: LaMont, William(wl2432) --- aai-schema-service/pom.xml | 4 ++-- aai-schema-service/src/main/assembly/descriptor.xml | 3 +++ aai-schema-service/src/main/resources/application.properties | 4 ++-- aai-schema-service/src/main/scripts/common_functions.sh | 1 - aai-schema-service/src/main/scripts/getTool.sh | 2 +- .../src/test/java/org/onap/aai/schemaservice/SchemaServiceTest.java | 4 ++-- aai-schema-service/src/test/resources/application-test.properties | 4 ++-- 7 files changed, 12 insertions(+), 10 deletions(-) (limited to 'aai-schema-service') diff --git a/aai-schema-service/pom.xml b/aai-schema-service/pom.xml index 6b048d4..07cbfff 100644 --- a/aai-schema-service/pom.xml +++ b/aai-schema-service/pom.xml @@ -72,7 +72,7 @@ v11 v12 v12 - v19 + v20 v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20 /aai/schema-service @@ -184,7 +184,7 @@ onap v12 - v10,v11,v12,v13,v14,v15,v16,v17,18,v19 + v10,v11,v12,v13,v14,v15,v16,v17,18,v19,v20 diff --git a/aai-schema-service/src/main/assembly/descriptor.xml b/aai-schema-service/src/main/assembly/descriptor.xml index 2c33dd0..a4399da 100644 --- a/aai-schema-service/src/main/assembly/descriptor.xml +++ b/aai-schema-service/src/main/assembly/descriptor.xml @@ -13,6 +13,7 @@ **/* + 755 ${project.basedir}/src/main/scripts @@ -20,6 +21,7 @@ **/* + 777 ${project.build.directory} @@ -27,6 +29,7 @@ ${project.artifactId}-${project.version}.jar + 755 diff --git a/aai-schema-service/src/main/resources/application.properties b/aai-schema-service/src/main/resources/application.properties index ea8934f..c586bfd 100644 --- a/aai-schema-service/src/main/resources/application.properties +++ b/aai-schema-service/src/main/resources/application.properties @@ -49,7 +49,7 @@ schema.ingest.file=${server.local.startpath}/application.properties schema.uri.base.path=/aai/schema-service # Lists all of the versions in the schema -schema.version.list=v10,v11,v12,v13,v14,v15,v16,v17,v18,v19 +schema.version.list=v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20 # Specifies from which version should the depth parameter to default to zero schema.version.depth.start=v10 # Specifies from which version should the related link be displayed in response payload @@ -62,4 +62,4 @@ schema.version.namespace.change.start=v12 # Specifies from which version should the client start seeing the edge label in payload schema.version.edge.label.start=v12 # Specifies the version that the application should default to -schema.version.api.default=v19 +schema.version.api.default=v20 diff --git a/aai-schema-service/src/main/scripts/common_functions.sh b/aai-schema-service/src/main/scripts/common_functions.sh index 7dfda25..dd235c2 100644 --- a/aai-schema-service/src/main/scripts/common_functions.sh +++ b/aai-schema-service/src/main/scripts/common_functions.sh @@ -36,7 +36,6 @@ check_user(){ # Sources the profile and sets the project home source_profile(){ - . /etc/profile.d/aai.sh PROJECT_HOME=/opt/app/aai-schema-service } diff --git a/aai-schema-service/src/main/scripts/getTool.sh b/aai-schema-service/src/main/scripts/getTool.sh index 9b8b26e..1241145 100644 --- a/aai-schema-service/src/main/scripts/getTool.sh +++ b/aai-schema-service/src/main/scripts/getTool.sh @@ -58,7 +58,7 @@ if [ "${userid}" != "aaiadmin" ]; then exit 1 fi -. /etc/profile.d/aai.sh + PROJECT_HOME=/opt/app/aai-schema-service prop_file=$PROJECT_HOME/resources/etc/appprops/aaiconfig.properties log_dir=$PROJECT_HOME/logs/misc diff --git a/aai-schema-service/src/test/java/org/onap/aai/schemaservice/SchemaServiceTest.java b/aai-schema-service/src/test/java/org/onap/aai/schemaservice/SchemaServiceTest.java index 308f43b..5b24be2 100644 --- a/aai-schema-service/src/test/java/org/onap/aai/schemaservice/SchemaServiceTest.java +++ b/aai-schema-service/src/test/java/org/onap/aai/schemaservice/SchemaServiceTest.java @@ -105,7 +105,7 @@ public class SchemaServiceTest { ResponseEntity responseEntity; responseEntity = restTemplate.exchange( - baseUrl + "/aai/schema-service/v1/nodes?version=v19", + baseUrl + "/aai/schema-service/v1/nodes?version=v20", HttpMethod.GET, httpEntity, String.class @@ -117,7 +117,7 @@ public class SchemaServiceTest { httpEntity = new HttpEntity(headers); responseEntity = restTemplate.exchange( - baseUrl + "/aai/schema-service/v1/edgerules?version=v19", + baseUrl + "/aai/schema-service/v1/edgerules?version=v20", HttpMethod.GET, httpEntity, String.class diff --git a/aai-schema-service/src/test/resources/application-test.properties b/aai-schema-service/src/test/resources/application-test.properties index e80397f..bad8309 100644 --- a/aai-schema-service/src/test/resources/application-test.properties +++ b/aai-schema-service/src/test/resources/application-test.properties @@ -40,7 +40,7 @@ schema.ingest.file=${server.local.startpath}/application.properties # Schema Version Related Attributes schema.uri.base.path=/aai/schema-service # Lists all of the versions in the schema -schema.version.list=v10,v11,v12,v13,v14,v15,v16,v17,v18,v19 +schema.version.list=v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20 # Specifies from which version should the depth parameter to default to zero schema.version.depth.start=v10 # Specifies from which version should the related link be displayed in response payload @@ -53,4 +53,4 @@ schema.version.namespace.change.start=v12 # Specifies from which version should the client start seeing the edge label in payload schema.version.edge.label.start=v12 # Specifies the version that the application should default to -schema.version.api.default=v19 +schema.version.api.default=v20 -- cgit 1.2.3-korg