@itentialopensource/adapter-centreon 0.3.2 → 0.3.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/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 +5 -5
- package/test/unit/adapterTestUnit.js +1 -1
- 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.4 [10-14-2024]
|
|
3
|
+
|
|
4
|
+
* Changes made at 2024.10.14_19:29PM
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/adapter-centreon!11
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.3.3 [08-24-2024]
|
|
11
|
+
|
|
12
|
+
* update dependencies and metadata
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/adapter-centreon!9
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.3.2 [08-14-2024]
|
|
3
19
|
|
|
4
20
|
* Changes made at 2024.08.14_17:29PM
|
package/metadata.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapter-centreon",
|
|
3
3
|
"webName": "Adapter for Integration to Centreon",
|
|
4
|
+
"supportLevel": "community",
|
|
4
5
|
"vendor": "Centreon",
|
|
5
6
|
"product": "Centreon",
|
|
7
|
+
"techAlliance": false,
|
|
6
8
|
"osVersion": [],
|
|
7
9
|
"apiVersions": [],
|
|
8
10
|
"iapVersions": [
|
|
@@ -37,7 +39,7 @@
|
|
|
37
39
|
"storeLink": "",
|
|
38
40
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-centreon",
|
|
39
41
|
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-centreon",
|
|
40
|
-
"docLink": "",
|
|
42
|
+
"docLink": "https://gitlab.com/itentialopensource/adapters/adapter-centreon/-/blob/master/README.md?ref_type=heads",
|
|
41
43
|
"demoLinks": [],
|
|
42
44
|
"trainingLinks": [
|
|
43
45
|
{
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
49
51
|
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
50
52
|
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
51
|
-
"webLink": "",
|
|
53
|
+
"webLink": "https://www.itential.com/adapters/centreon-system/",
|
|
52
54
|
"vendorLink": "https://www.centreon.com/",
|
|
53
55
|
"productLink": "https://www.centreon.com/platform-overview/",
|
|
54
56
|
"apiLinks": [
|
|
@@ -69,7 +71,5 @@
|
|
|
69
71
|
"workflowProjects": [],
|
|
70
72
|
"transformationProjects": [],
|
|
71
73
|
"exampleProjects": []
|
|
72
|
-
}
|
|
73
|
-
"supportLevel": "community",
|
|
74
|
-
"techAlliance": false
|
|
74
|
+
}
|
|
75
75
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-centreon",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "This adapter integrates with system described as: Centreon.",
|
|
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",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"author": "Itential",
|
|
54
54
|
"homepage": "https://gitlab.com/itentialopensource/adapters/service-assurance/adapter-centreon#readme",
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
56
|
+
"@itentialopensource/adapter-utils": "^5.9.4",
|
|
57
57
|
"acorn": "^8.12.1",
|
|
58
58
|
"ajv": "^8.17.1",
|
|
59
59
|
"axios": "^1.7.4",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"prompts": "^2.4.2",
|
|
69
69
|
"readline-sync": "^1.4.10",
|
|
70
70
|
"semver": "^7.6.3",
|
|
71
|
-
"winston": "^3.
|
|
71
|
+
"winston": "^3.14.2"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"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": 11334,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 14481,
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
6
|
+
"testLines": 11664,
|
|
7
|
+
"testCases": 593,
|
|
8
|
+
"totalCodeLines": 27928,
|
|
9
9
|
"wfTasks": 173
|
|
10
10
|
}
|
package/sampleProperties.json
CHANGED
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"ostypePrefix": "meraki-",
|
|
136
136
|
"port": "{port}",
|
|
137
137
|
"ipaddress": "{ip_addr}",
|
|
138
|
-
"serial"
|
|
138
|
+
"serial": "{serial}"
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
],
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"ostypePrefix": "meraki-",
|
|
162
162
|
"port": "{port}",
|
|
163
163
|
"ipaddress": "{ip_addr}",
|
|
164
|
-
"serial"
|
|
164
|
+
"serial": "{serial}",
|
|
165
165
|
"id": "{myid}"
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
"ostypePrefix": "meraki-",
|
|
246
246
|
"port": "{port}",
|
|
247
247
|
"ipaddress": "{ip_addr}",
|
|
248
|
-
"serial"
|
|
248
|
+
"serial": "{serial}",
|
|
249
249
|
"id": "{myid}"
|
|
250
250
|
}
|
|
251
251
|
}
|
|
@@ -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,
|
|
@@ -2020,7 +2020,7 @@ describe('[integration] Centreon Adapter Test', () => {
|
|
|
2020
2020
|
const authenticationProviderConfigurationName = 'fakedata';
|
|
2021
2021
|
const authenticationAuthenticationtoproviderBodyParam = {
|
|
2022
2022
|
login: 'admin',
|
|
2023
|
-
password:
|
|
2023
|
+
password: samProps.authentication.password
|
|
2024
2024
|
};
|
|
2025
2025
|
describe('#authenticationtoprovider - errors', () => {
|
|
2026
2026
|
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
@@ -2102,8 +2102,8 @@ describe('[integration] Centreon Adapter Test', () => {
|
|
|
2102
2102
|
|
|
2103
2103
|
const authenticationAlias = 'fakedata';
|
|
2104
2104
|
const authenticationUpdateuserpasswordBodyParam = {
|
|
2105
|
-
old_password:
|
|
2106
|
-
new_password:
|
|
2105
|
+
old_password: samProps.authentication.password,
|
|
2106
|
+
new_password: samProps.authentication.password
|
|
2107
2107
|
};
|
|
2108
2108
|
describe('#updateuserpassword - errors', () => {
|
|
2109
2109
|
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
@@ -2742,7 +2742,7 @@ describe('[integration] Centreon Adapter Test', () => {
|
|
|
2742
2742
|
url: 'proxy.internal.company.org',
|
|
2743
2743
|
port: 3128,
|
|
2744
2744
|
user: 'proxy-user',
|
|
2745
|
-
password:
|
|
2745
|
+
password: samProps.authentication.password
|
|
2746
2746
|
};
|
|
2747
2747
|
describe('#updatethedefaultconfigurationoftheCentreonproxy - errors', () => {
|
|
2748
2748
|
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
@@ -4090,7 +4090,7 @@ describe('[integration] Centreon Adapter Test', () => {
|
|
|
4090
4090
|
host: 'example.proxy.com',
|
|
4091
4091
|
port: 80,
|
|
4092
4092
|
user: 'admin',
|
|
4093
|
-
password:
|
|
4093
|
+
password: samProps.authentication.password
|
|
4094
4094
|
}
|
|
4095
4095
|
};
|
|
4096
4096
|
describe('#updateaplatforminformation - errors', () => {
|
|
@@ -323,7 +323,7 @@ describe('[unit] Centreon 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}`);
|
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
|
-
---------------------------------------------------------------------------------------------
|