@itentialopensource/adapter-beyond_trust 0.2.1 → 0.2.3

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.
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.1.1",
2
+ "version": "0.2.2",
3
3
  "configLines": 11814,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 13855,
6
- "testLines": 11566,
7
- "testCases": 600,
8
- "totalCodeLines": 27204,
6
+ "testLines": 11542,
7
+ "testCases": 599,
8
+ "totalCodeLines": 27180,
9
9
  "wfTasks": 164
10
10
  }
@@ -16,8 +16,8 @@
16
16
  "authentication": {
17
17
  "auth_method": "request_token",
18
18
  "username": "username",
19
- "password": "paswword",
20
- "token": "",
19
+ "password": "password",
20
+ "token": "token",
21
21
  "token_user_field": "",
22
22
  "token_password_field": "",
23
23
  "token_result_field": "access_token",
@@ -131,7 +131,7 @@
131
131
  "ostypePrefix": "meraki-",
132
132
  "port": "{port}",
133
133
  "ipaddress": "{ip_addr}",
134
- "serial" : "{serial}"
134
+ "serial": "{serial}"
135
135
  }
136
136
  }
137
137
  ],
@@ -157,7 +157,7 @@
157
157
  "ostypePrefix": "meraki-",
158
158
  "port": "{port}",
159
159
  "ipaddress": "{ip_addr}",
160
- "serial" : "{serial}",
160
+ "serial": "{serial}",
161
161
  "id": "{myid}"
162
162
  }
163
163
  }
@@ -241,7 +241,7 @@
241
241
  "ostypePrefix": "meraki-",
242
242
  "port": "{port}",
243
243
  "ipaddress": "{ip_addr}",
244
- "serial" : "{serial}",
244
+ "serial": "{serial}",
245
245
  "id": "{myid}"
246
246
  }
247
247
  }
@@ -4,7 +4,6 @@
4
4
  /* eslint no-unused-vars: warn */
5
5
 
6
6
  const assert = require('assert');
7
- const http = require('http');
8
7
  const https = require('https');
9
8
  const mocha = require('mocha');
10
9
  const ping = require('ping');
@@ -53,29 +52,6 @@ describe('[integration] Adapter Test', () => {
53
52
  });
54
53
  });
55
54
 
56
- it('Support HTTP on port 80', (done) => {
57
- const requestOptions = {
58
- host,
59
- port: 80,
60
- method: 'HEAD'
61
- };
62
-
63
- const req = http.request(requestOptions, (res) => {
64
- try {
65
- assert.ok(res.statusCode >= 200 && res.statusCode < 400);
66
- done();
67
- } catch (error) {
68
- done(error);
69
- }
70
- });
71
-
72
- req.on('error', (err) => {
73
- done(err);
74
- });
75
-
76
- req.end();
77
- });
78
-
79
55
  it('Support HTTPS on port 443', (done) => {
80
56
  const requestOptions = {
81
57
  host,
@@ -315,15 +315,15 @@ describe('[unit] Beyond_trust Adapter Test', () => {
315
315
  assert.notEqual(null, packageDotJson.dependencies);
316
316
  assert.notEqual('', packageDotJson.dependencies);
317
317
  assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
318
- assert.equal('^1.7.2', packageDotJson.dependencies.axios);
318
+ assert.equal('^1.7.4', packageDotJson.dependencies.axios);
319
319
  assert.equal('^11.0.0', packageDotJson.dependencies.commander);
320
320
  assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
321
- assert.equal('^10.7.0', packageDotJson.dependencies.mocha);
321
+ assert.equal('^10.7.3', packageDotJson.dependencies.mocha);
322
322
  assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
323
323
  assert.equal('^0.4.4', packageDotJson.dependencies.ping);
324
324
  assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
325
325
  assert.equal('^7.6.3', packageDotJson.dependencies.semver);
326
- assert.equal('^3.13.1', packageDotJson.dependencies.winston);
326
+ assert.equal('^3.14.2', packageDotJson.dependencies.winston);
327
327
  done();
328
328
  } catch (error) {
329
329
  log.error(`Test Failure: ${error}`);
@@ -561,7 +561,7 @@ describe('[unit] Beyond_trust Adapter Test', () => {
561
561
  log.error(`Adapter Exception: ${error}`);
562
562
  done(error);
563
563
  }
564
- });
564
+ }).timeout(attemptTimeout);
565
565
  });
566
566
 
567
567
  describe('propertiesSchema.json', () => {