@itentialopensource/adapter-paragon_active_assurance 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +6 -0
- package/.eslintrc.js +18 -0
- package/.gitlab/.gitkeep +0 -0
- package/.gitlab/issue_templates/.gitkeep +0 -0
- package/.gitlab/issue_templates/Default.md +17 -0
- package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
- package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
- package/.jshintrc +0 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +866 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +172 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +337 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +12175 -0
- package/adapterBase.js +1787 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/Alarm/action.json +86 -0
- package/entities/Alarm/schema.json +132 -0
- package/entities/AlarmEmail/action.json +106 -0
- package/entities/AlarmEmail/schema.json +34 -0
- package/entities/AlarmTemplate/action.json +106 -0
- package/entities/AlarmTemplate/schema.json +34 -0
- package/entities/ExternalUrlShare/action.json +106 -0
- package/entities/ExternalUrlShare/schema.json +34 -0
- package/entities/IpLookupTable/action.json +106 -0
- package/entities/IpLookupTable/schema.json +45 -0
- package/entities/IptvChannel/action.json +106 -0
- package/entities/IptvChannel/schema.json +45 -0
- package/entities/Monitor/action.json +147 -0
- package/entities/Monitor/schema.json +102 -0
- package/entities/MonitorTemplate/action.json +87 -0
- package/entities/MonitorTemplate/schema.json +55 -0
- package/entities/NetworkDevice/action.json +126 -0
- package/entities/NetworkDevice/schema.json +46 -0
- package/entities/PingHost/action.json +126 -0
- package/entities/PingHost/schema.json +46 -0
- package/entities/SipAccount/action.json +106 -0
- package/entities/SipAccount/schema.json +34 -0
- package/entities/SnmpManager/action.json +106 -0
- package/entities/SnmpManager/schema.json +34 -0
- package/entities/Speedtest/action.json +46 -0
- package/entities/Speedtest/schema.json +31 -0
- package/entities/SpeedtestPublic/action.json +87 -0
- package/entities/SpeedtestPublic/schema.json +33 -0
- package/entities/SshKey/action.json +106 -0
- package/entities/SshKey/schema.json +45 -0
- package/entities/Statistics/action.json +46 -0
- package/entities/Statistics/schema.json +20 -0
- package/entities/Tag/action.json +106 -0
- package/entities/Tag/schema.json +34 -0
- package/entities/Test/action.json +127 -0
- package/entities/Test/schema.json +90 -0
- package/entities/TestAgent/action.json +267 -0
- package/entities/TestAgent/schema.json +86 -0
- package/entities/TestTemplate/action.json +107 -0
- package/entities/TestTemplate/schema.json +56 -0
- package/entities/TwampReflector/action.json +126 -0
- package/entities/TwampReflector/schema.json +46 -0
- package/entities/UpdateMonitorTemplate/action.json +24 -0
- package/entities/UpdateMonitorTemplate/schema.json +30 -0
- package/entities/Y1731Mep/action.json +106 -0
- package/entities/Y1731Mep/schema.json +45 -0
- package/error.json +190 -0
- package/package.json +87 -0
- package/pronghorn.json +10324 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1248 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/creationReport.json +1120 -0
- package/report/paragon-active-assurance.json-OpenApi3Json.json +15052 -0
- package/sampleProperties.json +195 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +3651 -0
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +5967 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +178 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +246 -0
- package/utils/tbUtils.js +490 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +195 -0
- package/workflows/README.md +3 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "listTestAgents",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": ""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "createTestAgent",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "rebootTestAgent",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "POST",
|
|
48
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/reboot/?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"requestDatatype": "JSON",
|
|
54
|
+
"responseDatatype": "JSON",
|
|
55
|
+
"headers": {},
|
|
56
|
+
"responseObjects": [
|
|
57
|
+
{
|
|
58
|
+
"type": "default",
|
|
59
|
+
"key": "",
|
|
60
|
+
"mockFile": ""
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "upgradeTestAgentSoftware",
|
|
66
|
+
"protocol": "REST",
|
|
67
|
+
"method": "POST",
|
|
68
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/update/?{query}",
|
|
69
|
+
"requestSchema": "schema.json",
|
|
70
|
+
"responseSchema": "schema.json",
|
|
71
|
+
"timeout": 0,
|
|
72
|
+
"sendEmpty": false,
|
|
73
|
+
"requestDatatype": "JSON",
|
|
74
|
+
"responseDatatype": "JSON",
|
|
75
|
+
"headers": {},
|
|
76
|
+
"responseObjects": [
|
|
77
|
+
{
|
|
78
|
+
"type": "default",
|
|
79
|
+
"key": "",
|
|
80
|
+
"mockFile": ""
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "deleteTestAgent",
|
|
86
|
+
"protocol": "REST",
|
|
87
|
+
"method": "DELETE",
|
|
88
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/{pathv2}/?{query}",
|
|
89
|
+
"requestSchema": "schema.json",
|
|
90
|
+
"responseSchema": "schema.json",
|
|
91
|
+
"timeout": 0,
|
|
92
|
+
"sendEmpty": false,
|
|
93
|
+
"requestDatatype": "JSON",
|
|
94
|
+
"responseDatatype": "JSON",
|
|
95
|
+
"headers": {},
|
|
96
|
+
"responseObjects": [
|
|
97
|
+
{
|
|
98
|
+
"type": "default",
|
|
99
|
+
"key": "",
|
|
100
|
+
"mockFile": ""
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "getTestAgent",
|
|
106
|
+
"protocol": "REST",
|
|
107
|
+
"method": "GET",
|
|
108
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/{pathv2}/?{query}",
|
|
109
|
+
"requestSchema": "schema.json",
|
|
110
|
+
"responseSchema": "schema.json",
|
|
111
|
+
"timeout": 0,
|
|
112
|
+
"sendEmpty": false,
|
|
113
|
+
"sendGetBody": false,
|
|
114
|
+
"requestDatatype": "JSON",
|
|
115
|
+
"responseDatatype": "JSON",
|
|
116
|
+
"headers": {},
|
|
117
|
+
"responseObjects": [
|
|
118
|
+
{
|
|
119
|
+
"type": "default",
|
|
120
|
+
"key": "",
|
|
121
|
+
"mockFile": ""
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "patchTestAgent",
|
|
127
|
+
"protocol": "REST",
|
|
128
|
+
"method": "PATCH",
|
|
129
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/{pathv2}/?{query}",
|
|
130
|
+
"requestSchema": "schema.json",
|
|
131
|
+
"responseSchema": "schema.json",
|
|
132
|
+
"timeout": 0,
|
|
133
|
+
"sendEmpty": false,
|
|
134
|
+
"requestDatatype": "JSON",
|
|
135
|
+
"responseDatatype": "JSON",
|
|
136
|
+
"headers": {},
|
|
137
|
+
"responseObjects": [
|
|
138
|
+
{
|
|
139
|
+
"type": "default",
|
|
140
|
+
"key": "",
|
|
141
|
+
"mockFile": ""
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "updateTestAgent",
|
|
147
|
+
"protocol": "REST",
|
|
148
|
+
"method": "PUT",
|
|
149
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/{pathv2}/?{query}",
|
|
150
|
+
"requestSchema": "schema.json",
|
|
151
|
+
"responseSchema": "schema.json",
|
|
152
|
+
"timeout": 0,
|
|
153
|
+
"sendEmpty": false,
|
|
154
|
+
"requestDatatype": "JSON",
|
|
155
|
+
"responseDatatype": "JSON",
|
|
156
|
+
"headers": {},
|
|
157
|
+
"responseObjects": [
|
|
158
|
+
{
|
|
159
|
+
"type": "default",
|
|
160
|
+
"key": "",
|
|
161
|
+
"mockFile": ""
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "testAgentMoveCancel",
|
|
167
|
+
"protocol": "REST",
|
|
168
|
+
"method": "DELETE",
|
|
169
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/{pathv2}/move/?{query}",
|
|
170
|
+
"requestSchema": "schema.json",
|
|
171
|
+
"responseSchema": "schema.json",
|
|
172
|
+
"timeout": 0,
|
|
173
|
+
"sendEmpty": false,
|
|
174
|
+
"requestDatatype": "JSON",
|
|
175
|
+
"responseDatatype": "JSON",
|
|
176
|
+
"headers": {},
|
|
177
|
+
"responseObjects": [
|
|
178
|
+
{
|
|
179
|
+
"type": "default",
|
|
180
|
+
"key": "",
|
|
181
|
+
"mockFile": ""
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "testAgentMoveSchedule",
|
|
187
|
+
"protocol": "REST",
|
|
188
|
+
"method": "PUT",
|
|
189
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/{pathv2}/move/?{query}",
|
|
190
|
+
"requestSchema": "schema.json",
|
|
191
|
+
"responseSchema": "schema.json",
|
|
192
|
+
"timeout": 0,
|
|
193
|
+
"sendEmpty": false,
|
|
194
|
+
"requestDatatype": "JSON",
|
|
195
|
+
"responseDatatype": "JSON",
|
|
196
|
+
"headers": {},
|
|
197
|
+
"responseObjects": [
|
|
198
|
+
{
|
|
199
|
+
"type": "default",
|
|
200
|
+
"key": "",
|
|
201
|
+
"mockFile": ""
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "scanWifiNetworksStop",
|
|
207
|
+
"protocol": "REST",
|
|
208
|
+
"method": "DELETE",
|
|
209
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/{pathv2}/wifiscan/{pathv3}/?{query}",
|
|
210
|
+
"requestSchema": "schema.json",
|
|
211
|
+
"responseSchema": "schema.json",
|
|
212
|
+
"timeout": 0,
|
|
213
|
+
"sendEmpty": false,
|
|
214
|
+
"requestDatatype": "JSON",
|
|
215
|
+
"responseDatatype": "JSON",
|
|
216
|
+
"headers": {},
|
|
217
|
+
"responseObjects": [
|
|
218
|
+
{
|
|
219
|
+
"type": "default",
|
|
220
|
+
"key": "",
|
|
221
|
+
"mockFile": ""
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "scanWifiNetworksResults",
|
|
227
|
+
"protocol": "REST",
|
|
228
|
+
"method": "GET",
|
|
229
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/{pathv2}/wifiscan/{pathv3}/?{query}",
|
|
230
|
+
"requestSchema": "schema.json",
|
|
231
|
+
"responseSchema": "schema.json",
|
|
232
|
+
"timeout": 0,
|
|
233
|
+
"sendEmpty": false,
|
|
234
|
+
"sendGetBody": false,
|
|
235
|
+
"requestDatatype": "JSON",
|
|
236
|
+
"responseDatatype": "JSON",
|
|
237
|
+
"headers": {},
|
|
238
|
+
"responseObjects": [
|
|
239
|
+
{
|
|
240
|
+
"type": "default",
|
|
241
|
+
"key": "",
|
|
242
|
+
"mockFile": ""
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "scanWifiNetworksStart",
|
|
248
|
+
"protocol": "REST",
|
|
249
|
+
"method": "PUT",
|
|
250
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_agents/{pathv2}/wifiscan/{pathv3}/?{query}",
|
|
251
|
+
"requestSchema": "schema.json",
|
|
252
|
+
"responseSchema": "schema.json",
|
|
253
|
+
"timeout": 0,
|
|
254
|
+
"sendEmpty": false,
|
|
255
|
+
"requestDatatype": "JSON",
|
|
256
|
+
"responseDatatype": "JSON",
|
|
257
|
+
"headers": {},
|
|
258
|
+
"responseObjects": [
|
|
259
|
+
{
|
|
260
|
+
"type": "default",
|
|
261
|
+
"key": "",
|
|
262
|
+
"mockFile": ""
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "listTestAgents",
|
|
12
|
+
"enum": [
|
|
13
|
+
"listTestAgents",
|
|
14
|
+
"createTestAgent",
|
|
15
|
+
"rebootTestAgent",
|
|
16
|
+
"upgradeTestAgentSoftware",
|
|
17
|
+
"deleteTestAgent",
|
|
18
|
+
"getTestAgent",
|
|
19
|
+
"patchTestAgent",
|
|
20
|
+
"updateTestAgent",
|
|
21
|
+
"testAgentMoveCancel",
|
|
22
|
+
"testAgentMoveSchedule",
|
|
23
|
+
"scanWifiNetworksStop",
|
|
24
|
+
"scanWifiNetworksResults",
|
|
25
|
+
"scanWifiNetworksStart"
|
|
26
|
+
],
|
|
27
|
+
"external_name": "ph_request_type"
|
|
28
|
+
},
|
|
29
|
+
"tagName": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Filter by tag name e.g. 'key:value'",
|
|
32
|
+
"parse": false,
|
|
33
|
+
"encode": false,
|
|
34
|
+
"encrypt": {
|
|
35
|
+
"type": "AES",
|
|
36
|
+
"key": ""
|
|
37
|
+
},
|
|
38
|
+
"external_name": "tag_name"
|
|
39
|
+
},
|
|
40
|
+
"testAgentId": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Either the name or ID of the Test Agent",
|
|
43
|
+
"parse": false,
|
|
44
|
+
"encode": false,
|
|
45
|
+
"encrypt": {
|
|
46
|
+
"type": "AES",
|
|
47
|
+
"key": ""
|
|
48
|
+
},
|
|
49
|
+
"external_name": "test_agent_id"
|
|
50
|
+
},
|
|
51
|
+
"refreshSystemInformation": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"description": "When set to true it will refresh Test Agent system information",
|
|
54
|
+
"parse": false,
|
|
55
|
+
"encode": false,
|
|
56
|
+
"encrypt": {
|
|
57
|
+
"type": "AES",
|
|
58
|
+
"key": ""
|
|
59
|
+
},
|
|
60
|
+
"external_name": "refresh_system_information"
|
|
61
|
+
},
|
|
62
|
+
"testAgentNumericId": {
|
|
63
|
+
"type": "number",
|
|
64
|
+
"description": "ID of the Test Agent",
|
|
65
|
+
"parse": false,
|
|
66
|
+
"encode": false,
|
|
67
|
+
"encrypt": {
|
|
68
|
+
"type": "AES",
|
|
69
|
+
"key": ""
|
|
70
|
+
},
|
|
71
|
+
"external_name": "test_agent_numeric_id"
|
|
72
|
+
},
|
|
73
|
+
"testAgentInterfaceName": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Test Agent interface name",
|
|
76
|
+
"parse": false,
|
|
77
|
+
"encode": false,
|
|
78
|
+
"encrypt": {
|
|
79
|
+
"type": "AES",
|
|
80
|
+
"key": ""
|
|
81
|
+
},
|
|
82
|
+
"external_name": "test_agent_interface_name"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"definitions": {}
|
|
86
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "listTestTemplates",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_templates/?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": ""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "exportTestTemplates",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "GET",
|
|
28
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_templates/export/?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
34
|
+
"requestDatatype": "JSON",
|
|
35
|
+
"responseDatatype": "JSON",
|
|
36
|
+
"headers": {},
|
|
37
|
+
"responseObjects": [
|
|
38
|
+
{
|
|
39
|
+
"type": "default",
|
|
40
|
+
"key": "",
|
|
41
|
+
"mockFile": ""
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "importTestTemplates",
|
|
47
|
+
"protocol": "REST",
|
|
48
|
+
"method": "POST",
|
|
49
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_templates/import/?{query}",
|
|
50
|
+
"requestSchema": "schema.json",
|
|
51
|
+
"responseSchema": "schema.json",
|
|
52
|
+
"timeout": 0,
|
|
53
|
+
"sendEmpty": false,
|
|
54
|
+
"requestDatatype": "JSON",
|
|
55
|
+
"responseDatatype": "JSON",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": ""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "getTestTemplate",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "GET",
|
|
69
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_templates/{pathv2}/?{query}",
|
|
70
|
+
"requestSchema": "schema.json",
|
|
71
|
+
"responseSchema": "schema.json",
|
|
72
|
+
"timeout": 0,
|
|
73
|
+
"sendEmpty": false,
|
|
74
|
+
"sendGetBody": false,
|
|
75
|
+
"requestDatatype": "JSON",
|
|
76
|
+
"responseDatatype": "JSON",
|
|
77
|
+
"headers": {},
|
|
78
|
+
"responseObjects": [
|
|
79
|
+
{
|
|
80
|
+
"type": "default",
|
|
81
|
+
"key": "",
|
|
82
|
+
"mockFile": ""
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "updateTestTemplate",
|
|
88
|
+
"protocol": "REST",
|
|
89
|
+
"method": "PATCH",
|
|
90
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/test_templates/{pathv2}/?{query}",
|
|
91
|
+
"requestSchema": "schema.json",
|
|
92
|
+
"responseSchema": "schema.json",
|
|
93
|
+
"timeout": 0,
|
|
94
|
+
"sendEmpty": false,
|
|
95
|
+
"requestDatatype": "JSON",
|
|
96
|
+
"responseDatatype": "JSON",
|
|
97
|
+
"headers": {},
|
|
98
|
+
"responseObjects": [
|
|
99
|
+
{
|
|
100
|
+
"type": "default",
|
|
101
|
+
"key": "",
|
|
102
|
+
"mockFile": ""
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "listTestTemplates",
|
|
12
|
+
"enum": [
|
|
13
|
+
"listTestTemplates",
|
|
14
|
+
"exportTestTemplates",
|
|
15
|
+
"importTestTemplates",
|
|
16
|
+
"getTestTemplate",
|
|
17
|
+
"updateTestTemplate"
|
|
18
|
+
],
|
|
19
|
+
"external_name": "ph_request_type"
|
|
20
|
+
},
|
|
21
|
+
"tagName": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Filter by tag name e.g. 'key:value'",
|
|
24
|
+
"parse": false,
|
|
25
|
+
"encode": false,
|
|
26
|
+
"encrypt": {
|
|
27
|
+
"type": "AES",
|
|
28
|
+
"key": ""
|
|
29
|
+
},
|
|
30
|
+
"external_name": "tag_name"
|
|
31
|
+
},
|
|
32
|
+
"forceOverwrite": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Force overwriting existing templates with conflicting names",
|
|
35
|
+
"parse": false,
|
|
36
|
+
"encode": false,
|
|
37
|
+
"encrypt": {
|
|
38
|
+
"type": "AES",
|
|
39
|
+
"key": ""
|
|
40
|
+
},
|
|
41
|
+
"external_name": "force_overwrite"
|
|
42
|
+
},
|
|
43
|
+
"templateId": {
|
|
44
|
+
"type": "number",
|
|
45
|
+
"description": "Id of the Test Template",
|
|
46
|
+
"parse": false,
|
|
47
|
+
"encode": false,
|
|
48
|
+
"encrypt": {
|
|
49
|
+
"type": "AES",
|
|
50
|
+
"key": ""
|
|
51
|
+
},
|
|
52
|
+
"external_name": "template_id"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"definitions": {}
|
|
56
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "listTwampReflectors",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/twamp_reflectors/?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": ""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "createTwampReflector",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/twamp_reflectors/?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "deleteTwampReflector",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "DELETE",
|
|
48
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/twamp_reflectors/{pathv2}/?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"requestDatatype": "JSON",
|
|
54
|
+
"responseDatatype": "JSON",
|
|
55
|
+
"headers": {},
|
|
56
|
+
"responseObjects": [
|
|
57
|
+
{
|
|
58
|
+
"type": "default",
|
|
59
|
+
"key": "",
|
|
60
|
+
"mockFile": ""
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "getTwampReflector",
|
|
66
|
+
"protocol": "REST",
|
|
67
|
+
"method": "GET",
|
|
68
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/twamp_reflectors/{pathv2}/?{query}",
|
|
69
|
+
"requestSchema": "schema.json",
|
|
70
|
+
"responseSchema": "schema.json",
|
|
71
|
+
"timeout": 0,
|
|
72
|
+
"sendEmpty": false,
|
|
73
|
+
"sendGetBody": false,
|
|
74
|
+
"requestDatatype": "JSON",
|
|
75
|
+
"responseDatatype": "JSON",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "updateTwampReflectorPatch",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "PATCH",
|
|
89
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/twamp_reflectors/{pathv2}/?{query}",
|
|
90
|
+
"requestSchema": "schema.json",
|
|
91
|
+
"responseSchema": "schema.json",
|
|
92
|
+
"timeout": 0,
|
|
93
|
+
"sendEmpty": false,
|
|
94
|
+
"requestDatatype": "JSON",
|
|
95
|
+
"responseDatatype": "JSON",
|
|
96
|
+
"headers": {},
|
|
97
|
+
"responseObjects": [
|
|
98
|
+
{
|
|
99
|
+
"type": "default",
|
|
100
|
+
"key": "",
|
|
101
|
+
"mockFile": ""
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "updateTwampReflector",
|
|
107
|
+
"protocol": "REST",
|
|
108
|
+
"method": "PUT",
|
|
109
|
+
"entitypath": "{base_path}/{version}/accounts/{pathv1}/twamp_reflectors/{pathv2}/?{query}",
|
|
110
|
+
"requestSchema": "schema.json",
|
|
111
|
+
"responseSchema": "schema.json",
|
|
112
|
+
"timeout": 0,
|
|
113
|
+
"sendEmpty": false,
|
|
114
|
+
"requestDatatype": "JSON",
|
|
115
|
+
"responseDatatype": "JSON",
|
|
116
|
+
"headers": {},
|
|
117
|
+
"responseObjects": [
|
|
118
|
+
{
|
|
119
|
+
"type": "default",
|
|
120
|
+
"key": "",
|
|
121
|
+
"mockFile": ""
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "listTwampReflectors",
|
|
12
|
+
"enum": [
|
|
13
|
+
"listTwampReflectors",
|
|
14
|
+
"createTwampReflector",
|
|
15
|
+
"deleteTwampReflector",
|
|
16
|
+
"getTwampReflector",
|
|
17
|
+
"updateTwampReflectorPatch",
|
|
18
|
+
"updateTwampReflector"
|
|
19
|
+
],
|
|
20
|
+
"external_name": "ph_request_type"
|
|
21
|
+
},
|
|
22
|
+
"tagName": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Filter by tag name e.g. 'key:value'",
|
|
25
|
+
"parse": false,
|
|
26
|
+
"encode": false,
|
|
27
|
+
"encrypt": {
|
|
28
|
+
"type": "AES",
|
|
29
|
+
"key": ""
|
|
30
|
+
},
|
|
31
|
+
"external_name": "tag_name"
|
|
32
|
+
},
|
|
33
|
+
"twampId": {
|
|
34
|
+
"type": "number",
|
|
35
|
+
"description": "ID of the TWAMP Reflector",
|
|
36
|
+
"parse": false,
|
|
37
|
+
"encode": false,
|
|
38
|
+
"encrypt": {
|
|
39
|
+
"type": "AES",
|
|
40
|
+
"key": ""
|
|
41
|
+
},
|
|
42
|
+
"external_name": "twamp_id"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"definitions": {}
|
|
46
|
+
}
|