@itentialopensource/adapter-winston_syslog 1.2.2 → 1.2.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 +8 -0
- package/TAB2.md +3 -3
- package/metadata.json +5 -5
- package/package.json +4 -4
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/sampleProperties.json +3 -3
- package/test/integration/adapterTestConnectivity.js +0 -24
- package/test/integration/adapterTestIntegration.js +11 -7
- package/test/unit/adapterTestUnit.js +12 -8
- package/compliance-report.json +0 -9
- package/compliance-report.txt +0 -5
package/CHANGELOG.md
CHANGED
package/TAB2.md
CHANGED
|
@@ -37,9 +37,9 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
|
37
37
|
"type": "BSD",
|
|
38
38
|
"authentication": {
|
|
39
39
|
"auth_method": "no_authentication",
|
|
40
|
-
"username": "",
|
|
41
|
-
"password": "",
|
|
42
|
-
"token": "",
|
|
40
|
+
"username": "username",
|
|
41
|
+
"password": "password",
|
|
42
|
+
"token": "token",
|
|
43
43
|
"token_timeout": 600000,
|
|
44
44
|
"token_cache": "local",
|
|
45
45
|
"invalid_token_error": 401,
|
package/metadata.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapter-winston_syslog",
|
|
3
3
|
"webName": "Adapter for Integration to Winston Syslog",
|
|
4
|
+
"supportLevel": "community",
|
|
4
5
|
"vendor": "Open source",
|
|
5
6
|
"product": "Winston",
|
|
7
|
+
"techAlliance": false,
|
|
6
8
|
"osVersion": [],
|
|
7
9
|
"apiVersions": [],
|
|
8
10
|
"iapVersions": [
|
|
@@ -39,7 +41,7 @@
|
|
|
39
41
|
"storeLink": "",
|
|
40
42
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-winston_syslog",
|
|
41
43
|
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-winston_syslog",
|
|
42
|
-
"docLink": "",
|
|
44
|
+
"docLink": "https://gitlab.com/itentialopensource/adapters/adapter-winston_syslog/-/blob/master/README.md?ref_type=heads",
|
|
43
45
|
"demoLinks": [],
|
|
44
46
|
"trainingLinks": [
|
|
45
47
|
{
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
51
53
|
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
52
54
|
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
53
|
-
"webLink": "",
|
|
55
|
+
"webLink": "https://www.itential.com/adapters/winston-syslog/",
|
|
54
56
|
"vendorLink": "https://www.npmjs.com/package/packages",
|
|
55
57
|
"productLink": "https://www.npmjs.com/package/winston",
|
|
56
58
|
"apiLinks": [
|
|
@@ -71,7 +73,5 @@
|
|
|
71
73
|
"workflowProjects": [],
|
|
72
74
|
"transformationProjects": [],
|
|
73
75
|
"exampleProjects": []
|
|
74
|
-
}
|
|
75
|
-
"supportLevel": "community",
|
|
76
|
-
"techAlliance": false
|
|
76
|
+
}
|
|
77
77
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-winston_syslog",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "This adapter integrates with winston_syslog and sends logs to any syslog server.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "winston_syslog",
|
|
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",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"author": "Itential",
|
|
56
56
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-winston_syslog#readme",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
58
|
+
"@itentialopensource/adapter-utils": "^5.8.0",
|
|
59
59
|
"acorn": "^8.12.1",
|
|
60
60
|
"ajv": "^8.17.1",
|
|
61
61
|
"axios": "^1.7.4",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"prompts": "^2.4.2",
|
|
72
72
|
"readline-sync": "^1.4.10",
|
|
73
73
|
"semver": "^7.6.3",
|
|
74
|
-
"winston": "^3.
|
|
74
|
+
"winston": "^3.14.2",
|
|
75
75
|
"winston-syslog": "^2.7.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.2.2",
|
|
3
3
|
"configLines": 2967,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 2270,
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
6
|
+
"testLines": 3297,
|
|
7
|
+
"testCases": 151,
|
|
8
|
+
"totalCodeLines": 7350,
|
|
9
9
|
"wfTasks": 26
|
|
10
10
|
}
|
package/sampleProperties.json
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"type": "BSD",
|
|
18
18
|
"authentication": {
|
|
19
19
|
"auth_method": "no_authentication",
|
|
20
|
-
"username": "",
|
|
21
|
-
"password": "",
|
|
22
|
-
"token": "",
|
|
20
|
+
"username": "username",
|
|
21
|
+
"password": "password",
|
|
22
|
+
"token": "token",
|
|
23
23
|
"token_timeout": 600000,
|
|
24
24
|
"token_cache": "local",
|
|
25
25
|
"invalid_token_error": 401,
|
|
@@ -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] WinstonSyslog 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}`);
|
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
|
-
---------------------------------------------------------------------------------------------
|