@itentialopensource/adapter-tufin_secureapp 0.5.2 → 0.5.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 +16 -0
- package/TAB2.md +1 -1
- package/metadata.json +4 -4
- package/package.json +4 -4
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/sampleProperties.json +4 -4
- package/test/integration/adapterTestConnectivity.js +0 -24
- package/test/integration/adapterTestIntegration.js +11 -7
- package/test/unit/adapterTestUnit.js +13 -9
- package/compliance-report.json +0 -9
- package/compliance-report.txt +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.5.4 [10-15-2024]
|
|
3
|
+
|
|
4
|
+
* Changes made at 2024.10.14_21:27PM
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/adapter-tufin_secureapp!15
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.5.3 [09-19-2024]
|
|
11
|
+
|
|
12
|
+
* add workshop and fix vulnerabilities
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/adapter-tufin_secureapp!13
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.5.2 [08-14-2024]
|
|
3
19
|
|
|
4
20
|
* Changes made at 2024.08.14_19:45PM
|
package/TAB2.md
CHANGED
|
@@ -67,7 +67,7 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
|
67
67
|
"auth_method": "basic user_password",
|
|
68
68
|
"username": "username",
|
|
69
69
|
"password": "password",
|
|
70
|
-
"token": "",
|
|
70
|
+
"token": "token",
|
|
71
71
|
"token_timeout": 1800000,
|
|
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-tufin_secureapp",
|
|
3
3
|
"webName": "Adapter for Integration to Tufin SecureApp",
|
|
4
|
+
"supportLevel": "community",
|
|
4
5
|
"vendor": "Tufin",
|
|
5
6
|
"product": "SecureApp",
|
|
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-tufin_secureapp",
|
|
48
50
|
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-tufin_secureapp",
|
|
49
|
-
"docLink": "https://
|
|
51
|
+
"docLink": "https://gitlab.com/itentialopensource/adapters/adapter-tufin_secureapp/-/blob/master/README.md?ref_type=heads",
|
|
50
52
|
"demoLinks": [],
|
|
51
53
|
"trainingLinks": [
|
|
52
54
|
{
|
|
@@ -83,7 +85,5 @@
|
|
|
83
85
|
"workflowProjects": [],
|
|
84
86
|
"transformationProjects": [],
|
|
85
87
|
"exampleProjects": []
|
|
86
|
-
}
|
|
87
|
-
"supportLevel": "community",
|
|
88
|
-
"techAlliance": false
|
|
88
|
+
}
|
|
89
89
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-tufin_secureapp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "This adapter integrates with system: sample.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"wizardVersion": "2.44.7",
|
|
7
|
-
"engineVersion": "1.
|
|
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-tufin_secureapp#readme",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
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.
|
|
70
|
+
"winston": "^3.14.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"chai": "^4.3.7",
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.5.2",
|
|
3
3
|
"configLines": 9324,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 15741,
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
6
|
+
"testLines": 13721,
|
|
7
|
+
"testCases": 731,
|
|
8
|
+
"totalCodeLines": 31245,
|
|
9
9
|
"wfTasks": 176
|
|
10
10
|
}
|
package/sampleProperties.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"auth_method": "basic user_password",
|
|
18
18
|
"username": "username",
|
|
19
19
|
"password": "password",
|
|
20
|
-
"token": "",
|
|
20
|
+
"token": "token",
|
|
21
21
|
"token_timeout": 1800000,
|
|
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,
|
|
@@ -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;
|
|
@@ -323,7 +327,7 @@ describe('[unit] Tufin_secureapp 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.
|
|
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] Tufin_secureapp 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
|
-
---------------------------------------------------------------------------------------------
|