@itentialopensource/adapter-solarwinds 0.10.3 → 0.10.5

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/adapter.js CHANGED
@@ -44070,7 +44070,7 @@ class Solarwinds extends AdapterBaseCl {
44070
44070
  try {
44071
44071
  // Make the call -
44072
44072
  // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
44073
- return this.requestHandlerInst.identifyRequest('Verbs', 'postInvokeOrionAlertSuppressionSuppressAlerts', reqObj, true, (irReturnData, irReturnError) => {
44073
+ return this.requestHandlerInst.identifyRequest('Verbs', 'postInvokeOrionAlertSuppressionSuppressAlerts', reqObj, false, (irReturnData, irReturnError) => {
44074
44074
  // if we received an error or their is no response on the results
44075
44075
  // return an error
44076
44076
  if (irReturnError) {
@@ -44139,7 +44139,7 @@ class Solarwinds extends AdapterBaseCl {
44139
44139
  try {
44140
44140
  // Make the call -
44141
44141
  // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
44142
- return this.requestHandlerInst.identifyRequest('Verbs', 'postInvokeOrionAlertSuppressionResumeAlerts', reqObj, true, (irReturnData, irReturnError) => {
44142
+ return this.requestHandlerInst.identifyRequest('Verbs', 'postInvokeOrionAlertSuppressionResumeAlerts', reqObj, false, (irReturnData, irReturnError) => {
44143
44143
  // if we received an error or their is no response on the results
44144
44144
  // return an error
44145
44145
  if (irReturnError) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-solarwinds",
3
- "version": "0.10.3",
3
+ "version": "0.10.5",
4
4
  "description": "This adapter integrates with system Solarwinds",
5
5
  "main": "adapter.js",
6
6
  "systemName": "SolarWinds Information Service",
@@ -24,9 +24,7 @@
24
24
  "troubleshoot": "node utils/tbScript.js troubleshoot",
25
25
  "healthcheck": "node utils/tbScript.js healthcheck",
26
26
  "basicget": "node utils/tbScript.js basicget",
27
- "connectivity": "node utils/tbScript.js connectivity",
28
- "deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
29
- "build": "npm run deploy"
27
+ "connectivity": "node utils/tbScript.js connectivity"
30
28
  },
31
29
  "keywords": [
32
30
  "Itential",
@@ -51,7 +49,7 @@
51
49
  "author": "Itential",
52
50
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-solarwinds#readme",
53
51
  "dependencies": {
54
- "@itentialopensource/adapter-utils": "5.10.21",
52
+ "@itentialopensource/adapter-utils": "5.10.22",
55
53
  "acorn": "8.14.1",
56
54
  "ajv": "8.17.1",
57
55
  "axios": "1.9.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.9.6",
2
+ "version": "0.10.3",
3
3
  "configLines": 47793,
4
4
  "scriptLines": 2498,
5
5
  "codeLines": 56910,
@@ -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
- const expectedFunctions = a.iapGetAdapterQueue();
960
- try {
961
- assert.equal(0, expectedFunctions.length);
962
- done();
963
- } catch (err) {
964
- log.error(`Test Failure: ${err}`);
965
- done(err);
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);
@@ -252,8 +252,6 @@ describe('[unit] SolarWinds Adapter Test', () => {
252
252
  assert.equal('mocha test/unit/adapterTestUnit.js --LOG=error', packageDotJson.scripts['test:unit']);
253
253
  assert.equal('mocha test/integration/adapterTestIntegration.js --LOG=error', packageDotJson.scripts['test:integration']);
254
254
  assert.equal('npm run test:baseunit && npm run test:unit && npm run test:integration', packageDotJson.scripts.test);
255
- assert.equal('npm publish --registry=https://registry.npmjs.org --access=public', packageDotJson.scripts.deploy);
256
- assert.equal('npm run deploy', packageDotJson.scripts.build);
257
255
  done();
258
256
  } catch (error) {
259
257
  log.error(`Test Failure: ${error}`);