@itentialopensource/adapter-kentik 0.2.7 → 0.2.9

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/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.2.9 [10-14-2024]
3
+
4
+ * Changes made at 2024.10.14_19:32PM
5
+
6
+ See merge request itentialopensource/adapters/adapter-kentik!13
7
+
8
+ ---
9
+
10
+ ## 0.2.8 [08-30-2024]
11
+
12
+ * update dependencies and metadata
13
+
14
+ See merge request itentialopensource/adapters/adapter-kentik!11
15
+
16
+ ---
17
+
2
18
  ## 0.2.7 [08-14-2024]
3
19
 
4
20
  * Changes made at 2024.08.14_17:33PM
package/TAB2.md CHANGED
@@ -62,7 +62,7 @@ Sample Properties can be used to help you configure the adapter in the Itential
62
62
 
63
63
  ```json
64
64
  "properties": {
65
- "host": "api.kentik.com",
65
+ "host": "localhost",
66
66
  "port": 443,
67
67
  "choosepath": "",
68
68
  "base_path": "",
@@ -77,7 +77,7 @@ Sample Properties can be used to help you configure the adapter in the Itential
77
77
  "auth_method": "static_token",
78
78
  "username": "username",
79
79
  "password": "password",
80
- "token": "tokenGoesHere",
80
+ "token": "token",
81
81
  "token_timeout": 600000,
82
82
  "token_cache": "local",
83
83
  "invalid_token_error": 401,
package/metadata.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "adapter-kentik",
3
3
  "webName": "Adapter for Integration to Kentik",
4
+ "supportLevel": "community",
4
5
  "vendor": "Kentik",
5
6
  "product": "Kentik",
7
+ "techAlliance": true,
6
8
  "osVersion": [],
7
9
  "apiVersions": [],
8
10
  "iapVersions": [
@@ -37,7 +39,7 @@
37
39
  "storeLink": "",
38
40
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-kentik",
39
41
  "repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-kentik",
40
- "docLink": "",
42
+ "docLink": "https://gitlab.com/itentialopensource/adapters/adapter-kentik/-/blob/master/README.md?ref_type=heads",
41
43
  "demoLinks": [
42
44
  {
43
45
  "title": "Itential + Kentik: Integrated Network Observability & Automation",
@@ -78,7 +80,5 @@
78
80
  "workflowProjects": [],
79
81
  "transformationProjects": [],
80
82
  "exampleProjects": []
81
- },
82
- "supportLevel": "community",
83
- "techAlliance": false
83
+ }
84
84
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-kentik",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "This adapter integrates with system described as: kentik apis",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
7
- "engineVersion": "1.67.20",
7
+ "engineVersion": "1.68.2",
8
8
  "adapterType": "http",
9
9
  "scripts": {
10
10
  "artifactize": "npm i && node utils/packModificationScript.js",
@@ -52,7 +52,7 @@
52
52
  "author": "Itential",
53
53
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-kentik#readme",
54
54
  "dependencies": {
55
- "@itentialopensource/adapter-utils": "^5.6.0",
55
+ "@itentialopensource/adapter-utils": "^5.9.4",
56
56
  "acorn": "^8.12.1",
57
57
  "ajv": "^8.17.1",
58
58
  "axios": "^1.7.4",
@@ -67,7 +67,7 @@
67
67
  "prompts": "^2.4.2",
68
68
  "readline-sync": "^1.4.10",
69
69
  "semver": "^7.6.3",
70
- "winston": "^3.13.1"
70
+ "winston": "^3.14.2"
71
71
  },
72
72
  "devDependencies": {
73
73
  "chai": "^4.3.7",
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.2.4",
2
+ "version": "0.2.7",
3
3
  "configLines": 11981,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 8801,
6
- "testLines": 9175,
7
- "testCases": 394,
8
- "totalCodeLines": 19759,
6
+ "testLines": 9159,
7
+ "testCases": 393,
8
+ "totalCodeLines": 19743,
9
9
  "wfTasks": 106
10
10
  }
@@ -2,7 +2,7 @@
2
2
  "id": "Adapter-kentik",
3
3
  "type": "Kentik",
4
4
  "properties": {
5
- "host": "api.kentik.com",
5
+ "host": "localhost",
6
6
  "port": 443,
7
7
  "choosepath": "",
8
8
  "base_path": "",
@@ -17,7 +17,7 @@
17
17
  "auth_method": "static_token",
18
18
  "username": "username",
19
19
  "password": "password",
20
- "token": "tokenGoesHere",
20
+ "token": "token",
21
21
  "token_timeout": 600000,
22
22
  "token_cache": "local",
23
23
  "invalid_token_error": 401,
@@ -143,7 +143,7 @@
143
143
  "ostypePrefix": "meraki-",
144
144
  "port": "{port}",
145
145
  "ipaddress": "{ip_addr}",
146
- "serial" : "{serial}"
146
+ "serial": "{serial}"
147
147
  }
148
148
  }
149
149
  ],
@@ -169,7 +169,7 @@
169
169
  "ostypePrefix": "meraki-",
170
170
  "port": "{port}",
171
171
  "ipaddress": "{ip_addr}",
172
- "serial" : "{serial}",
172
+ "serial": "{serial}",
173
173
  "id": "{myid}"
174
174
  }
175
175
  }
@@ -253,7 +253,7 @@
253
253
  "ostypePrefix": "meraki-",
254
254
  "port": "{port}",
255
255
  "ipaddress": "{ip_addr}",
256
- "serial" : "{serial}",
256
+ "serial": "{serial}",
257
257
  "id": "{myid}"
258
258
  }
259
259
  }
@@ -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,
@@ -36,13 +36,17 @@ const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
36
36
  // these variables can be changed to run in integrated mode so easier to set them here
37
37
  // always check these in with bogus data!!!
38
38
  samProps.stub = true;
39
- samProps.host = 'replace.hostorip.here';
40
- samProps.authentication.username = 'username';
41
- samProps.authentication.password = 'password';
42
- samProps.protocol = 'http';
43
- samProps.port = 80;
44
- samProps.ssl.enabled = false;
45
- samProps.ssl.accept_invalid_cert = false;
39
+
40
+ // uncomment if connecting
41
+ // samProps.host = 'replace.hostorip.here';
42
+ // samProps.authentication.username = 'username';
43
+ // samProps.authentication.password = 'password';
44
+ // samProps.authentication.token = 'password';
45
+ // samProps.protocol = 'http';
46
+ // samProps.port = 80;
47
+ // samProps.ssl.enabled = false;
48
+ // samProps.ssl.accept_invalid_cert = false;
49
+
46
50
  if (samProps.request.attempt_timeout < 30000) {
47
51
  samProps.request.attempt_timeout = 30000;
48
52
  }
@@ -36,13 +36,17 @@ const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
36
36
  // these variables can be changed to run in integrated mode so easier to set them here
37
37
  // always check these in with bogus data!!!
38
38
  samProps.stub = true;
39
- samProps.host = 'replace.hostorip.here';
40
- samProps.authentication.username = 'username';
41
- samProps.authentication.password = 'password';
42
- samProps.protocol = 'http';
43
- samProps.port = 80;
44
- samProps.ssl.enabled = false;
45
- samProps.ssl.accept_invalid_cert = false;
39
+
40
+ // uncomment if connecting
41
+ // samProps.host = 'replace.hostorip.here';
42
+ // samProps.authentication.username = 'username';
43
+ // samProps.authentication.password = 'password';
44
+ // samProps.authentication.token = 'password';
45
+ // samProps.protocol = 'http';
46
+ // samProps.port = 80;
47
+ // samProps.ssl.enabled = false;
48
+ // samProps.ssl.accept_invalid_cert = false;
49
+
46
50
  samProps.request.attempt_timeout = 1200000;
47
51
  const attemptTimeout = samProps.request.attempt_timeout;
48
52
  const { stub } = samProps;
@@ -323,7 +327,7 @@ describe('[unit] Kentik Adapter Test', () => {
323
327
  assert.equal('^0.4.4', packageDotJson.dependencies.ping);
324
328
  assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
325
329
  assert.equal('^7.6.3', packageDotJson.dependencies.semver);
326
- assert.equal('^3.13.1', packageDotJson.dependencies.winston);
330
+ assert.equal('^3.14.2', packageDotJson.dependencies.winston);
327
331
  done();
328
332
  } catch (error) {
329
333
  log.error(`Test Failure: ${error}`);
@@ -1,9 +0,0 @@
1
- {
2
- "ComplianceEntries": [
3
- {
4
- "name": "Compliance Summary",
5
- "numInvalidProjects": 0,
6
- "numValidProjects": 0
7
- }
8
- ]
9
- }
@@ -1,5 +0,0 @@
1
- ---------------------------------------------------------------------------------------------
2
- **** Project Compliance Summary ****
3
- 0 project(s) are not valid
4
- 0 project(s) are valid
5
- ---------------------------------------------------------------------------------------------