@itentialopensource/adapter-amazon_route53 0.3.9 → 0.4.0
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/BROKER.md +31 -19
- package/CALLS.md +2 -2
- package/CHANGELOG.md +8 -0
- package/PROPERTIES.md +5 -0
- package/README.md +60 -63
- package/SYSTEMINFO.md +4 -1
- package/TAB1.md +3 -0
- package/TAB2.md +105 -1213
- package/metadata.json +13 -2
- package/package.json +6 -8
- package/propertiesSchema.json +5 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/report/updateReport1717535007617.json +120 -0
- package/sampleProperties.json +37 -25
- package/test/integration/adapterTestIntegration.js +1 -0
- package/test/unit/adapterTestUnit.js +1 -3
package/metadata.json
CHANGED
|
@@ -44,13 +44,24 @@
|
|
|
44
44
|
"isDeprecated": false
|
|
45
45
|
},
|
|
46
46
|
"brokerSince": "",
|
|
47
|
+
"authMethods": [
|
|
48
|
+
{
|
|
49
|
+
"type": "AWS Auth",
|
|
50
|
+
"primary": true
|
|
51
|
+
}
|
|
52
|
+
],
|
|
47
53
|
"documentation": {
|
|
48
54
|
"storeLink": "",
|
|
49
55
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-amazon_route53",
|
|
50
|
-
"repoLink": "https://gitlab.com/itentialopensource/adapters/
|
|
56
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-amazon_route53",
|
|
51
57
|
"docLink": "https://docs.itential.com/opensource/docs/amazon-route53",
|
|
52
58
|
"demoLinks": [],
|
|
53
|
-
"trainingLinks": [
|
|
59
|
+
"trainingLinks": [
|
|
60
|
+
{
|
|
61
|
+
"title": "Itential Academy",
|
|
62
|
+
"link": "https://www.itential.com/itential-academy/"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
54
65
|
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
55
66
|
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
56
67
|
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-amazon_route53",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "This adapter integrates with system described as: Amazon Route53.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "Amazon AWS Route53",
|
|
7
7
|
"wizardVersion": "2.44.7",
|
|
8
|
-
"engineVersion": "1.67.
|
|
8
|
+
"engineVersion": "1.67.20",
|
|
9
9
|
"adapterType": "http",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
|
17
17
|
"test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
|
|
18
18
|
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
|
19
|
-
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
|
20
19
|
"adapter:patches2bundled": "node utils/patches2bundledDeps.js",
|
|
21
20
|
"test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
|
|
22
21
|
"adapter:install": "npm i && node utils/tbScript.js install",
|
|
@@ -46,17 +45,17 @@
|
|
|
46
45
|
],
|
|
47
46
|
"license": "Apache-2.0",
|
|
48
47
|
"engines": {
|
|
49
|
-
"node": ">=
|
|
48
|
+
"node": ">= 14.0.0",
|
|
50
49
|
"npm": ">= 6.0.0"
|
|
51
50
|
},
|
|
52
51
|
"repository": {
|
|
53
52
|
"type": "git",
|
|
54
|
-
"url": "git@gitlab.com:itentialopensource/adapters/
|
|
53
|
+
"url": "git@gitlab.com:itentialopensource/adapters/adapter-amazon_route53.git"
|
|
55
54
|
},
|
|
56
55
|
"author": "Itential",
|
|
57
|
-
"homepage": "https://gitlab.com/itentialopensource/adapters/
|
|
56
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-amazon_route53#readme",
|
|
58
57
|
"dependencies": {
|
|
59
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
58
|
+
"@itentialopensource/adapter-utils": "^5.5.0",
|
|
60
59
|
"acorn": "^8.10.0",
|
|
61
60
|
"ajv": "^8.12.0",
|
|
62
61
|
"axios": "^1.6.8",
|
|
@@ -67,7 +66,6 @@
|
|
|
67
66
|
"mocha": "^10.3.0",
|
|
68
67
|
"mocha-param": "^2.0.1",
|
|
69
68
|
"mongodb": "^4.16.0",
|
|
70
|
-
"nyc": "^15.1.0",
|
|
71
69
|
"ping": "^0.4.4",
|
|
72
70
|
"prompts": "^2.4.2",
|
|
73
71
|
"readline-sync": "^1.4.10",
|
package/propertiesSchema.json
CHANGED
|
@@ -985,6 +985,11 @@
|
|
|
985
985
|
"devicebroker": {
|
|
986
986
|
"type": "object",
|
|
987
987
|
"properties": {
|
|
988
|
+
"enabled": {
|
|
989
|
+
"type": "boolean",
|
|
990
|
+
"description": "Whether or not the device broker calls have been mapped",
|
|
991
|
+
"default": false
|
|
992
|
+
},
|
|
988
993
|
"getDevice": {
|
|
989
994
|
"type": "array",
|
|
990
995
|
"description": "Broker call(s) to getDevice",
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.3.
|
|
3
|
-
"configLines":
|
|
2
|
+
"version": "0.3.9",
|
|
3
|
+
"configLines": 9898,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 9292,
|
|
6
|
-
"testLines":
|
|
6
|
+
"testLines": 6944,
|
|
7
7
|
"testCases": 354,
|
|
8
|
-
"totalCodeLines":
|
|
8
|
+
"totalCodeLines": 18019,
|
|
9
9
|
"wfTasks": 153
|
|
10
10
|
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"errors": [],
|
|
3
|
+
"statistics": [
|
|
4
|
+
{
|
|
5
|
+
"owner": "errorJson",
|
|
6
|
+
"description": "New adapter errors available for use",
|
|
7
|
+
"value": 0
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"owner": "errorJson",
|
|
11
|
+
"description": "Adapter errors no longer available for use",
|
|
12
|
+
"value": 0
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"owner": "errorJson",
|
|
16
|
+
"description": "Adapter errors that have been updated (e.g. recommendation changes)",
|
|
17
|
+
"value": 31
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"owner": "packageJson",
|
|
21
|
+
"description": "Number of production dependencies",
|
|
22
|
+
"value": 16
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"owner": "packageJson",
|
|
26
|
+
"description": "Number of development dependencies",
|
|
27
|
+
"value": 6
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"owner": "packageJson",
|
|
31
|
+
"description": "Number of npm scripts",
|
|
32
|
+
"value": 21
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"owner": "packageJson",
|
|
36
|
+
"description": "Runtime Library dependency",
|
|
37
|
+
"value": "^5.5.0"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"owner": "propertiesSchemaJson",
|
|
41
|
+
"description": "Adapter properties defined in the propertiesSchema file",
|
|
42
|
+
"value": 83
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"owner": "markdown",
|
|
46
|
+
"description": "Number of lines in the README.md",
|
|
47
|
+
"value": 344
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"owner": "markdown",
|
|
51
|
+
"description": "Number of lines in the SUMMARY.md",
|
|
52
|
+
"value": 9
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"owner": "markdown",
|
|
56
|
+
"description": "Number of lines in the PROPERTIES.md",
|
|
57
|
+
"value": 647
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"owner": "markdown",
|
|
61
|
+
"description": "Number of lines in the TROUBLESHOOT.md",
|
|
62
|
+
"value": 48
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"owner": "markdown",
|
|
66
|
+
"description": "Number of lines in the ENHANCE.md",
|
|
67
|
+
"value": 70
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"owner": "markdown",
|
|
71
|
+
"description": "Number of lines in the BROKER.md",
|
|
72
|
+
"value": 70
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"owner": "unitTestJS",
|
|
76
|
+
"description": "Number of lines of code in unit tests",
|
|
77
|
+
"value": 3584
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"owner": "unitTestJS",
|
|
81
|
+
"description": "Number of unit tests",
|
|
82
|
+
"value": 209
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"owner": "integrationTestJS",
|
|
86
|
+
"description": "Number of lines of code in integration tests",
|
|
87
|
+
"value": 2108
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"owner": "integrationTestJS",
|
|
91
|
+
"description": "Number of integration tests",
|
|
92
|
+
"value": 73
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"owner": "staticFile",
|
|
96
|
+
"description": "Number of lines of code in adapterBase.js",
|
|
97
|
+
"value": 1453
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"owner": "staticFile",
|
|
101
|
+
"description": "Number of static files added",
|
|
102
|
+
"value": 36
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"owner": "Overall",
|
|
106
|
+
"description": "Total lines of Code",
|
|
107
|
+
"value": 7145
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"owner": "Overall",
|
|
111
|
+
"description": "Total Tests",
|
|
112
|
+
"value": 282
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"owner": "Overall",
|
|
116
|
+
"description": "Total Files",
|
|
117
|
+
"value": 6
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
package/sampleProperties.json
CHANGED
|
@@ -122,30 +122,32 @@
|
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
"devicebroker": {
|
|
125
|
+
"enabled": false,
|
|
125
126
|
"getDevice": [
|
|
126
127
|
{
|
|
127
|
-
"path": "/
|
|
128
|
+
"path": "/not/mapped",
|
|
128
129
|
"method": "GET",
|
|
129
130
|
"query": {},
|
|
130
131
|
"body": {},
|
|
131
132
|
"headers": {},
|
|
132
133
|
"handleFailure": "ignore",
|
|
133
134
|
"requestFields": {
|
|
134
|
-
"
|
|
135
|
+
"insample": "{port}"
|
|
135
136
|
},
|
|
136
137
|
"responseDatakey": "",
|
|
137
138
|
"responseFields": {
|
|
138
|
-
"name": "
|
|
139
|
-
"ostype": "
|
|
140
|
-
"ostypePrefix": "
|
|
141
|
-
"
|
|
142
|
-
"
|
|
139
|
+
"name": "{this}{||}{that}",
|
|
140
|
+
"ostype": "{osfield}",
|
|
141
|
+
"ostypePrefix": "meraki-",
|
|
142
|
+
"port": "{port}",
|
|
143
|
+
"ipaddress": "{ip_addr}",
|
|
144
|
+
"serial" : "{serial}"
|
|
143
145
|
}
|
|
144
146
|
}
|
|
145
147
|
],
|
|
146
148
|
"getDevicesFiltered": [
|
|
147
149
|
{
|
|
148
|
-
"path": "/
|
|
150
|
+
"path": "/not/mapped",
|
|
149
151
|
"method": "GET",
|
|
150
152
|
"pagination": {
|
|
151
153
|
"offsetVar": "",
|
|
@@ -160,42 +162,44 @@
|
|
|
160
162
|
"requestFields": {},
|
|
161
163
|
"responseDatakey": "",
|
|
162
164
|
"responseFields": {
|
|
163
|
-
"name": "
|
|
164
|
-
"ostype": "
|
|
165
|
-
"ostypePrefix": "
|
|
166
|
-
"
|
|
167
|
-
"
|
|
165
|
+
"name": "{this}{||}{that}",
|
|
166
|
+
"ostype": "{osfield}",
|
|
167
|
+
"ostypePrefix": "meraki-",
|
|
168
|
+
"port": "{port}",
|
|
169
|
+
"ipaddress": "{ip_addr}",
|
|
170
|
+
"serial" : "{serial}",
|
|
171
|
+
"id": "{myid}"
|
|
168
172
|
}
|
|
169
173
|
}
|
|
170
174
|
],
|
|
171
175
|
"isAlive": [
|
|
172
176
|
{
|
|
173
|
-
"path": "/
|
|
177
|
+
"path": "/not/mapped/{devID}",
|
|
174
178
|
"method": "GET",
|
|
175
179
|
"query": {},
|
|
176
180
|
"body": {},
|
|
177
181
|
"headers": {},
|
|
178
182
|
"handleFailure": "ignore",
|
|
179
183
|
"requestFields": {
|
|
180
|
-
"
|
|
184
|
+
"devID": "{id}"
|
|
181
185
|
},
|
|
182
186
|
"responseDatakey": "",
|
|
183
187
|
"responseFields": {
|
|
184
|
-
"status": "
|
|
185
|
-
"statusValue": "
|
|
188
|
+
"status": "return2xx",
|
|
189
|
+
"statusValue": "AD.200"
|
|
186
190
|
}
|
|
187
191
|
}
|
|
188
192
|
],
|
|
189
193
|
"getConfig": [
|
|
190
194
|
{
|
|
191
|
-
"path": "/
|
|
195
|
+
"path": "/not/mapped/{devID}",
|
|
192
196
|
"method": "GET",
|
|
193
197
|
"query": {},
|
|
194
198
|
"body": {},
|
|
195
199
|
"headers": {},
|
|
196
200
|
"handleFailure": "ignore",
|
|
197
201
|
"requestFields": {
|
|
198
|
-
"
|
|
202
|
+
"devID": "{id}"
|
|
199
203
|
},
|
|
200
204
|
"responseDatakey": "",
|
|
201
205
|
"responseFields": {}
|
|
@@ -203,7 +207,7 @@
|
|
|
203
207
|
],
|
|
204
208
|
"getCount": [
|
|
205
209
|
{
|
|
206
|
-
"path": "/
|
|
210
|
+
"path": "/not/mapped",
|
|
207
211
|
"method": "GET",
|
|
208
212
|
"query": {},
|
|
209
213
|
"body": {},
|
|
@@ -219,15 +223,15 @@
|
|
|
219
223
|
"enabled": false,
|
|
220
224
|
"entities": [
|
|
221
225
|
{
|
|
222
|
-
"entityType": "",
|
|
223
|
-
"frequency":
|
|
226
|
+
"entityType": "device",
|
|
227
|
+
"frequency": 3600,
|
|
224
228
|
"flushOnFail": false,
|
|
225
|
-
"limit":
|
|
229
|
+
"limit": 10000,
|
|
226
230
|
"retryAttempts": 5,
|
|
227
231
|
"sort": true,
|
|
228
232
|
"populate": [
|
|
229
233
|
{
|
|
230
|
-
"path": "",
|
|
234
|
+
"path": "/not/mapped",
|
|
231
235
|
"method": "GET",
|
|
232
236
|
"pagination": {
|
|
233
237
|
"offsetVar": "",
|
|
@@ -241,7 +245,15 @@
|
|
|
241
245
|
"handleFailure": "ignore",
|
|
242
246
|
"requestFields": {},
|
|
243
247
|
"responseDatakey": "",
|
|
244
|
-
"responseFields": {
|
|
248
|
+
"responseFields": {
|
|
249
|
+
"name": "{this}{||}{that}",
|
|
250
|
+
"ostype": "{osfield}",
|
|
251
|
+
"ostypePrefix": "meraki-",
|
|
252
|
+
"port": "{port}",
|
|
253
|
+
"ipaddress": "{ip_addr}",
|
|
254
|
+
"serial" : "{serial}",
|
|
255
|
+
"id": "{myid}"
|
|
256
|
+
}
|
|
245
257
|
}
|
|
246
258
|
],
|
|
247
259
|
"cachedTasks": [
|
|
@@ -46,6 +46,7 @@ samProps.ssl.accept_invalid_cert = false;
|
|
|
46
46
|
if (samProps.request.attempt_timeout < 30000) {
|
|
47
47
|
samProps.request.attempt_timeout = 30000;
|
|
48
48
|
}
|
|
49
|
+
samProps.devicebroker.enabled = true;
|
|
49
50
|
const attemptTimeout = samProps.request.attempt_timeout;
|
|
50
51
|
const { stub } = samProps;
|
|
51
52
|
|
|
@@ -284,7 +284,6 @@ describe('[unit] Amazon_route53 Adapter Test', () => {
|
|
|
284
284
|
assert.equal('mocha test/unit/adapterBaseTestUnit.js --LOG=error', packageDotJson.scripts['test:baseunit']);
|
|
285
285
|
assert.equal('mocha test/unit/adapterTestUnit.js --LOG=error', packageDotJson.scripts['test:unit']);
|
|
286
286
|
assert.equal('mocha test/integration/adapterTestIntegration.js --LOG=error', packageDotJson.scripts['test:integration']);
|
|
287
|
-
assert.equal('nyc --reporter html --reporter text mocha --reporter dot test/*', packageDotJson.scripts['test:cover']);
|
|
288
287
|
assert.equal('npm run test:baseunit && npm run test:unit && npm run test:integration', packageDotJson.scripts.test);
|
|
289
288
|
assert.equal('npm publish --registry=https://registry.npmjs.org --access=public', packageDotJson.scripts.deploy);
|
|
290
289
|
assert.equal('npm run deploy', packageDotJson.scripts.build);
|
|
@@ -321,7 +320,6 @@ describe('[unit] Amazon_route53 Adapter Test', () => {
|
|
|
321
320
|
assert.equal('^11.1.1', packageDotJson.dependencies['fs-extra']);
|
|
322
321
|
assert.equal('^10.3.0', packageDotJson.dependencies.mocha);
|
|
323
322
|
assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
|
|
324
|
-
assert.equal('^15.1.0', packageDotJson.dependencies.nyc);
|
|
325
323
|
assert.equal('^0.4.4', packageDotJson.dependencies.ping);
|
|
326
324
|
assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
|
|
327
325
|
assert.equal('^7.5.3', packageDotJson.dependencies.semver);
|
|
@@ -563,7 +561,7 @@ describe('[unit] Amazon_route53 Adapter Test', () => {
|
|
|
563
561
|
log.error(`Adapter Exception: ${error}`);
|
|
564
562
|
done(error);
|
|
565
563
|
}
|
|
566
|
-
});
|
|
564
|
+
}).timeout(attemptTimeout);
|
|
567
565
|
});
|
|
568
566
|
|
|
569
567
|
describe('propertiesSchema.json', () => {
|