@itentialopensource/adapter-netbrain 1.4.0 → 1.4.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-netbrain",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "This adapter integrates with system described as: netbrainRestfulApi.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"wizardVersion": "2.44.7",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"author": "Itential",
|
|
51
51
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-netbrain#readme",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@itentialopensource/adapter-utils": "5.10.
|
|
53
|
+
"@itentialopensource/adapter-utils": "5.10.21",
|
|
54
54
|
"acorn": "8.14.1",
|
|
55
55
|
"ajv": "8.17.1",
|
|
56
56
|
"axios": "1.9.0",
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.4.0",
|
|
3
3
|
"configLines": 11332,
|
|
4
4
|
"scriptLines": 2498,
|
|
5
5
|
"codeLines": 14363,
|
|
6
|
-
"testLines":
|
|
6
|
+
"testLines": 10584,
|
|
7
7
|
"testCases": 515,
|
|
8
|
-
"totalCodeLines":
|
|
8
|
+
"totalCodeLines": 27445,
|
|
9
9
|
"wfTasks": 147
|
|
10
10
|
}
|
|
@@ -1233,7 +1233,7 @@ describe('[integration] Netbrain Adapter Test', () => {
|
|
|
1233
1233
|
const manageAttributesPostV1CMDBDevicesAttributesBodyParam = {
|
|
1234
1234
|
attributeName: 'newAttribute',
|
|
1235
1235
|
attributeDisplayName: 'New Attribute',
|
|
1236
|
-
deviceTypeNames: '
|
|
1236
|
+
deviceTypeNames: 'string',
|
|
1237
1237
|
dataType: 'string',
|
|
1238
1238
|
isFullSearch: true
|
|
1239
1239
|
};
|
|
@@ -1266,7 +1266,7 @@ describe('[integration] Netbrain Adapter Test', () => {
|
|
|
1266
1266
|
InterfaceType: 'ipIntfs ',
|
|
1267
1267
|
attributeName: 'newAttribute',
|
|
1268
1268
|
attributeDisplayName: 'New Attribute',
|
|
1269
|
-
deviceTypeNames: '
|
|
1269
|
+
deviceTypeNames: 'string',
|
|
1270
1270
|
dataType: 'string',
|
|
1271
1271
|
isFullSearch: true
|
|
1272
1272
|
};
|
|
@@ -1298,7 +1298,7 @@ describe('[integration] Netbrain Adapter Test', () => {
|
|
|
1298
1298
|
const manageAttributesPostV1CMDBModulesAttributesBodyParam = {
|
|
1299
1299
|
attributeName: 'newAttribute',
|
|
1300
1300
|
attributeDisplayName: 'New Attribute',
|
|
1301
|
-
deviceTypeNames: '
|
|
1301
|
+
deviceTypeNames: 'string',
|
|
1302
1302
|
dataType: 'string',
|
|
1303
1303
|
isFullSearch: true
|
|
1304
1304
|
};
|
|
@@ -956,14 +956,16 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
956
956
|
});
|
|
957
957
|
it('should get information for all of the requests currently in the queue', (done) => {
|
|
958
958
|
try {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
959
|
+
a.iapGetAdapterQueue((data, error) => {
|
|
960
|
+
try {
|
|
961
|
+
assert.notEqual(null, data);
|
|
962
|
+
assert.equal(0, data.length);
|
|
963
|
+
done();
|
|
964
|
+
} catch (err) {
|
|
965
|
+
log.error(`Test Failure: ${err}`);
|
|
966
|
+
done(err);
|
|
967
|
+
}
|
|
968
|
+
});
|
|
967
969
|
} catch (error) {
|
|
968
970
|
log.error(`Adapter Exception: ${error}`);
|
|
969
971
|
done(error);
|