From 3c327c1fe313cb31dcc914dcaee7f38255240099 Mon Sep 17 00:00:00 2001 From: xuegao Date: Mon, 23 Mar 2020 14:30:56 +0100 Subject: Populate deployment parameters Create deployment parameters while creating loops. Issue-ID: CLAMP-788 Change-Id: Icb4ebc786b87468846692744f27b697734015401 Signed-off-by: xuegao --- .../deployment-parameters-multi-blueprints.json | 43 ++++++++++++++++++++++ .../deployment-parameters-single-blueprint.json | 9 +++++ .../sdc/expected-result/deployment-parameters.json | 43 ---------------------- 3 files changed, 52 insertions(+), 43 deletions(-) create mode 100644 src/test/resources/example/sdc/expected-result/deployment-parameters-multi-blueprints.json create mode 100644 src/test/resources/example/sdc/expected-result/deployment-parameters-single-blueprint.json delete mode 100644 src/test/resources/example/sdc/expected-result/deployment-parameters.json (limited to 'src/test/resources/example/sdc/expected-result') diff --git a/src/test/resources/example/sdc/expected-result/deployment-parameters-multi-blueprints.json b/src/test/resources/example/sdc/expected-result/deployment-parameters-multi-blueprints.json new file mode 100644 index 00000000..6ebaa073 --- /dev/null +++ b/src/test/resources/example/sdc/expected-result/deployment-parameters-multi-blueprints.json @@ -0,0 +1,43 @@ +{ + "dcaeDeployParameters": { + "testName1": { + "location_id": "", + "service_id": "", + "policy_id": "testName1" + }, + "testName2": { + "aaiEnrichmentHost": "aai.onap.svc.cluster.local", + "aaiEnrichmentPort": "8443", + "enableAAIEnrichment": true, + "dmaap_host": "message-router.onap", + "dmaap_port": "3904", + "enableRedisCaching": false, + "redisHosts": "dcae-redis.onap.svc.cluster.local:6379", + "tag_version": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.1.1", + "consul_host": "consul-server.onap", + "consul_port": "8500", + "cbs_host": "config-binding-servicel", + "cbs_port": "10000", + "external_port": "32012", + "policy_model_id": "onap.policies.monitoring.cdap.tca.hi.lo.app", + "policy_id": "testName2" + }, + "testName3": { + "aaiEnrichmentHost": "aai.onap.svc.cluster.local", + "aaiEnrichmentPort": "8443", + "enableAAIEnrichment": true, + "dmaap_host": "message-router.onap.svc.cluster.local", + "dmaap_port": "3904", + "enableRedisCaching": false, + "redisHosts": "dcae-redis.onap.svc.cluster.local:6379", + "tag_version": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.1.0-STAGING-latest", + "consul_host": "consul-server.onap.svc.cluster.local", + "consul_port": "8500", + "cbs_host": "config-binding-service.dcae.svc.cluster.local", + "cbs_port": "10000", + "external_port": "32012", + "policy_model_id": "onap.policies.monitoring.cdap.tca.hi.lo.app", + "policy_id": "testName3" + } + } +} \ No newline at end of file diff --git a/src/test/resources/example/sdc/expected-result/deployment-parameters-single-blueprint.json b/src/test/resources/example/sdc/expected-result/deployment-parameters-single-blueprint.json new file mode 100644 index 00000000..494c2e4f --- /dev/null +++ b/src/test/resources/example/sdc/expected-result/deployment-parameters-single-blueprint.json @@ -0,0 +1,9 @@ +{ + "dcaeDeployParameters": { + "loop template blueprint": { + "location_id": "", + "service_id": "", + "policy_id": "loop template blueprint" + } + } +} \ No newline at end of file diff --git a/src/test/resources/example/sdc/expected-result/deployment-parameters.json b/src/test/resources/example/sdc/expected-result/deployment-parameters.json deleted file mode 100644 index 2e10ac37..00000000 --- a/src/test/resources/example/sdc/expected-result/deployment-parameters.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "dcaeDeployParameters": { - "testName": { - "location_id": "", - "service_id": "", - "policy_id": "testName" - }, - "testName1": { - "aaiEnrichmentHost": "aai.onap.svc.cluster.local", - "aaiEnrichmentPort": "8443", - "enableAAIEnrichment": true, - "dmaap_host": "message-router.onap", - "dmaap_port": "3904", - "enableRedisCaching": false, - "redisHosts": "dcae-redis.onap.svc.cluster.local:6379", - "tag_version": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.1.1", - "consul_host": "consul-server.onap", - "consul_port": "8500", - "cbs_host": "config-binding-servicel", - "cbs_port": "10000", - "external_port": "32012", - "policy_model_id": "onap.policies.monitoring.cdap.tca.hi.lo.app", - "policy_id": "testName" - }, - "testName2": { - "aaiEnrichmentHost": "aai.onap.svc.cluster.local", - "aaiEnrichmentPort": "8443", - "enableAAIEnrichment": true, - "dmaap_host": "message-router.onap.svc.cluster.local", - "dmaap_port": "3904", - "enableRedisCaching": false, - "redisHosts": "dcae-redis.onap.svc.cluster.local:6379", - "tag_version": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.1.0-STAGING-latest", - "consul_host": "consul-server.onap.svc.cluster.local", - "consul_port": "8500", - "cbs_host": "config-binding-service.dcae.svc.cluster.local", - "cbs_port": "10000", - "external_port": "32012", - "policy_model_id": "onap.policies.monitoring.cdap.tca.hi.lo.app", - "policy_id": "testName" - } - } -} \ No newline at end of file -- cgit 1.2.3-korg