@itentialopensource/adapter-paragon_active_assurance 0.3.1 → 0.3.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.
- package/CHANGELOG.md +16 -0
- package/TAB2.md +2 -2
- package/metadata.json +7 -4
- package/package.json +6 -6
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/sampleProperties.json +5 -5
- package/test/integration/adapterTestConnectivity.js +0 -24
- package/test/integration/adapterTestIntegration.js +11 -7
- package/test/unit/adapterTestUnit.js +15 -11
- package/compliance-report.json +0 -9
- package/compliance-report.txt +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.3.3 [09-14-2024]
|
|
3
|
+
|
|
4
|
+
* add workshop and fix vulnerabilities
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/adapter-paragon_active_assurance!10
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.3.2 [08-14-2024]
|
|
11
|
+
|
|
12
|
+
* Changes made at 2024.08.14_17:42PM
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/adapter-paragon_active_assurance!9
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.3.1 [08-07-2024]
|
|
3
19
|
|
|
4
20
|
* Changes made at 2024.08.06_18:39PM
|
package/TAB2.md
CHANGED
|
@@ -99,8 +99,8 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
|
99
99
|
"protocol": "https",
|
|
100
100
|
"authentication": {
|
|
101
101
|
"auth_method": "multi_step_authentication",
|
|
102
|
-
"username": "
|
|
103
|
-
"password": "
|
|
102
|
+
"username": "username",
|
|
103
|
+
"password": "password",
|
|
104
104
|
"token": "token",
|
|
105
105
|
"token_timeout": 600000,
|
|
106
106
|
"token_cache": "local",
|
package/metadata.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapter-paragon_active_assurance",
|
|
3
3
|
"webName": "Adapter for Integration to Juniper Paragon Active Assurance",
|
|
4
|
+
"supportLevel": "community",
|
|
4
5
|
"vendor": "Juniper Networks",
|
|
5
6
|
"product": "Paragon Active Assurance (formerly Netrounds)",
|
|
7
|
+
"techAlliance": true,
|
|
6
8
|
"osVersion": [],
|
|
7
9
|
"apiVersions": [],
|
|
8
10
|
"iapVersions": [
|
|
@@ -38,7 +40,7 @@
|
|
|
38
40
|
"storeLink": "",
|
|
39
41
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-paragon_active_assurance",
|
|
40
42
|
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-paragon_active_assurance",
|
|
41
|
-
"docLink": "https://
|
|
43
|
+
"docLink": "https://gitlab.com/itentialopensource/adapters/adapter-paragon_active_assurance/-/blob/master/README.md?ref_type=heads",
|
|
42
44
|
"demoLinks": [],
|
|
43
45
|
"trainingLinks": [
|
|
44
46
|
{
|
|
@@ -58,7 +60,9 @@
|
|
|
58
60
|
"link": "https://app.netrounds.com/rest/",
|
|
59
61
|
"public": true
|
|
60
62
|
}
|
|
61
|
-
]
|
|
63
|
+
],
|
|
64
|
+
"workshopLinks": [],
|
|
65
|
+
"workshopHomePage": "https://www.itential.com/get-started/"
|
|
62
66
|
},
|
|
63
67
|
"assets": [],
|
|
64
68
|
"relatedItems": {
|
|
@@ -68,6 +72,5 @@
|
|
|
68
72
|
"workflowProjects": [],
|
|
69
73
|
"transformationProjects": [],
|
|
70
74
|
"exampleProjects": []
|
|
71
|
-
}
|
|
72
|
-
"supportLevel": "community"
|
|
75
|
+
}
|
|
73
76
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-paragon_active_assurance",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "This adapter integrates with system described as: Juniper Paragon Active Assurance.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "Juniper Paragon Active Assurance",
|
|
7
7
|
"wizardVersion": "2.44.7",
|
|
8
|
-
"engineVersion": "1.
|
|
8
|
+
"engineVersion": "1.68.2",
|
|
9
9
|
"adapterType": "http",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
@@ -54,22 +54,22 @@
|
|
|
54
54
|
"author": "Itential",
|
|
55
55
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-paragon_active_assurance#readme",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
57
|
+
"@itentialopensource/adapter-utils": "^5.8.0",
|
|
58
58
|
"acorn": "^8.12.1",
|
|
59
59
|
"ajv": "^8.17.1",
|
|
60
|
-
"axios": "^1.7.
|
|
60
|
+
"axios": "^1.7.4",
|
|
61
61
|
"commander": "^11.0.0",
|
|
62
62
|
"dns-lookup-promise": "^1.0.4",
|
|
63
63
|
"fs-extra": "^11.2.0",
|
|
64
64
|
"json-query": "^2.2.2",
|
|
65
|
-
"mocha": "^10.7.
|
|
65
|
+
"mocha": "^10.7.3",
|
|
66
66
|
"mocha-param": "^2.0.1",
|
|
67
67
|
"mongodb": "^4.16.0",
|
|
68
68
|
"ping": "^0.4.4",
|
|
69
69
|
"prompts": "^2.4.2",
|
|
70
70
|
"readline-sync": "^1.4.10",
|
|
71
71
|
"semver": "^7.6.3",
|
|
72
|
-
"winston": "^3.
|
|
72
|
+
"winston": "^3.14.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"chai": "^4.3.7",
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.2
|
|
2
|
+
"version": "0.3.2",
|
|
3
3
|
"configLines": 12512,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 13458,
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
6
|
+
"testLines": 11180,
|
|
7
|
+
"testCases": 570,
|
|
8
|
+
"totalCodeLines": 26421,
|
|
9
9
|
"wfTasks": 141
|
|
10
10
|
}
|
package/sampleProperties.json
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"protocol": "https",
|
|
16
16
|
"authentication": {
|
|
17
17
|
"auth_method": "multi_step_authentication",
|
|
18
|
-
"username": "
|
|
19
|
-
"password": "
|
|
18
|
+
"username": "username",
|
|
19
|
+
"password": "password",
|
|
20
20
|
"token": "token",
|
|
21
21
|
"token_timeout": 600000,
|
|
22
22
|
"token_cache": "local",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"ostypePrefix": "meraki-",
|
|
162
162
|
"port": "{port}",
|
|
163
163
|
"ipaddress": "{ip_addr}",
|
|
164
|
-
"serial"
|
|
164
|
+
"serial": "{serial}"
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
],
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"ostypePrefix": "meraki-",
|
|
188
188
|
"port": "{port}",
|
|
189
189
|
"ipaddress": "{ip_addr}",
|
|
190
|
-
"serial"
|
|
190
|
+
"serial": "{serial}",
|
|
191
191
|
"id": "{myid}"
|
|
192
192
|
}
|
|
193
193
|
}
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
"ostypePrefix": "meraki-",
|
|
272
272
|
"port": "{port}",
|
|
273
273
|
"ipaddress": "{ip_addr}",
|
|
274
|
-
"serial"
|
|
274
|
+
"serial": "{serial}",
|
|
275
275
|
"id": "{myid}"
|
|
276
276
|
}
|
|
277
277
|
}
|
|
@@ -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
|
-
|
|
40
|
-
|
|
41
|
-
samProps.
|
|
42
|
-
samProps.
|
|
43
|
-
samProps.
|
|
44
|
-
samProps.
|
|
45
|
-
samProps.
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
samProps.
|
|
42
|
-
samProps.
|
|
43
|
-
samProps.
|
|
44
|
-
samProps.
|
|
45
|
-
samProps.
|
|
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;
|
|
@@ -315,15 +319,15 @@ describe('[unit] Paragon_active_assurance Adapter Test', () => {
|
|
|
315
319
|
assert.notEqual(null, packageDotJson.dependencies);
|
|
316
320
|
assert.notEqual('', packageDotJson.dependencies);
|
|
317
321
|
assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
|
|
318
|
-
assert.equal('^1.7.
|
|
322
|
+
assert.equal('^1.7.4', packageDotJson.dependencies.axios);
|
|
319
323
|
assert.equal('^11.0.0', packageDotJson.dependencies.commander);
|
|
320
324
|
assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
|
|
321
|
-
assert.equal('^10.7.
|
|
325
|
+
assert.equal('^10.7.3', packageDotJson.dependencies.mocha);
|
|
322
326
|
assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
|
|
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.
|
|
330
|
+
assert.equal('^3.14.2', packageDotJson.dependencies.winston);
|
|
327
331
|
done();
|
|
328
332
|
} catch (error) {
|
|
329
333
|
log.error(`Test Failure: ${error}`);
|
|
@@ -561,7 +565,7 @@ describe('[unit] Paragon_active_assurance Adapter Test', () => {
|
|
|
561
565
|
log.error(`Adapter Exception: ${error}`);
|
|
562
566
|
done(error);
|
|
563
567
|
}
|
|
564
|
-
});
|
|
568
|
+
}).timeout(attemptTimeout);
|
|
565
569
|
});
|
|
566
570
|
|
|
567
571
|
describe('propertiesSchema.json', () => {
|
package/compliance-report.json
DELETED
package/compliance-report.txt
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
---------------------------------------------------------------------------------------------
|
|
2
|
-
**** Project Compliance Summary ****
|
|
3
|
-
0 project(s) are not valid
|
|
4
|
-
0 project(s) are valid
|
|
5
|
-
---------------------------------------------------------------------------------------------
|