From 885545697c79b299a372956b1b368e13bab3426c Mon Sep 17 00:00:00 2001 From: "Arul.Nambi" Date: Thu, 13 Dec 2018 15:34:17 -0500 Subject: Updating the new schema service ingest Issue-ID: AAI-2006 Change-Id: I25360ea42d1e09ada6af00dbe99ceace978ee09a Signed-off-by: Arul.Nambi --- .../config/application-oxm-default.properties | 13 +++++- .../config/application.properties | 6 ++- .../config/schemaIngest.properties | 46 +++++++++++++++++++--- .../config/spring-beans/sparky-oxm-default.xml | 3 +- .../config/spring-beans/sparky-oxm-override.xml | 1 - .../config/spring-beans/sparky-oxm.xml | 18 --------- 6 files changed, 58 insertions(+), 29 deletions(-) (limited to 'sparkybe-onap-application/config') diff --git a/sparkybe-onap-application/config/application-oxm-default.properties b/sparkybe-onap-application/config/application-oxm-default.properties index 5c362d8..ef3db64 100644 --- a/sparkybe-onap-application/config/application-oxm-default.properties +++ b/sparkybe-onap-application/config/application-oxm-default.properties @@ -1 +1,12 @@ -oxm.apiVersion=v14 \ No newline at end of file +oxm.apiVersion=v14 +oxm.apiVersionList=v10,v11,v12,v13,v14 + +oxm.schemaServiceTranslatorList=config +oxm.schemaServiceBaseUrl=https://:/onap/schema-service/v1/ +oxm.schemaServiceKeystore=file:${CONFIG_HOME}/auth/tomcat_keystore +oxm.schemaServiceTruststore=file:${CONFIG_HOME}/auth/tomcat_keystore +oxm.schemaServiceKeystorePassword=OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 +oxm.schemaServiceTruststorePassword=OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 + +# Schema Service need this variable for the time being with 7.0.1-SNAPSHOT +spring.applicationName=sparky \ No newline at end of file diff --git a/sparkybe-onap-application/config/application.properties b/sparkybe-onap-application/config/application.properties index c49bf5a..1c37fa7 100644 --- a/sparkybe-onap-application/config/application.properties +++ b/sparkybe-onap-application/config/application.properties @@ -9,7 +9,7 @@ spring.mvc.favicon.enabled=false # # Gizmo profile # -spring.profiles.active=camel,ssl,fe-dev,oxm-schema-dev,gizmo,oxm-override +spring.profiles.active=camel,ssl,fe-dev,oxm-schema-dev,gizmo,oxm-default # # Resources profile @@ -23,4 +23,6 @@ searchservice.client-cert=client-cert-onap.p12 searchservice.client-cert-password=1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 searchservice.truststore=tomcat_keystore -spring.mvc.favicon.enabled=false \ No newline at end of file +spring.mvc.favicon.enabled=false + +schema.ingest.file=${CONFIG_HOME}/schemaIngest.properties \ No newline at end of file diff --git a/sparkybe-onap-application/config/schemaIngest.properties b/sparkybe-onap-application/config/schemaIngest.properties index 1f5a13a..f88a7ef 100644 --- a/sparkybe-onap-application/config/schemaIngest.properties +++ b/sparkybe-onap-application/config/schemaIngest.properties @@ -1,15 +1,32 @@ # Properties for the SchemaLocationsBean # Files named aai_oxm_v*.xml are unpacked here: -nodeDir=${oxm.schemaNodeDir} -# Dummy folder/directory: -edgeDir= +# Schema Version Related Attributes +schema.uri.base.path=/aai +# Lists all of the versions in the schema +schema.version.list=v9,v10,v11,v12,v13,v14 +# 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 +schema.version.related.link.start=v10 +# Specifies from which version should the client see only the uri excluding host info +# Before this version server base will also be included +schema.version.app.root.start=v11 +# Specifies from which version should the namespace be changed +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=v14 + +# Schema Location Related Attributes +schema.configuration.location=NA # New propterties required by the aai-common - aai-schema-ingest lib as of 1.3.0 schema.configuration.location=N/A schema.nodes.location=${oxm.schemaNodeDir} schema.edges.location= # These versions need to exist if they are included in the list -schema.version.list=v8,v9,v10,v11,v12,v13,v14 +schema.version.list=${oxm.apiVersionList} # Decalares the oxm version to load schema.version.api.default=${oxm.apiVersion} @@ -18,4 +35,23 @@ schema.version.depth.start=${oxm.apiVersion} schema.version.related.link.start=${oxm.apiVersion} schema.version.app.root.start=${oxm.apiVersion} schema.version.namespace.change.start=${oxm.apiVersion} -schema.version.edge.label.start=${oxm.apiVersion} \ No newline at end of file +schema.version.edge.label.start=${oxm.apiVersion} + +# Properties required by AAI Schema Service MS +schema.translator.list=config +schema.service.base.url=${oxm.schemaServiceBaseUrl} +schema.service.nodes.endpoint=nodes?version= +schema.service.edges.endpoint=edgerules?version= +schema.service.versions.endpoint=versions +schema.local=true +schema.filename=mockrequests +#Default rest client is the two-way-ssl +#schema.service.client=two-way-ssl +#Replace the below with the A&AI client key store +schema.service.ssl.key-store=${oxm.schemaServiceKeystore} +#Replace the below with the A&AI tomcat trust store +schema.service.ssl.trust-store=${oxm.schemaServiceTruststore} +schema.service.ssl.key-store-password=${oxm.schemaServiceKeystorePassword} +schema.service.ssl.trust-store-password=${oxm.schemaServiceTruststorePassword} + +spring.application.name=sparky \ No newline at end of file diff --git a/sparkybe-onap-application/config/spring-beans/sparky-oxm-default.xml b/sparkybe-onap-application/config/spring-beans/sparky-oxm-default.xml index b44d626..5eb2184 100644 --- a/sparkybe-onap-application/config/spring-beans/sparky-oxm-default.xml +++ b/sparkybe-onap-application/config/spring-beans/sparky-oxm-default.xml @@ -3,11 +3,10 @@ xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> - + - diff --git a/sparkybe-onap-application/config/spring-beans/sparky-oxm-override.xml b/sparkybe-onap-application/config/spring-beans/sparky-oxm-override.xml index 3c2d76b..c6db248 100644 --- a/sparkybe-onap-application/config/spring-beans/sparky-oxm-override.xml +++ b/sparkybe-onap-application/config/spring-beans/sparky-oxm-override.xml @@ -8,7 +8,6 @@ init-method="loadModel"> - \ No newline at end of file diff --git a/sparkybe-onap-application/config/spring-beans/sparky-oxm.xml b/sparkybe-onap-application/config/spring-beans/sparky-oxm.xml index c392153..a210d12 100644 --- a/sparkybe-onap-application/config/spring-beans/sparky-oxm.xml +++ b/sparkybe-onap-application/config/spring-beans/sparky-oxm.xml @@ -35,24 +35,6 @@ - - - - - - - - - - - - - - - - - -- cgit 1.2.3-korg