@itentialopensource/adapter-redis_cloud 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.
Files changed (85) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +3 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +590 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +13 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +342 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +22 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +6554 -0
  23. package/adapterBase.js +1349 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +53 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/AccessControlList/action.json +268 -0
  33. package/entities/AccessControlList/schema.json +31 -0
  34. package/entities/Account/action.json +130 -0
  35. package/entities/Account/schema.json +24 -0
  36. package/entities/CloudAccounts/action.json +106 -0
  37. package/entities/CloudAccounts/schema.json +23 -0
  38. package/entities/DatabasesFixed/action.json +146 -0
  39. package/entities/DatabasesFixed/schema.json +25 -0
  40. package/entities/DatabasesFlexible/action.json +166 -0
  41. package/entities/DatabasesFlexible/schema.json +26 -0
  42. package/entities/SubscriptionsFixed/action.json +148 -0
  43. package/entities/SubscriptionsFixed/schema.json +25 -0
  44. package/entities/SubscriptionsFlexible/action.json +370 -0
  45. package/entities/SubscriptionsFlexible/schema.json +36 -0
  46. package/entities/Tasks/action.json +46 -0
  47. package/entities/Tasks/schema.json +20 -0
  48. package/entities/Users/action.json +86 -0
  49. package/entities/Users/schema.json +22 -0
  50. package/error.json +190 -0
  51. package/metadata.json +51 -0
  52. package/package.json +84 -0
  53. package/pronghorn.json +5835 -0
  54. package/propertiesDecorators.json +14 -0
  55. package/propertiesSchema.json +1588 -0
  56. package/refs?service=git-upload-pack +0 -0
  57. package/report/adapterInfo.json +10 -0
  58. package/report/creationReport.json +680 -0
  59. package/report/redis.json +8093 -0
  60. package/report/updateReport1692203021745.json +120 -0
  61. package/sampleProperties.json +244 -0
  62. package/test/integration/adapterTestBasicGet.js +83 -0
  63. package/test/integration/adapterTestConnectivity.js +142 -0
  64. package/test/integration/adapterTestIntegration.js +2535 -0
  65. package/test/unit/adapterBaseTestUnit.js +1024 -0
  66. package/test/unit/adapterTestUnit.js +3906 -0
  67. package/utils/adapterInfo.js +206 -0
  68. package/utils/addAuth.js +94 -0
  69. package/utils/artifactize.js +146 -0
  70. package/utils/basicGet.js +50 -0
  71. package/utils/checkMigrate.js +63 -0
  72. package/utils/entitiesToDB.js +179 -0
  73. package/utils/findPath.js +74 -0
  74. package/utils/methodDocumentor.js +225 -0
  75. package/utils/modify.js +152 -0
  76. package/utils/packModificationScript.js +35 -0
  77. package/utils/patches2bundledDeps.js +90 -0
  78. package/utils/pre-commit.sh +32 -0
  79. package/utils/removeHooks.js +20 -0
  80. package/utils/setup.js +33 -0
  81. package/utils/taskMover.js +309 -0
  82. package/utils/tbScript.js +239 -0
  83. package/utils/tbUtils.js +489 -0
  84. package/utils/testRunner.js +298 -0
  85. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,370 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getSubscriptionById",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}?{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": "updateSubscription",
