@itentialopensource/adapter-kentik_v5 0.3.3 → 0.3.5
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 +27 -20
- package/BROKER.md +31 -19
- package/CALLS.md +59 -23
- package/CHANGELOG.md +16 -0
- package/PROPERTIES.md +5 -0
- package/README.md +60 -63
- package/SYSTEMINFO.md +18 -6
- package/TAB1.md +8 -0
- package/TAB2.md +86 -1510
- package/compliance-report.json +9 -0
- package/compliance-report.txt +5 -0
- package/metadata.json +62 -15
- package/package.json +13 -15
- package/propertiesSchema.json +5 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/report/updateReport1719238796757.json +120 -0
- package/sampleProperties.json +37 -25
- package/test/integration/adapterTestIntegration.js +1 -0
- package/test/unit/adapterTestUnit.js +7 -9
|
@@ -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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "adapter-kentik_v5",
|
|
3
3
|
"webName": "Adapter for Integration to Kentik API v5",
|
|
4
4
|
"vendor": "Kentik",
|
|
5
|
-
"product": "
|
|
5
|
+
"product": "Kentik",
|
|
6
6
|
"osVersion": [],
|
|
7
7
|
"apiVersions": [
|
|
8
8
|
"v5"
|
|
@@ -29,34 +29,81 @@
|
|
|
29
29
|
"isDeprecated": false
|
|
30
30
|
},
|
|
31
31
|
"brokerSince": "",
|
|
32
|
+
"authMethods": [
|
|
33
|
+
{
|
|
34
|
+
"type": "API Key",
|
|
35
|
+
"primary": true
|
|
36
|
+
}
|
|
37
|
+
],
|
|
32
38
|
"documentation": {
|
|
33
39
|
"storeLink": "",
|
|
34
40
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-kentik_v5",
|
|
35
|
-
"repoLink": "https://gitlab.com/itentialopensource/adapters/
|
|
41
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-kentik_v5",
|
|
36
42
|
"docLink": "",
|
|
37
|
-
"demoLinks": [
|
|
38
|
-
|
|
43
|
+
"demoLinks": [
|
|
44
|
+
{
|
|
45
|
+
"title": "Itential + Kentik: Integrated Network Observability & Automation",
|
|
46
|
+
"link": "https://www.itential.com/resource/demo/itential-kentik-integrated-network-observability-automation/"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"title": "Itential + Kentik: Integrating Observability with Automation for Closed-Loop Remediation of Infrastructure Events",
|
|
50
|
+
"link": "https://www.itential.com/blog/company/hybrid-cloud-automation/itential-kentik-integrating-observability-with-automation-for-closed-loop-remediation-of-infrastructure-events/"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"trainingLinks": [
|
|
54
|
+
{
|
|
55
|
+
"title": "Itential Academy",
|
|
56
|
+
"link": "https://www.itential.com/itential-academy/"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
39
59
|
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
40
60
|
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
41
61
|
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
42
62
|
"webLink": "https://www.itential.com/adapters/kentik-api-version-5/",
|
|
43
|
-
"vendorLink": "",
|
|
44
|
-
"productLink": "",
|
|
45
|
-
"apiLinks": [
|
|
63
|
+
"vendorLink": "https://www.kentik.com/",
|
|
64
|
+
"productLink": "https://www.kentik.com/",
|
|
65
|
+
"apiLinks": [
|
|
66
|
+
{
|
|
67
|
+
"title": "Kentik APIs",
|
|
68
|
+
"link": "https://kb.kentik.com/v0/Ab09.htm",
|
|
69
|
+
"public": true
|
|
70
|
+
}
|
|
71
|
+
]
|
|
46
72
|
},
|
|
47
73
|
"assets": [],
|
|
48
74
|
"relatedItems": {
|
|
49
75
|
"adapters": [],
|
|
50
76
|
"integrations": [],
|
|
51
77
|
"ecosystemApplications": [],
|
|
52
|
-
"workflowProjects": [
|
|
78
|
+
"workflowProjects": [
|
|
79
|
+
{
|
|
80
|
+
"name": "Kentik - REST",
|
|
81
|
+
"webName": "Kentik - Device Management",
|
|
82
|
+
"overview": "The integration of Itential and Kentik enables network teams to build automations that can immediately respond to events and alarms generated by the Kentik observability platform. In addition, Itential also offers a package of Pre-Built Automations to implement multiple use cases with the integration. The Kentik - REST Pre-Built provides automations that help Network Engineers automate common tasks performed in the Kentik platform. This Pre-Built contains multiple automations including:\n\n- Create a Device in Kentik - With this automation, users can create a device for a specific site and provide the device record as output.\n- Run Device Flow Test - With this automation, users can run a device flow test for a specific device, providing the results of the test as output.",
|
|
83
|
+
"isDependency": false,
|
|
84
|
+
"versions": [
|
|
85
|
+
"^1.0.9"
|
|
86
|
+
],
|
|
87
|
+
"repoLink": "https://gitlab.com/itentialopensource/pre-built-automations/kentik-rest",
|
|
88
|
+
"docLink": "",
|
|
89
|
+
"webLink": "https://www.itential.com/automations/kentik-device-management/"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
53
92
|
"transformationProjects": [],
|
|
54
|
-
"exampleProjects": [
|
|
93
|
+
"exampleProjects": [
|
|
94
|
+
{
|
|
95
|
+
"name": "Kentik - REST - Example",
|
|
96
|
+
"webName": "Kentik - Example Use Case Bundle",
|
|
97
|
+
"overview": "This contains several example use cases that are applicable when the Itential Automation Platform is integrated with the Kentik Platform. Because every environment is different, these use cases are fully functioning examples that can be modified to operate in your IT ecosystem. These workflows have been written with modularity in mind to make them easy to understand and simple to modify to suit your needs.",
|
|
98
|
+
"isDependency": false,
|
|
99
|
+
"versions": [
|
|
100
|
+
"1.1.10"
|
|
101
|
+
],
|
|
102
|
+
"repoLink": "https://gitlab.com/itentialopensource/pre-built-automations/kentik-rest-example",
|
|
103
|
+
"docLink": "",
|
|
104
|
+
"webLink": "https://www.itential.com/automations/kentik-example-use-case-bundle/"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
55
107
|
},
|
|
56
|
-
"
|
|
57
|
-
{
|
|
58
|
-
"type": "API Key",
|
|
59
|
-
"primary": true
|
|
60
|
-
}
|
|
61
|
-
]
|
|
108
|
+
"supportLevel": "community"
|
|
62
109
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-kentik_v5",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "This adapter integrates with system described as: kentikV5Api.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"wizardVersion": "2.44.7",
|
|
7
|
-
"engineVersion": "1.67.
|
|
7
|
+
"engineVersion": "1.67.20",
|
|
8
8
|
"adapterType": "http",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
|
16
16
|
"test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
|
|
17
17
|
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
|
18
|
-
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
|
19
18
|
"test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
|
|
20
19
|
"adapter:install": "npm i && node utils/tbScript.js install",
|
|
21
20
|
"adapter:checkMigrate": "node utils/checkMigrate.js",
|
|
@@ -43,33 +42,32 @@
|
|
|
43
42
|
],
|
|
44
43
|
"license": "Apache-2.0",
|
|
45
44
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
45
|
+
"node": ">= 14.0.0",
|
|
47
46
|
"npm": ">= 6.0.0"
|
|
48
47
|
},
|
|
49
48
|
"repository": {
|
|
50
49
|
"type": "git",
|
|
51
|
-
"url": "git@gitlab.com:itentialopensource/adapters/
|
|
50
|
+
"url": "git@gitlab.com:itentialopensource/adapters/adapter-kentik_v5.git"
|
|
52
51
|
},
|
|
53
52
|
"author": "Itential",
|
|
54
|
-
"homepage": "https://gitlab.com/itentialopensource/adapters/
|
|
53
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-kentik_v5#readme",
|
|
55
54
|
"dependencies": {
|
|
56
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
57
|
-
"acorn": "^8.
|
|
58
|
-
"ajv": "^8.
|
|
59
|
-
"axios": "^1.
|
|
55
|
+
"@itentialopensource/adapter-utils": "^5.6.0",
|
|
56
|
+
"acorn": "^8.12.1",
|
|
57
|
+
"ajv": "^8.17.1",
|
|
58
|
+
"axios": "^1.7.2",
|
|
60
59
|
"commander": "^11.0.0",
|
|
61
60
|
"dns-lookup-promise": "^1.0.4",
|
|
62
|
-
"fs-extra": "^11.
|
|
61
|
+
"fs-extra": "^11.2.0",
|
|
63
62
|
"json-query": "^2.2.2",
|
|
64
|
-
"mocha": "^10.
|
|
63
|
+
"mocha": "^10.7.0",
|
|
65
64
|
"mocha-param": "^2.0.1",
|
|
66
65
|
"mongodb": "^4.16.0",
|
|
67
|
-
"nyc": "^15.1.0",
|
|
68
66
|
"ping": "^0.4.4",
|
|
69
67
|
"prompts": "^2.4.2",
|
|
70
68
|
"readline-sync": "^1.4.10",
|
|
71
|
-
"semver": "^7.
|
|
72
|
-
"winston": "^3.
|
|
69
|
+
"semver": "^7.6.3",
|
|
70
|
+
"winston": "^3.13.1"
|
|
73
71
|
},
|
|
74
72
|
"devDependencies": {
|
|
75
73
|
"chai": "^4.3.7",
|
package/propertiesSchema.json
CHANGED
|
@@ -945,6 +945,11 @@
|
|
|
945
945
|
"devicebroker": {
|
|
946
946
|
"type": "object",
|
|
947
947
|
"properties": {
|
|
948
|
+
"enabled": {
|
|
949
|
+
"type": "boolean",
|
|
950
|
+
"description": "Whether or not the device broker calls have been mapped",
|
|
951
|
+
"default": false
|
|
952
|
+
},
|
|
948
953
|
"getDevice": {
|
|
949
954
|
"type": "array",
|
|
950
955
|
"description": "Broker call(s) to getDevice",
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
3
|
-
"configLines":
|
|
2
|
+
"version": "0.3.3",
|
|
3
|
+
"configLines": 8400,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 7198,
|
|
6
|
-
"testLines":
|
|
6
|
+
"testLines": 7377,
|
|
7
7
|
"testCases": 352,
|
|
8
|
-
"totalCodeLines":
|
|
8
|
+
"totalCodeLines": 16358,
|
|
9
9
|
"wfTasks": 85
|
|
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": 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": 3672
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"owner": "unitTestJS",
|
|
81
|
+
"description": "Number of unit tests",
|
|
82
|
+
"value": 213
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"owner": "integrationTestJS",
|
|
86
|
+
"description": "Number of lines of code in integration tests",
|
|
87
|
+
"value": 2453
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"owner": "integrationTestJS",
|
|
91
|
+
"description": "Number of integration tests",
|
|
92
|
+
"value": 69
|
|
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": 7578
|
|
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
|
@@ -124,30 +124,32 @@
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
"devicebroker": {
|
|
127
|
+
"enabled": false,
|
|
127
128
|
"getDevice": [
|
|
128
129
|
{
|
|
129
|
-
"path": "/
|
|
130
|
+
"path": "/not/mapped",
|
|
130
131
|
"method": "GET",
|
|
131
132
|
"query": {},
|
|
132
133
|
"body": {},
|
|
133
134
|
"headers": {},
|
|
134
135
|
"handleFailure": "ignore",
|
|
135
136
|
"requestFields": {
|
|
136
|
-
"
|
|
137
|
+
"insample": "{port}"
|
|
137
138
|
},
|
|
138
139
|
"responseDatakey": "",
|
|
139
140
|
"responseFields": {
|
|
140
|
-
"name": "
|
|
141
|
-
"ostype": "
|
|
142
|
-
"ostypePrefix": "
|
|
143
|
-
"
|
|
144
|
-
"
|
|
141
|
+
"name": "{this}{||}{that}",
|
|
142
|
+
"ostype": "{osfield}",
|
|
143
|
+
"ostypePrefix": "meraki-",
|
|
144
|
+
"port": "{port}",
|
|
145
|
+
"ipaddress": "{ip_addr}",
|
|
146
|
+
"serial" : "{serial}"
|
|
145
147
|
}
|
|
146
148
|
}
|
|
147
149
|
],
|
|
148
150
|
"getDevicesFiltered": [
|
|
149
151
|
{
|
|
150
|
-
"path": "/
|
|
152
|
+
"path": "/not/mapped",
|
|
151
153
|
"method": "GET",
|
|
152
154
|
"pagination": {
|
|
153
155
|
"offsetVar": "",
|
|
@@ -162,42 +164,44 @@
|
|
|
162
164
|
"requestFields": {},
|
|
163
165
|
"responseDatakey": "",
|
|
164
166
|
"responseFields": {
|
|
165
|
-
"name": "
|
|
166
|
-
"ostype": "
|
|
167
|
-
"ostypePrefix": "
|
|
168
|
-
"
|
|
169
|
-
"
|
|
167
|
+
"name": "{this}{||}{that}",
|
|
168
|
+
"ostype": "{osfield}",
|
|
169
|
+
"ostypePrefix": "meraki-",
|
|
170
|
+
"port": "{port}",
|
|
171
|
+
"ipaddress": "{ip_addr}",
|
|
172
|
+
"serial" : "{serial}",
|
|
173
|
+
"id": "{myid}"
|
|
170
174
|
}
|
|
171
175
|
}
|
|
172
176
|
],
|
|
173
177
|
"isAlive": [
|
|
174
178
|
{
|
|
175
|
-
"path": "/
|
|
179
|
+
"path": "/not/mapped/{devID}",
|
|
176
180
|
"method": "GET",
|
|
177
181
|
"query": {},
|
|
178
182
|
"body": {},
|
|
179
183
|
"headers": {},
|
|
180
184
|
"handleFailure": "ignore",
|
|
181
185
|
"requestFields": {
|
|
182
|
-
"
|
|
186
|
+
"devID": "{id}"
|
|
183
187
|
},
|
|
184
188
|
"responseDatakey": "",
|
|
185
189
|
"responseFields": {
|
|
186
|
-
"status": "
|
|
187
|
-
"statusValue": "
|
|
190
|
+
"status": "return2xx",
|
|
191
|
+
"statusValue": "AD.200"
|
|
188
192
|
}
|
|
189
193
|
}
|
|
190
194
|
],
|
|
191
195
|
"getConfig": [
|
|
192
196
|
{
|
|
193
|
-
"path": "/
|
|
197
|
+
"path": "/not/mapped/{devID}",
|
|
194
198
|
"method": "GET",
|
|
195
199
|
"query": {},
|
|
196
200
|
"body": {},
|
|
197
201
|
"headers": {},
|
|
198
202
|
"handleFailure": "ignore",
|
|
199
203
|
"requestFields": {
|
|
200
|
-
"
|
|
204
|
+
"devID": "{id}"
|
|
201
205
|
},
|
|
202
206
|
"responseDatakey": "",
|
|
203
207
|
"responseFields": {}
|
|
@@ -205,7 +209,7 @@
|
|
|
205
209
|
],
|
|
206
210
|
"getCount": [
|
|
207
211
|
{
|
|
208
|
-
"path": "/
|
|
212
|
+
"path": "/not/mapped",
|
|
209
213
|
"method": "GET",
|
|
210
214
|
"query": {},
|
|
211
215
|
"body": {},
|
|
@@ -221,15 +225,15 @@
|
|
|
221
225
|
"enabled": false,
|
|
222
226
|
"entities": [
|
|
223
227
|
{
|
|
224
|
-
"entityType": "",
|
|
225
|
-
"frequency":
|
|
228
|
+
"entityType": "device",
|
|
229
|
+
"frequency": 3600,
|
|
226
230
|
"flushOnFail": false,
|
|
227
|
-
"limit":
|
|
231
|
+
"limit": 10000,
|
|
228
232
|
"retryAttempts": 5,
|
|
229
233
|
"sort": true,
|
|
230
234
|
"populate": [
|
|
231
235
|
{
|
|
232
|
-
"path": "",
|
|
236
|
+
"path": "/not/mapped",
|
|
233
237
|
"method": "GET",
|
|
234
238
|
"pagination": {
|
|
235
239
|
"offsetVar": "",
|
|
@@ -243,7 +247,15 @@
|
|
|
243
247
|
"handleFailure": "ignore",
|
|
244
248
|
"requestFields": {},
|
|
245
249
|
"responseDatakey": "",
|
|
246
|
-
"responseFields": {
|
|
250
|
+
"responseFields": {
|
|
251
|
+
"name": "{this}{||}{that}",
|
|
252
|
+
"ostype": "{osfield}",
|
|
253
|
+
"ostypePrefix": "meraki-",
|
|
254
|
+
"port": "{port}",
|
|
255
|
+
"ipaddress": "{ip_addr}",
|
|
256
|
+
"serial" : "{serial}",
|
|
257
|
+
"id": "{myid}"
|
|
258
|
+
}
|
|
247
259
|
}
|
|
248
260
|
],
|
|
249
261
|
"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] Kentik_v5 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] Kentik_v5 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}`);
|
|
@@ -563,7 +561,7 @@ describe('[unit] Kentik_v5 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', () => {
|