summaryrefslogtreecommitdiffstats
path: root/cba/cli/Definitions/cli.json
blob: c0070da17b18daad17564357a06a2b88fe17be1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
  "metadata": {
    "template_author": "Selffish",
    "author-email": "test@bell.ca",
    "template_name": "RT-cli",
    "template_version": "1.0.0",
    "template_tags": "test, regression"
  },
  "dsl_definitions": {
    "device-properties": {
      "type": "basic-auth",
      "host": {
        "get_input": "host"
      },
      "username": {
        "get_input": "username"
      },
      "password": {
        "get_input": "password"
      },
      "port": {
        "get_input": "port"
      },
      "logging": {
        "get_input": "logging"
      },
      "connectionTimeOut": {
        "get_input": "connectionTimeOut"
      }
    }
  },
  "topology_template": {
    "workflows": {
      "cli": {
        "steps": {
          "cli": {
            "description": "CLI Workflow",
            "target": "cli"
          }
        },
        "inputs": {
          "resolution-key": {
            "required": false,
            "type": "string"
          },
          "password": {
            "required": true,
            "type": "string"
          },
          "username": {
            "required": true,
            "type": "string"
          },
          "host": {
            "required": true,
            "type": "string"
          },
          "port": {
            "required": false,
            "type": "string"
          },
          "connectionTimeOut": {
            "required": true,
            "type": "string"
          },
          "logging": {
            "required": true,
            "type": "boolean"
          },
          "commands": {
            "required": true,
            "type": "list",
            "entry_schema": {
              "type": "string"
            }
          }
        },
        "outputs": {
          "response-data": {
            "type": "string",
            "value": {
              "get_attribute": [
                "cli",
                "response-data"
              ]
            }
          }
        }
      }
    },
    "node_templates": {
      "cli": {
        "type": "component-script-executor",
        "interfaces": {
          "ComponentScriptExecutor": {
            "operations": {
              "process": {
                "implementation": {
                  "primary": "component-script"
                },
                "inputs": {
                  "script-type": "kotlin",
                  "script-class-reference": "cli.CliRegressionTest"
                },
                "outputs": {}
              }
            }
          }
        }
      }
    }
  }
}