26
+ "protocol": "REST",
27
+ "method": "PUT",
28
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}?{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": "deleteSubscriptionById",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}?{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": "updateActiveActiveVpcPeering",
66
+ "protocol": "REST",
67
+ "method": "PUT",
68
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/regions/peerings/{pathv2}?{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": "deleteActiveActiveVpcPeering",
86
+ "protocol": "REST",
87
+ "method": "DELETE",
88
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/regions/peerings/{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": "updateVpcPeering",
106
+ "protocol": "REST",
107
+ "method": "PUT",
108
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/peerings/{pathv2}?{query}",
109
+ "requestSchema": "schema.json",
110
+ "responseSchema": "schema.json",
111
+ "timeout": 0,
112
+ "sendEmpty": false,
113
+ "requestDatatype": "JSON",
114
+ "responseDatatype": "JSON",
115
+ "headers": {},
116
+ "responseObjects": [
117
+ {
118
+ "type": "default",
119
+ "key": "",
120
+ "mockFile": ""
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "name": "deleteVpcPeering",
126
+ "protocol": "REST",
127
+ "method": "DELETE",
128
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/peerings/{pathv2}?{query}",
129
+ "requestSchema": "schema.json",
130
+ "responseSchema": "schema.json",
131
+ "timeout": 0,
132
+ "sendEmpty": false,
133
+ "requestDatatype": "JSON",
134
+ "responseDatatype": "JSON",
135
+ "headers": {},
136
+ "responseObjects": [
137
+ {
138
+ "type": "default",
139
+ "key": "",
140
+ "mockFile": ""
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "name": "getCidrWhiteList",
146
+ "protocol": "REST",
147
+ "method": "GET",
148
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/cidr?{query}",
149
+ "requestSchema": "schema.json",
150
+ "responseSchema": "schema.json",
151
+ "timeout": 0,
152
+ "sendEmpty": false,
153
+ "sendGetBody": 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": "updateSubscriptionCidrWhiteList",
167
+ "protocol": "REST",
168
+ "method": "PUT",
169
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/cidr?{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": "getAllSubscriptions",
187
+ "protocol": "REST",
188
+ "method": "GET",
189
+ "entitypath": "{base_path}/{version}/subscriptions?{query}",
190
+ "requestSchema": "schema.json",
191
+ "responseSchema": "schema.json",
192
+ "timeout": 0,
193
+ "sendEmpty": false,
194
+ "sendGetBody": false,
195
+ "requestDatatype": "JSON",
196
+ "responseDatatype": "JSON",
197
+ "headers": {},
198
+ "responseObjects": [
199
+ {
200
+ "type": "default",
201
+ "key": "",
202
+ "mockFile": ""
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "name": "createSubscription",
208
+ "protocol": "REST",
209
+ "method": "POST",
210
+ "entitypath": "{base_path}/{version}/subscriptions?{query}",
211
+ "requestSchema": "schema.json",
212
+ "responseSchema": "schema.json",
213
+ "timeout": 0,
214
+ "sendEmpty": false,
215
+ "requestDatatype": "JSON",
216
+ "responseDatatype": "JSON",
217
+ "headers": {},
218
+ "responseObjects": [
219
+ {
220
+ "type": "default",
221
+ "key": "",
222
+ "mockFile": ""
223
+ }
224
+ ]
225
+ },
226
+ {
227
+ "name": "getRegionsFromActiveActiveSubscription",
228
+ "protocol": "REST",
229
+ "method": "GET",
230
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/regions?{query}",
231
+ "requestSchema": "schema.json",
232
+ "responseSchema": "schema.json",
233
+ "timeout": 0,
234
+ "sendEmpty": false,
235
+ "sendGetBody": false,
236
+ "requestDatatype": "JSON",
237
+ "responseDatatype": "JSON",
238
+ "headers": {},
239
+ "responseObjects": [
240
+ {
241
+ "type": "default",
242
+ "key": "",
243
+ "mockFile": ""
244
+ }
245
+ ]
246
+ },
247
+ {
248
+ "name": "addNewRegionToActiveActiveSubscription",
249
+ "protocol": "REST",
250
+ "method": "POST",
251
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/regions?{query}",
252
+ "requestSchema": "schema.json",
253
+ "responseSchema": "schema.json",
254
+ "timeout": 0,
255
+ "sendEmpty": false,
256
+ "requestDatatype": "JSON",
257
+ "responseDatatype": "JSON",
258
+ "headers": {},
259
+ "responseObjects": [
260
+ {
261
+ "type": "default",
262
+ "key": "",
263
+ "mockFile": ""
264
+ }
265
+ ]
266
+ },
267
+ {
268
+ "name": "deleteRegionsFromActiveActiveSubscription",
269
+ "protocol": "REST",
270
+ "method": "DELETE",
271
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/regions?{query}",
272
+ "requestSchema": "schema.json",
273
+ "responseSchema": "schema.json",
274
+ "timeout": 0,
275
+ "sendEmpty": false,
276
+ "requestDatatype": "JSON",
277
+ "responseDatatype": "JSON",
278
+ "headers": {},
279
+ "responseObjects": [
280
+ {
281
+ "type": "default",
282
+ "key": "",
283
+ "mockFile": ""
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ "name": "getActiveActiveVpcPeerings",
289
+ "protocol": "REST",
290
+ "method": "GET",
291
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/regions/peerings?{query}",
292
+ "requestSchema": "schema.json",
293
+ "responseSchema": "schema.json",
294
+ "timeout": 0,
295
+ "sendEmpty": false,
296
+ "sendGetBody": false,
297
+ "requestDatatype": "JSON",
298
+ "responseDatatype": "JSON",
299
+ "headers": {},
300
+ "responseObjects": [
301
+ {
302
+ "type": "default",
303
+ "key": "",
304
+ "mockFile": ""
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ "name": "createActiveActiveVpcPeering",
310
+ "protocol": "REST",
311
+ "method": "POST",
312
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/regions/peerings?{query}",
313
+ "requestSchema": "schema.json",
314
+ "responseSchema": "schema.json",
315
+ "timeout": 0,
316
+ "sendEmpty": false,
317
+ "requestDatatype": "JSON",
318
+ "responseDatatype": "JSON",
319
+ "headers": {},
320
+ "responseObjects": [
321
+ {
322
+ "type": "default",
323
+ "key": "",
324
+ "mockFile": ""
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "name": "getVpcPeering",
330
+ "protocol": "REST",
331
+ "method": "GET",
332
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/peerings?{query}",
333
+ "requestSchema": "schema.json",
334
+ "responseSchema": "schema.json",
335
+ "timeout": 0,
336
+ "sendEmpty": false,
337
+ "sendGetBody": false,
338
+ "requestDatatype": "JSON",
339
+ "responseDatatype": "JSON",
340
+ "headers": {},
341
+ "responseObjects": [
342
+ {
343
+ "type": "default",
344
+ "key": "",
345
+ "mockFile": ""
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "name": "createVpcPeering",
351
+ "protocol": "REST",
352
+ "method": "POST",
353
+ "entitypath": "{base_path}/{version}/subscriptions/{pathv1}/peerings?{query}",
354
+ "requestSchema": "schema.json",
355
+ "responseSchema": "schema.json",
356
+ "timeout": 0,
357
+ "sendEmpty": false,
358
+ "requestDatatype": "JSON",
359
+ "responseDatatype": "JSON",
360
+ "headers": {},
361
+ "responseObjects": [
362
+ {
363
+ "type": "default",
364
+ "key": "",
365
+ "mockFile": ""
366
+ }
367
+ ]
368
+ }
369
+ ]
370
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getSubscriptionById",
12
+ "enum": [
13
+ "getSubscriptionById",
14
+ "updateSubscription",
15
+ "deleteSubscriptionById",
16
+ "updateActiveActiveVpcPeering",
17
+ "deleteActiveActiveVpcPeering",
18
+ "updateVpcPeering",
19
+ "deleteVpcPeering",
20
+ "getCidrWhiteList",
21
+ "updateSubscriptionCidrWhiteList",
22
+ "getAllSubscriptions",
23
+ "createSubscription",
24
+ "getRegionsFromActiveActiveSubscription",
25
+ "addNewRegionToActiveActiveSubscription",
26
+ "deleteRegionsFromActiveActiveSubscription",
27
+ "getActiveActiveVpcPeerings",
28
+ "createActiveActiveVpcPeering",
29
+ "getVpcPeering",
30
+ "createVpcPeering"
31
+ ],
32
+ "external_name": "ph_request_type"
33
+ }
34
+ },
35
+ "definitions": {}
36
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getAllTasks",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/tasks?{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": "getTaskById",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/tasks/{pathv1}?{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
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getAllTasks",
12
+ "enum": [
13
+ "getAllTasks",
14
+ "getTaskById"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getUserById",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/users/{pathv1}?{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": "updateUser",
26
+ "protocol": "REST",
27
+ "method": "PUT",
28
+ "entitypath": "{base_path}/{version}/users/{pathv1}?{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": "deleteUserById",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "{base_path}/{version}/users/{pathv1}?{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": "getAllUsers",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/users?{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
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getUserById",
12
+ "enum": [
13
+ "getUserById",
14
+ "updateUser",
15
+ "deleteUserById",
16
+ "getAllUsers"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }