Fix: Run both sonar and clm scans in parallel
[ccsdk/cds.git] / components / model-catalog / blueprint-model / test-blueprint / capability_cli / Definitions / capability-cli-blueprint.json
1 {
2   "tosca_definitions_version": "controller_blueprint_1_0_0",
3   "metadata": {
4     "template_author": "Brinda Santh",
5     "author-email": "brindasanth@in.ibm.com",
6     "user-groups": "ADMIN, OPERATION",
7     "template_name": "capability-cli",
8     "template_version": "1.0.0",
9     "template_tags": "capability-cli-blueprint",
10     "template_type": "DEFAULT"
11   },
12   "imports": [
13     {
14       "file": "Definitions/data_types.json"
15     },
16     {
17       "file": "Definitions/relationship_types.json"
18     },
19     {
20       "file": "Definitions/artifact_types.json"
21     },
22     {
23       "file": "Definitions/node_types.json"
24     },
25     {
26       "file": "Definitions/policy_types.json"
27     }
28   ],
29   "topology_template": {
30     "workflows": {
31       "check": {
32         "steps": {
33           "activate-process": {
34             "description": "Check CLI",
35             "target": "check",
36             "activities": [
37               {
38                 "call_operation": "ComponentScriptExecutor.process"
39               }
40             ]
41           }
42         },
43         "inputs": {
44           "hostname": {
45             "required": true,
46             "type": "string"
47           },
48           "username": {
49             "required": true,
50             "type": "string"
51           },
52           "password": {
53             "required": true,
54             "type": "string"
55           },
56           "data": {
57             "required": true,
58             "type": "json"
59           }
60         }
61       }
62     },
63     "node_templates": {
64       "check": {
65         "type": "component-script-executor",
66         "interfaces": {
67           "ComponentScriptExecutor": {
68             "operations": {
69               "process": {
70                 "implementation": {
71                   "primary": "component-script",
72                   "timeout": 180,
73                   "operation_host": "SELF"
74                 },
75                 "inputs": {
76                   "script-type": "kotlin",
77                   "script-class-reference": "cba.capability.cli.Check"
78                 },
79                 "outputs": {
80                   "response-data": "",
81                   "status": "success"
82                 }
83               }
84             }
85           }
86         },
87         "artifacts": {
88           "command-template": {
89             "type": "artifact-template-velocity",
90             "file": "Templates/check-command-template.vtl"
91           }
92         }
93       }
94     },
95     "relationship_templates": {
96       "ssh-connection-config": {
97         "type": "tosca.relationships.ConnectsTo.SshClient",
98         "description": "Device connection config",
99         "properties": {
100           "connection-config": {
101             "password": {
102               "get_input": "password"
103             },
104             "host": {
105               "get_input": "hostname"
106             },
107             "type": "basic-auth",
108             "username": {
109               "get_input": "username"
110             }
111           }
112         }
113       }
114     }
115   }
116 }