@itentialopensource/adapter-meraki 1.4.8 → 1.5.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/AUTH.md +3 -3
- package/BROKER.md +31 -19
- package/CHANGELOG.md +16 -0
- package/PROPERTIES.md +5 -0
- package/README.md +60 -63
- package/SYSTEMINFO.md +5 -2
- package/TAB1.md +5 -2
- package/TAB2.md +39 -4680
- package/compliance-report.json +9 -0
- package/compliance-report.txt +5 -0
- package/metadata.json +9 -3
- package/package.json +12 -14
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +3 -3
- package/report/updateReport1715046639226.json +120 -0
- package/sampleProperties.json +3 -3
- package/test/integration/adapterTestIntegration.js +1 -0
- package/test/unit/adapterTestUnit.js +6 -8
@@ -0,0 +1,5 @@
|
|
1
|
+
---------------------------------------------------------------------------------------------
|
2
|
+
**** Project Compliance Summary ****
|
3
|
+
0 project(s) are not valid
|
4
|
+
0 project(s) are valid
|
5
|
+
---------------------------------------------------------------------------------------------
|
package/metadata.json
CHANGED
@@ -46,7 +46,7 @@
|
|
46
46
|
"documentation": {
|
47
47
|
"storeLink": "",
|
48
48
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-meraki",
|
49
|
-
"repoLink": "https://gitlab.com/itentialopensource/adapters/
|
49
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-meraki",
|
50
50
|
"docLink": "https://docs.itential.com/opensource/docs/meraki",
|
51
51
|
"demoLinks": [
|
52
52
|
{
|
@@ -58,7 +58,12 @@
|
|
58
58
|
"link": "https://www.itential.com/solutions/sdwan-automation-orchestration/"
|
59
59
|
}
|
60
60
|
],
|
61
|
-
"trainingLinks": [
|
61
|
+
"trainingLinks": [
|
62
|
+
{
|
63
|
+
"title": "Itential Academy",
|
64
|
+
"link": "https://www.itential.com/itential-academy/"
|
65
|
+
}
|
66
|
+
],
|
62
67
|
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
63
68
|
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
64
69
|
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
@@ -93,5 +98,6 @@
|
|
93
98
|
],
|
94
99
|
"transformationProjects": [],
|
95
100
|
"exampleProjects": []
|
96
|
-
}
|
101
|
+
},
|
102
|
+
"supportLevel": "community"
|
97
103
|
}
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@itentialopensource/adapter-meraki",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.5.1",
|
4
4
|
"description": "This adapter integrates with system described as: merakiDashboardApi.",
|
5
5
|
"main": "adapter.js",
|
6
6
|
"systemName": "Meraki",
|
7
7
|
"wizardVersion": "2.44.7",
|
8
|
-
"engineVersion": "1.67.
|
8
|
+
"engineVersion": "1.67.19",
|
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
|
"test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
|
21
20
|
"adapter:install": "npm i && node utils/tbScript.js install",
|
22
21
|
"adapter:checkMigrate": "node utils/checkMigrate.js",
|
@@ -49,28 +48,27 @@
|
|
49
48
|
},
|
50
49
|
"repository": {
|
51
50
|
"type": "git",
|
52
|
-
"url": "git@gitlab.com:itentialopensource/adapters/
|
51
|
+
"url": "git@gitlab.com:itentialopensource/adapters/adapter-meraki.git"
|
53
52
|
},
|
54
53
|
"author": "Itential",
|
55
|
-
"homepage": "https://gitlab.com/itentialopensource/adapters/
|
54
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-meraki#readme",
|
56
55
|
"dependencies": {
|
57
|
-
"@itentialopensource/adapter-utils": "^5.
|
58
|
-
"acorn": "^8.
|
59
|
-
"ajv": "^8.
|
60
|
-
"axios": "^1.
|
56
|
+
"@itentialopensource/adapter-utils": "^5.6.0",
|
57
|
+
"acorn": "^8.12.1",
|
58
|
+
"ajv": "^8.17.1",
|
59
|
+
"axios": "^1.7.2",
|
61
60
|
"commander": "^11.0.0",
|
62
61
|
"dns-lookup-promise": "^1.0.4",
|
63
|
-
"fs-extra": "^11.
|
62
|
+
"fs-extra": "^11.2.0",
|
64
63
|
"json-query": "^2.2.2",
|
65
|
-
"mocha": "^10.
|
64
|
+
"mocha": "^10.7.0",
|
66
65
|
"mocha-param": "^2.0.1",
|
67
66
|
"mongodb": "^4.16.0",
|
68
|
-
"nyc": "^15.1.0",
|
69
67
|
"ping": "^0.4.4",
|
70
68
|
"prompts": "^2.4.2",
|
71
69
|
"readline-sync": "^1.4.10",
|
72
|
-
"semver": "^7.
|
73
|
-
"winston": "^3.
|
70
|
+
"semver": "^7.6.3",
|
71
|
+
"winston": "^3.13.1"
|
74
72
|
},
|
75
73
|
"devDependencies": {
|
76
74
|
"chai": "^4.3.7",
|
Binary file
|
package/report/adapterInfo.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.4.
|
2
|
+
"version": "1.4.8",
|
3
3
|
"configLines": 63068,
|
4
4
|
"scriptLines": 1783,
|
5
5
|
"codeLines": 53869,
|
6
|
-
"testLines":
|
6
|
+
"testLines": 43444,
|
7
7
|
"testCases": 2230,
|
8
|
-
"totalCodeLines":
|
8
|
+
"totalCodeLines": 99096,
|
9
9
|
"wfTasks": 611
|
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.3.10"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"owner": "propertiesSchemaJson",
|
41
|
+
"description": "Adapter properties defined in the propertiesSchema file",
|
42
|
+
"value": 78
|
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": 24026
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"owner": "unitTestJS",
|
81
|
+
"description": "Number of unit tests",
|
82
|
+
"value": 1565
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"owner": "integrationTestJS",
|
86
|
+
"description": "Number of lines of code in integration tests",
|
87
|
+
"value": 18166
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"owner": "integrationTestJS",
|
91
|
+
"description": "Number of integration tests",
|
92
|
+
"value": 595
|
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": 43645
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"owner": "Overall",
|
111
|
+
"description": "Total Tests",
|
112
|
+
"value": 2160
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"owner": "Overall",
|
116
|
+
"description": "Total Files",
|
117
|
+
"value": 6
|
118
|
+
}
|
119
|
+
]
|
120
|
+
}
|
package/sampleProperties.json
CHANGED
@@ -135,7 +135,7 @@
|
|
135
135
|
"ostypePrefix": "meraki-",
|
136
136
|
"port": "{networkId}",
|
137
137
|
"ipaddress": "{mac}",
|
138
|
-
"serial"
|
138
|
+
"serial": "{serial}"
|
139
139
|
}
|
140
140
|
}
|
141
141
|
],
|
@@ -161,7 +161,7 @@
|
|
161
161
|
"ostypePrefix": "meraki-",
|
162
162
|
"port": "{networkId}",
|
163
163
|
"ipaddress": "{mac}",
|
164
|
-
"serial"
|
164
|
+
"serial": "{serial}",
|
165
165
|
"orgID": "{orgID}"
|
166
166
|
}
|
167
167
|
}
|
@@ -247,7 +247,7 @@
|
|
247
247
|
"ostypePrefix": "meraki-",
|
248
248
|
"port": "{networkId}",
|
249
249
|
"ipaddress": "{mac}",
|
250
|
-
"serial"
|
250
|
+
"serial": "{serial}",
|
251
251
|
"orgID": "{orgID}"
|
252
252
|
}
|
253
253
|
}
|
@@ -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] Meraki 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);
|
@@ -315,17 +314,16 @@ describe('[unit] Meraki Adapter Test', () => {
|
|
315
314
|
assert.notEqual(undefined, packageDotJson.dependencies);
|
316
315
|
assert.notEqual(null, packageDotJson.dependencies);
|
317
316
|
assert.notEqual('', packageDotJson.dependencies);
|
318
|
-
assert.equal('^8.
|
319
|
-
assert.equal('^1.
|
317
|
+
assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
|
318
|
+
assert.equal('^1.7.2', packageDotJson.dependencies.axios);
|
320
319
|
assert.equal('^11.0.0', packageDotJson.dependencies.commander);
|
321
|
-
assert.equal('^11.
|
322
|
-
assert.equal('^10.
|
320
|
+
assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
|
321
|
+
assert.equal('^10.7.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
|
-
assert.equal('^7.
|
328
|
-
assert.equal('^3.
|
325
|
+
assert.equal('^7.6.3', packageDotJson.dependencies.semver);
|
326
|
+
assert.equal('^3.13.1', packageDotJson.dependencies.winston);
|
329
327
|
done();
|
330
328
|
} catch (error) {
|
331
329
|
log.error(`Test Failure: ${error}`);
|