@itentialopensource/adapter-apic 0.10.3 → 0.10.4
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 +8 -0
- package/TAB2.md +2 -2
- package/metadata.json +4 -6
- package/package.json +4 -4
- 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/unit/adapterTestUnit.js +2 -2
package/CHANGELOG.md
CHANGED
package/TAB2.md
CHANGED
|
@@ -52,7 +52,7 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
|
52
52
|
|
|
53
53
|
```json
|
|
54
54
|
"properties": {
|
|
55
|
-
"host": "
|
|
55
|
+
"host": "localhost",
|
|
56
56
|
"port": 443,
|
|
57
57
|
"choosepath": "",
|
|
58
58
|
"base_path": "/",
|
|
@@ -67,7 +67,7 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
|
67
67
|
"auth_method": "request_token",
|
|
68
68
|
"username": "username",
|
|
69
69
|
"password": "password",
|
|
70
|
-
"token": "",
|
|
70
|
+
"token": "token",
|
|
71
71
|
"token_timeout": 180000,
|
|
72
72
|
"token_cache": "local",
|
|
73
73
|
"invalid_token_error": 401,
|
package/metadata.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapter-apic",
|
|
3
3
|
"webName": "Adapter for Integration to Cisco APIC",
|
|
4
|
+
"supportLevel": "community",
|
|
4
5
|
"vendor": "Cisco Systems",
|
|
5
6
|
"product": "APIC",
|
|
7
|
+
"techAlliance": false,
|
|
6
8
|
"osVersion": [],
|
|
7
9
|
"apiVersions": [],
|
|
8
10
|
"iapVersions": [
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
"storeLink": "",
|
|
47
49
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-apic",
|
|
48
50
|
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-apic",
|
|
49
|
-
"docLink": "https://
|
|
51
|
+
"docLink": "https://gitlab.com/itentialopensource/adapters/adapter-apic/-/blob/master/README.md?ref_type=heads",
|
|
50
52
|
"demoLinks": [],
|
|
51
53
|
"trainingLinks": [
|
|
52
54
|
{
|
|
@@ -78,9 +80,5 @@
|
|
|
78
80
|
"workflowProjects": [],
|
|
79
81
|
"transformationProjects": [],
|
|
80
82
|
"exampleProjects": []
|
|
81
|
-
}
|
|
82
|
-
"supportLevel": [
|
|
83
|
-
"community"
|
|
84
|
-
],
|
|
85
|
-
"techAlliance": false
|
|
83
|
+
}
|
|
86
84
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-apic",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": " Cisco Application Policy Infrastructure Controller (Cisco APIC) is the unifying point of automation and management for the Application Centric Infrastructure (ACI) fabric.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "Cisco APIC",
|
|
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,7 +54,7 @@
|
|
|
54
54
|
"author": "Itential",
|
|
55
55
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-apic#readme",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
57
|
+
"@itentialopensource/adapter-utils": "^5.7.0",
|
|
58
58
|
"acorn": "^8.12.1",
|
|
59
59
|
"ajv": "^8.17.1",
|
|
60
60
|
"axios": "^1.7.4",
|
|
@@ -69,7 +69,7 @@
|
|
|
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
|
+
"version": "0.10.3",
|
|
3
3
|
"configLines": 3120,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 2552,
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
6
|
+
"testLines": 3591,
|
|
7
|
+
"testCases": 167,
|
|
8
|
+
"totalCodeLines": 7926,
|
|
9
9
|
"wfTasks": 31
|
|
10
10
|
}
|
package/sampleProperties.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "Test-apic",
|
|
3
3
|
"type": "Apic",
|
|
4
4
|
"properties": {
|
|
5
|
-
"host": "
|
|
5
|
+
"host": "localhost",
|
|
6
6
|
"port": 443,
|
|
7
7
|
"choosepath": "",
|
|
8
8
|
"base_path": "/",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"auth_method": "request_token",
|
|
18
18
|
"username": "username",
|
|
19
19
|
"password": "password",
|
|
20
|
-
"token": "",
|
|
20
|
+
"token": "token",
|
|
21
21
|
"token_timeout": 180000,
|
|
22
22
|
"token_cache": "local",
|
|
23
23
|
"invalid_token_error": 401,
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"ostypePrefix": "meraki-",
|
|
134
134
|
"port": "{port}",
|
|
135
135
|
"ipaddress": "{ip_addr}",
|
|
136
|
-
"serial"
|
|
136
|
+
"serial": "{serial}"
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
],
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"ostypePrefix": "meraki-",
|
|
160
160
|
"port": "{port}",
|
|
161
161
|
"ipaddress": "{ip_addr}",
|
|
162
|
-
"serial"
|
|
162
|
+
"serial": "{serial}",
|
|
163
163
|
"id": "{myid}"
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"ostypePrefix": "meraki-",
|
|
244
244
|
"port": "{port}",
|
|
245
245
|
"ipaddress": "{ip_addr}",
|
|
246
|
-
"serial"
|
|
246
|
+
"serial": "{serial}",
|
|
247
247
|
"id": "{myid}"
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -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,
|
|
@@ -323,7 +323,7 @@ describe('[unit] Apic Adapter Test', () => {
|
|
|
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.
|
|
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] Apic 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', () => {
|