Add declarative acceptance tests
[ccsdk/cds.git] / components / model-catalog / blueprint-model / uat-blueprints / echo / Definitions / echo-test.json
1 {
2   "tosca_definitions_version" : "controller_blueprint_1_0_0",
3   "metadata" : {
4     "template_author" : "Rodrigo Ottero",
5     "author-email" : "rodrigo.ottero@est.tech",
6     "user-groups" : "ADMIN, OPERATION",
7     "template_name" : "echo_test",
8     "template_version" : "1.0.0",
9     "template_tags" : "echo_test, echo, test, testing"
10   },
11   "imports" : [ {
12     "file" : "Definitions/data_types.json"
13   }, {
14     "file" : "Definitions/relationship_types.json"
15   }, {
16     "file" : "Definitions/artifact_types.json"
17   }, {
18     "file" : "Definitions/node_types.json"
19   }, {
20     "file" : "Definitions/policy_types.json"
21   } ],
22   "topology_template" : {
23     "workflows" : {
24       "echo" : {
25         "steps" : {
26           "activate-process" : {
27             "description" : "Echo a message",
28             "target" : "echo-process",
29             "activities" : [ {
30               "call_operation" : ""
31             } ]
32           }
33         },
34         "inputs" : {
35           "echo-properties" : {
36             "description" : "Dynamic PropertyDefinition for workflow(echo).",
37             "required" : true,
38             "type" : "dt-echo-properties"
39           }
40         }
41       }
42     },
43     "node_templates" : {
44       "echo-process" : {
45         "type" : "dg-generic",
46         "properties" : {
47           "content" : {
48             "get_artifact" : [ "SELF", "dg-echo-process" ]
49           },
50           "dependency-node-templates" : [ "echo" ]
51         },
52         "artifacts" : {
53           "dg-config-assign-process" : {
54             "type" : "artifact-directed-graph",
55             "file" : "Plans/TEST_echo.xml"
56           }
57         }
58       },
59       "echo" : {
60         "type" : "component-resource-resolution",
61         "interfaces" : {
62           "ResourceResolutionComponent" : {
63             "operations" : {
64               "process" : {
65                 "inputs" : {
66                   "artifact-prefix-names" : [ "echo" ]
67                 },
68                 "outputs" : {
69                   "resource-assignment-params" : {
70                     "get_attribute" : [ "SELF", "assignment-params" ]
71                   },
72                   "status" : "success"
73                 }
74               }
75             }
76           }
77         },
78         "artifacts" : {
79           "echo-template" : {
80             "type" : "artifact-template-velocity",
81             "file" : "Templates/echo-template.vtl"
82           },
83           "echo-mapping" : {
84             "type" : "artifact-mapping-resource",
85             "file" : "Definitions/echo-mapping.json"
86           }
87         }
88       }
89     }
90   }
91 }