summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/cba/resource-resolution/Definitions/resource-resolution.json
diff options
context:
space:
mode:
authorSantoshB <santosh.bayas@amdocs.com>2020-10-15 14:57:57 +0530
committermrichomme <morgan.richomme@orange.com>2020-11-12 14:52:33 +0100
commitd3cdace51db473c93540229da3a0fd061120957c (patch)
treed2d4f1031c7d577d51fe27b6daf1a1e80cdb409d /cds-regression-test/cba/resource-resolution/Definitions/resource-resolution.json
parent8e75c091c8f2079b8ae59ae544fbd19bbef3f963 (diff)
cds-bash script package
Issue-ID: CCSDK-2913 Change-Id: I2f97b0c78314019d5002e8563c4e433ae5e816b9 Signed-off-by: SantoshB <santosh.bayas@amdocs.com> Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'cds-regression-test/cba/resource-resolution/Definitions/resource-resolution.json')
-rw-r--r--cds-regression-test/cba/resource-resolution/Definitions/resource-resolution.json99
1 files changed, 99 insertions, 0 deletions
diff --git a/cds-regression-test/cba/resource-resolution/Definitions/resource-resolution.json b/cds-regression-test/cba/resource-resolution/Definitions/resource-resolution.json
new file mode 100644
index 0000000..af804a2
--- /dev/null
+++ b/cds-regression-test/cba/resource-resolution/Definitions/resource-resolution.json
@@ -0,0 +1,99 @@
+{
+ "metadata": {
+ "template_author": "Selffish",
+ "author-email": "test@bell.ca",
+ "template_name": "RT-resource-resolution",
+ "template_version": "1.0.0",
+ "template_tags": "Bell, CBA, test"
+ },
+ "dsl_definitions": {
+ "rest-endpoint": {
+ "type": "token-auth",
+ "url": "http://cds-regression-mockserver",
+ "token": "NoTokenRequired"
+ },
+ "db-endpoint": {
+ "type": "maria-db",
+ "url": "jdbc:mysql://cds-db:3306/sdnctl",
+ "username": "sdnctl",
+ "password": "sdnctl"
+ }
+ },
+ "topology_template": {
+ "workflows": {
+ "resource-resolution": {
+ "steps": {
+ "helloworld": {
+ "description": "Component resource resolution regression test",
+ "target": "resource-resolution"
+ }
+ },
+ "inputs": {
+ "resolution-key": {
+ "required": true,
+ "type": "string"
+ },
+ "template-prefix": {
+ "required": true,
+ "type": "list",
+ "entry_schema": {
+ "type": "string"
+ }
+ }
+ },
+ "outputs": {
+ "meshed-template": {
+ "type": "json",
+ "value": {
+ "get_attribute": [
+ "resource-resolution",
+ "assignment-params"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "node_templates": {
+ "resource-resolution": {
+ "type": "component-resource-resolution",
+ "interfaces": {
+ "ResourceResolutionComponent": {
+ "operations": {
+ "process": {
+ "inputs": {
+ "artifact-prefix-names": {
+ "get_input": "template-prefix"
+ },
+ "store-result": true,
+ "force-resolution": true,
+ "resolution-key": {
+ "get_input": "resolution-key"
+ }
+ }
+ }
+ }
+ }
+ },
+ "artifacts": {
+ "helloworld-velocity-template": {
+ "type": "artifact-template-velocity",
+ "file": "Templates/hello-world-template.vtl"
+ },
+ "helloworld-velocity-mapping": {
+ "type": "artifact-mapping-resource",
+ "file": "Templates/hello-world-velocity-mapping.json"
+ },
+ "helloworld-jinja-template": {
+ "type": "artifact-template-jinja",
+ "file": "Templates/hello-world-template.jinja"
+ },
+ "helloworld-jinja-mapping": {
+ "type": "artifact-mapping-resource",
+ "file": "Templates/hello-world-jinja-mapping.json"
+ }
+ }
+ }
+ }
+ }
+}