@itentialopensource/adapter-meraki 1.6.4 → 1.7.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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-meraki",
3
- "version": "1.6.4",
3
+ "version": "1.7.0",
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.69.14",
8
+ "engineVersion": "1.71.2",
9
9
  "adapterType": "http",
10
10
  "scripts": {
11
11
  "preinstall": "node utils/setup.js",
@@ -24,9 +24,7 @@
24
24
  "troubleshoot": "node utils/tbScript.js troubleshoot",
25
25
  "healthcheck": "node utils/tbScript.js healthcheck",
26
26
  "basicget": "node utils/tbScript.js basicget",
27
- "connectivity": "node utils/tbScript.js connectivity",
28
- "deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
29
- "build": "npm run deploy"
27
+ "connectivity": "node utils/tbScript.js connectivity"
30
28
  },
31
29
  "keywords": [
32
30
  "Itential",
@@ -7,6 +7,10 @@
7
7
  "type": "encryption",
8
8
  "pointer": "/authentication/token"
9
9
  },
10
+ {
11
+ "type": "encryption",
12
+ "pointer": "/authentication/client_secret"
13
+ },
10
14
  {
11
15
  "type": "encryption",
12
16
  "pointer": "/mongo/password"
@@ -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": 15
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": 17
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "5.10.23"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 79
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 345
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": 662
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 57
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": 23991
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": 18133
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": 1489
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 37
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 43613
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
+ }
@@ -956,14 +956,16 @@ describe('[unit] Adapter Base Test', () => {
956
956
  });
957
957
  it('should get information for all of the requests currently in the queue', (done) => {
958
958
  try {
959
- const expectedFunctions = a.iapGetAdapterQueue();
960
- try {
961
- assert.equal(0, expectedFunctions.length);
962
- done();
963
- } catch (err) {
964
- log.error(`Test Failure: ${err}`);
965
- done(err);
966
- }
959
+ a.iapGetAdapterQueue((data, error) => {
960
+ try {
961
+ assert.notEqual(null, data);
962
+ assert.equal(0, data.length);
963
+ done();
964
+ } catch (err) {
965
+ log.error(`Test Failure: ${err}`);
966
+ done(err);
967
+ }
968
+ });
967
969
  } catch (error) {
968
970
  log.error(`Adapter Exception: ${error}`);
969
971
  done(error);
@@ -252,8 +252,6 @@ describe('[unit] Meraki Adapter Test', () => {
252
252
  assert.equal('mocha test/unit/adapterTestUnit.js --LOG=error', packageDotJson.scripts['test:unit']);
253
253
  assert.equal('mocha test/integration/adapterTestIntegration.js --LOG=error', packageDotJson.scripts['test:integration']);
254
254
  assert.equal('npm run test:baseunit && npm run test:unit && npm run test:integration', packageDotJson.scripts.test);
255
- assert.equal('npm publish --registry=https://registry.npmjs.org --access=public', packageDotJson.scripts.deploy);
256
- assert.equal('npm run deploy', packageDotJson.scripts.build);
257
255
  done();
258
256
  } catch (error) {
259
257
  log.error(`Test Failure: ${error}`);