@itentialopensource/adapter-nokia_nsp_device_configurator 0.3.0 → 0.3.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/CALLS.md CHANGED
@@ -311,9 +311,9 @@ Specific adapter calls are built based on the API of the Nokia_nsp_device_config
311
311
  <td style="padding:15px">Yes</td>
312
312
  </tr>
313
313
  <tr>
314
- <td style="padding:15px">fieldquerytoretrieveasinglechildnodeunderthetargetresource(neType, neVersion, callback)</td>
314
+ <td style="padding:15px">fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource(fields, neId, port, callback)</td>
315
315
  <td style="padding:15px">Field query to retrieve a single child node under the target resource</td>
316
- <td style="padding:15px">{base_path}/{version}/restconf/meta/api/v1/model/schema/{pathv1}/{pathv2}/nokia-conf:/configure/filter?{query}</td>
316
+ <td style="padding:15px">{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:/configure/{pathv2}?{query}</td>
317
317
  <td style="padding:15px">Yes</td>
318
318
  </tr>
319
319
  <tr>
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.3.2 [08-06-2024]
3
+
4
+ * Changes made at 2024.08.06_18:32PM
5
+
6
+ See merge request itentialopensource/adapters/adapter-nokia_nsp_device_configurator!11
7
+
8
+ ---
9
+
10
+ ## 0.3.1 [05-30-2024]
11
+
12
+ * Updated incorrect call
13
+
14
+ See merge request itentialopensource/adapters/adapter-nokia_nsp_device_configurator!10
15
+
16
+ ---
17
+
2
18
  ## 0.3.0 [05-09-2024]
3
19
 
4
20
  * Minor/2024 auto migration
package/TAB2.md CHANGED
@@ -314,7 +314,7 @@ Sample Properties can be used to help you configure the adapter in the Itential
314
314
  }
315
315
  }
316
316
  ```
317
- ### [Swagger](https://gitlab.com/itentialopensource/adapters/sd-wan/adapter-nokia_nsp_device_configurator/-/blob/master/report/adapter-openapi.json)
317
+ ### [Swagger](https://gitlab.com/itentialopensource/adapters/adapter-nokia_nsp_device_configurator/-/blob/master/report/adapter-openapi.json)
318
318
 
319
- ## [Generic Adapter Information](https://gitlab.com/itentialopensource/adapters/sd-wan/adapter-nokia_nsp_device_configurator/-/blob/master/README.md)
319
+ ## [Generic Adapter Information](https://gitlab.com/itentialopensource/adapters/adapter-nokia_nsp_device_configurator/-/blob/master/README.md)
320
320
 
package/adapter.js CHANGED
@@ -2526,23 +2526,24 @@ class NokiaNspDeviceConfigurator extends AdapterBaseCl {
2526
2526
  }
2527
2527
 
2528
2528
  /**
2529
- * @function fieldquerytoretrieveasinglechildnodeunderthetargetresource
2529
+ * @function fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource
2530
2530
  * @pronghornType method
2531
- * @name fieldquerytoretrieveasinglechildnodeunderthetargetresource
2531
+ * @name fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource
2532
2532
  * @summary Field query to retrieve a single child node under the target resource
2533
2533
  *
2534
- * @param {string} neType - neType param
2535
- * @param {string} neVersion - neVersion param
2534
+ * @param {string} fields - fields param
2535
+ * @param {string} neId - neId (network device) param
2536
+ * @param {string} port - port param
2536
2537
  * @param {getCallback} callback - a callback function to return the result
2537
2538
  * @return {object} results - An object containing the response of the action
2538
2539
  *
2539
- * @route {POST} /fieldquerytoretrieveasinglechildnodeunderthetargetresource
2540
+ * @route {POST} /fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource
2540
2541
  * @roles admin
2541
2542
  * @task true
2542
2543
  */
2543
2544
  /* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
2544
- fieldquerytoretrieveasinglechildnodeunderthetargetresource(neType, neVersion, callback) {
2545
- const meth = 'adapter-fieldquerytoretrieveasinglechildnodeunderthetargetresource';
2545
+ fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource(fields, neId, port, callback) {
2546
+ const meth = 'adapter-fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource';
2546
2547
  const origin = `${this.id}-${meth}`;
2547
2548
  log.trace(origin);
2548
2549
 
@@ -2553,21 +2554,26 @@ class NokiaNspDeviceConfigurator extends AdapterBaseCl {
2553
2554
  }
2554
2555
 
2555
2556
  /* HERE IS WHERE YOU VALIDATE DATA */
2556
- if (neType === undefined || neType === null || neType === '') {
2557
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['neType'], null, null, null);
2557
+ if (fields === undefined || fields === null || fields === '') {
2558
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['fields'], null, null, null);
2559
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2560
+ return callback(null, errorObj);
2561
+ }
2562
+ if (neId === undefined || neId === null || neId === '') {
2563
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['neId'], null, null, null);
2558
2564
  log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2559
2565
  return callback(null, errorObj);
2560
2566
  }
2561
- if (neVersion === undefined || neVersion === null || neVersion === '') {
2562
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['neVersion'], null, null, null);
2567
+ if (port === undefined || port === null || port === '') {
2568
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['port'], null, null, null);
2563
2569
  log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2564
2570
  return callback(null, errorObj);
2565
2571
  }
2566
2572
 
2567
2573
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
2568
- const queryParamsAvailable = {};
2574
+ const queryParamsAvailable = { fields };
2569
2575
  const queryParams = {};
2570
- const pathVars = [`neType=${neType}`, `neVersion=${neVersion}`];
2576
+ const pathVars = [`network-device=${neId}`, `port=${port}`];
2571
2577
  const bodyVars = {};
2572
2578
 
2573
2579
  // loop in template. long callback arg name to avoid identifier conflicts
@@ -2606,7 +2612,7 @@ class NokiaNspDeviceConfigurator extends AdapterBaseCl {
2606
2612
  try {
2607
2613
  // Make the call -
2608
2614
  // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
2609
- return this.requestHandlerInst.identifyRequest('Search', 'fieldquerytoretrieveasinglechildnodeunderthetargetresource', reqObj, true, (irReturnData, irReturnError) => {
2615
+ return this.requestHandlerInst.identifyRequest('Search', 'fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource', reqObj, true, (irReturnData, irReturnError) => {
2610
2616
  // if we received an error or their is no response on the results
2611
2617
  // return an error
2612
2618
  if (irReturnError) {
@@ -2614,7 +2620,7 @@ class NokiaNspDeviceConfigurator extends AdapterBaseCl {
2614
2620
  return callback(null, irReturnError);
2615
2621
  }
2616
2622
  if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
2617
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['fieldquerytoretrieveasinglechildnodeunderthetargetresource'], null, null, null);
2623
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource'], null, null, null);
2618
2624
  log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
2619
2625
  return callback(null, errorObj);
2620
2626
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "ComplianceEntries": [
3
+ {
4
+ "name": "Compliance Summary",
5
+ "numInvalidProjects": 0,
6
+ "numValidProjects": 0
7
+ }
8
+ ]
9
+ }
@@ -0,0 +1,5 @@
1
+ ---------------------------------------------------------------------------------------------
2
+ **** Project Compliance Summary ****
3
+ 0 project(s) are not valid
4
+ 0 project(s) are valid
5
+ ---------------------------------------------------------------------------------------------
@@ -43,10 +43,10 @@
43
43
  ]
44
44
  },
45
45
  {
46
- "name": "fieldquerytoretrieveasinglechildnodeunderthetargetresource",
46
+ "name": "fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource",
47
47
  "protocol": "REST",
48
48
  "method": "GET",
49
- "entitypath": "{base_path}/{version}/restconf/meta/api/v1/model/schema/{pathv1}/{pathv2}/nokia-conf:/configure/filter?{query}",
49
+ "entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:/configure/{pathv2}?{query}",
50
50
  "requestSchema": "schema.json",
51
51
  "responseSchema": "schema.json",
52
52
  "timeout": 0,
@@ -12,7 +12,7 @@
12
12
  "enum": [
13
13
  "fieldquerytoselectmultiplefieldsunderthetargetresource",
14
14
  "fieldquerywithsubSelectorsofanodeunderthetargetresource",
15
- "fieldquerytoretrieveasinglechildnodeunderthetargetresource"
15
+ "fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource"
16
16
  ],
17
17
  "external_name": "ph_request_type"
18
18
  }
package/metadata.json CHANGED
@@ -85,5 +85,6 @@
85
85
  "workflowProjects": [],
86
86
  "transformationProjects": [],
87
87
  "exampleProjects": []
88
- }
88
+ },
89
+ "supportLevel": "community"
89
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-nokia_nsp_device_configurator",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "This adapter integrates with system described as: 22.11Modeled-deviceConfiguratorRestconfApis.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
@@ -52,22 +52,22 @@
52
52
  "author": "Itential",
53
53
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-nokia_nsp_device_configurator#readme",
54
54
  "dependencies": {
55
- "@itentialopensource/adapter-utils": "^5.3.10",
56
- "acorn": "^8.10.0",
57
- "ajv": "^8.12.0",
58
- "axios": "^1.6.8",
55
+ "@itentialopensource/adapter-utils": "^5.6.0",
56
+ "acorn": "^8.12.1",
57
+ "ajv": "^8.17.1",
58
+ "axios": "^1.7.2",
59
59
  "commander": "^11.0.0",
60
60
  "dns-lookup-promise": "^1.0.4",
61
- "fs-extra": "^11.1.1",
61
+ "fs-extra": "^11.2.0",
62
62
  "json-query": "^2.2.2",
63
- "mocha": "^10.3.0",
63
+ "mocha": "^10.7.0",
64
64
  "mocha-param": "^2.0.1",
65
65
  "mongodb": "^4.16.0",
66
66
  "ping": "^0.4.4",
67
67
  "prompts": "^2.4.2",
68
68
  "readline-sync": "^1.4.10",
69
- "semver": "^7.5.3",
70
- "winston": "^3.9.0"
69
+ "semver": "^7.6.3",
70
+ "winston": "^3.13.1"
71
71
  },
72
72
  "devDependencies": {
73
73
  "chai": "^4.3.7",
package/pronghorn.json CHANGED
@@ -4023,27 +4023,37 @@
4023
4023
  "task": true
4024
4024
  },
4025
4025
  {
4026
- "name": "fieldquerytoretrieveasinglechildnodeunderthetargetresource",
4026
+ "name": "fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource",
4027
4027
  "summary": "Field query to retrieve a single child node under the target resource",
4028
4028
  "description": "Field query to retrieve a single child node under the target resource",
4029
4029
  "input": [
4030
4030
  {
4031
- "name": "neType",
4031
+ "name": "fields",
4032
+ "type": "string",
4033
+ "info": ": string",
4034
+ "required": true,
4035
+ "schema": {
4036
+ "title": "fields",
4037
+ "type": "string"
4038
+ }
4039
+ },
4040
+ {
4041
+ "name": "neId",
4032
4042
  "type": "string",
4033
4043
  "info": ": string",
4034
4044
  "required": true,
4035
4045
  "schema": {
4036
- "title": "neType",
4046
+ "title": "neId",
4037
4047
  "type": "string"
4038
4048
  }
4039
4049
  },
4040
4050
  {
4041
- "name": "neVersion",
4051
+ "name": "port",
4042
4052
  "type": "string",
4043
4053
  "info": ": string",
4044
4054
  "required": true,
4045
4055
  "schema": {
4046
- "title": "neVersion",
4056
+ "title": "port",
4047
4057
  "type": "string"
4048
4058
  }
4049
4059
  }
@@ -4055,7 +4065,7 @@
4055
4065
  "schema": {
4056
4066
  "allOf": [
4057
4067
  {
4058
- "title": "Fieldquerytoretrieveasinglechildnodeunderthetargetresource",
4068
+ "title": "fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource",
4059
4069
  "required": [
4060
4070
  "nokia-conf:port"
4061
4071
  ],
@@ -4254,7 +4264,7 @@
4254
4264
  ],
4255
4265
  "route": {
4256
4266
  "verb": "POST",
4257
- "path": "/fieldquerytoretrieveasinglechildnodeunderthetargetresource"
4267
+ "path": "/fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource"
4258
4268
  },
4259
4269
  "task": true
4260
4270
  },
Binary file
@@ -3792,7 +3792,7 @@
3792
3792
  ],
3793
3793
  "summary": "Field query to retrieve a single child node under the target resource",
3794
3794
  "description": "Field query to retrieve a single child node under the target resource",
3795
- "operationId": "Fieldquerytoretrieveasinglechildnodeunderthetargetresource",
3795
+ "operationId": "fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource",
3796
3796
  "parameters": [
3797
3797
  {
3798
3798
  "name": "Content-Type",
@@ -3962,7 +3962,7 @@
3962
3962
  "schema": {
3963
3963
  "allOf": [
3964
3964
  {
3965
- "$ref": "#/components/schemas/Fieldquerytoretrieveasinglechildnodeunderthetargetresource"
3965
+ "$ref": "#/components/schemas/fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource"
3966
3966
  },
3967
3967
  {
3968
3968
  "example": {
@@ -8368,8 +8368,8 @@
8368
8368
  "mda-type": "m60-10/100eth-tx"
8369
8369
  }
8370
8370
  },
8371
- "Fieldquerytoretrieveasinglechildnodeunderthetargetresource": {
8372
- "title": "Fieldquerytoretrieveasinglechildnodeunderthetargetresource",
8371
+ "fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource": {
8372
+ "title": "fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource",
8373
8373
  "required": [
8374
8374
  "nokia-conf:port"
8375
8375
  ],
@@ -3792,7 +3792,7 @@
3792
3792
  ],
3793
3793
  "summary": "Field query to retrieve a single child node under the target resource",
3794
3794
  "description": "Field query to retrieve a single child node under the target resource",
3795
- "operationId": "Fieldquerytoretrieveasinglechildnodeunderthetargetresource",
3795
+ "operationId": "fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource",
3796
3796
  "parameters": [
3797
3797
  {
3798
3798
  "name": "Content-Type",
@@ -3962,7 +3962,7 @@
3962
3962
  "schema": {
3963
3963
  "allOf": [
3964
3964
  {
3965
- "$ref": "#/components/schemas/Fieldquerytoretrieveasinglechildnodeunderthetargetresource"
3965
+ "$ref": "#/components/schemas/fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource"
3966
3966
  },
3967
3967
  {
3968
3968
  "example": {
@@ -8368,8 +8368,8 @@
8368
8368
  "mda-type": "m60-10/100eth-tx"
8369
8369
  }
8370
8370
  },
8371
- "Fieldquerytoretrieveasinglechildnodeunderthetargetresource": {
8372
- "title": "Fieldquerytoretrieveasinglechildnodeunderthetargetresource",
8371
+ "fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource": {
8372
+ "title": "fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource",
8373
8373
  "required": [
8374
8374
  "nokia-conf:port"
8375
8375
  ],
@@ -2482,9 +2482,9 @@ paths:
2482
2482
  get:
2483
2483
  tags:
2484
2484
  - Search
2485
- summary: Fieldquerytoretrieveasinglechildnodeunderthetargetresource
2485
+ summary: fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource
2486
2486
  description: Field query to retrieve a single child node under the target resource
2487
- operationId: Fieldquerytoretrieveasinglechildnodeunderthetargetresource
2487
+ operationId: fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource
2488
2488
  parameters:
2489
2489
  - name: Content-Type
2490
2490
  in: header
@@ -2604,7 +2604,7 @@ paths:
2604
2604
  application/json;charset=UTF-8:
2605
2605
  schema:
2606
2606
  allOf:
2607
- - $ref: '#/components/schemas/Fieldquerytoretrieveasinglechildnodeunderthetargetresource'
2607
+ - $ref: '#/components/schemas/fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource'
2608
2608
  - example:
2609
2609
  nokia-conf:port:
2610
2610
  - ethernet:
@@ -5788,8 +5788,8 @@ components:
5788
5788
  example:
5789
5789
  mda-slot: 1
5790
5790
  mda-type: m60-10/100eth-tx
5791
- Fieldquerytoretrieveasinglechildnodeunderthetargetresource:
5792
- title: Fieldquerytoretrieveasinglechildnodeunderthetargetresource
5791
+ fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource:
5792
+ title: fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource
5793
5793
  required:
5794
5794
  - nokia-conf:port
5795
5795
  type: object
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.2.3",
3
- "configLines": 8378,
2
+ "version": "0.3.0",
3
+ "configLines": 8388,
4
4
  "scriptLines": 1783,
5
- "codeLines": 4492,
6
- "testLines": 4837,
7
- "testCases": 231,
8
- "totalCodeLines": 11112,
5
+ "codeLines": 4498,
6
+ "testLines": 4853,
7
+ "testCases": 232,
8
+ "totalCodeLines": 11134,
9
9
  "wfTasks": 48
10
10
  }
@@ -955,12 +955,11 @@ describe('[integration] Nokia_nsp_device_configurator Adapter Test', () => {
955
955
  }).timeout(attemptTimeout);
956
956
  });
957
957
 
958
- const searchNeType = 'fakedata';
959
- const searchNeVersion = 'fakedata';
960
- describe('#fieldquerytoretrieveasinglechildnodeunderthetargetresource - errors', () => {
958
+ const searchPort = 'fakedata';
959
+ describe('#fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource - errors', () => {
961
960
  it('should work if integrated or standalone with mockdata', (done) => {
962
961
  try {
963
- a.fieldquerytoretrieveasinglechildnodeunderthetargetresource(searchNeType, searchNeVersion, (data, error) => {
962
+ a.fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource(searchFields, searchNeId, searchPort, (data, error) => {
964
963
  try {
965
964
  if (stub) {
966
965
  runCommonAsserts(data, error);
@@ -968,7 +967,7 @@ describe('[integration] Nokia_nsp_device_configurator Adapter Test', () => {
968
967
  } else {
969
968
  runCommonAsserts(data, error);
970
969
  }
971
- saveMockData('Search', 'fieldquerytoretrieveasinglechildnodeunderthetargetresource', 'default', data);
970
+ saveMockData('Search', 'fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource', 'default', data);
972
971
  done();
973
972
  } catch (err) {
974
973
  log.error(`Test Failure: ${err}`);
@@ -314,16 +314,16 @@ describe('[unit] Nokia_nsp_device_configurator Adapter Test', () => {
314
314
  assert.notEqual(undefined, packageDotJson.dependencies);
315
315
  assert.notEqual(null, packageDotJson.dependencies);
316
316
  assert.notEqual('', packageDotJson.dependencies);
317
- assert.equal('^8.12.0', packageDotJson.dependencies.ajv);
318
- assert.equal('^1.6.8', packageDotJson.dependencies.axios);
317
+ assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
318
+ assert.equal('^1.7.2', packageDotJson.dependencies.axios);
319
319
  assert.equal('^11.0.0', packageDotJson.dependencies.commander);
320
- assert.equal('^11.1.1', packageDotJson.dependencies['fs-extra']);
321
- assert.equal('^10.3.0', packageDotJson.dependencies.mocha);
320
+ assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
321
+ assert.equal('^10.7.0', packageDotJson.dependencies.mocha);
322
322
  assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
323
323
  assert.equal('^0.4.4', packageDotJson.dependencies.ping);
324
324
  assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
325
- assert.equal('^7.5.3', packageDotJson.dependencies.semver);
326
- assert.equal('^3.9.0', packageDotJson.dependencies.winston);
325
+ assert.equal('^7.6.3', packageDotJson.dependencies.semver);
326
+ assert.equal('^3.13.1', packageDotJson.dependencies.winston);
327
327
  done();
328
328
  } catch (error) {
329
329
  log.error(`Test Failure: ${error}`);
@@ -2263,22 +2263,39 @@ describe('[unit] Nokia_nsp_device_configurator Adapter Test', () => {
2263
2263
  }).timeout(attemptTimeout);
2264
2264
  });
2265
2265
 
2266
- describe('#fieldquerytoretrieveasinglechildnodeunderthetargetresource - errors', () => {
2267
- it('should have a fieldquerytoretrieveasinglechildnodeunderthetargetresource function', (done) => {
2266
+ describe('#fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource - errors', () => {
2267
+ it('should have a fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource function', (done) => {
2268
2268
  try {
2269
- assert.equal(true, typeof a.fieldquerytoretrieveasinglechildnodeunderthetargetresource === 'function');
2269
+ assert.equal(true, typeof a.fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource === 'function');
2270
2270
  done();
2271
2271
  } catch (error) {
2272
2272
  log.error(`Test Failure: ${error}`);
2273
2273
  done(error);
2274
2274
  }
2275
2275
  }).timeout(attemptTimeout);
2276
- it('should error if - missing neType', (done) => {
2276
+ it('should error if - missing fields', (done) => {
2277
2277
  try {
2278
- a.fieldquerytoretrieveasinglechildnodeunderthetargetresource(null, null, (data, error) => {
2278
+ a.fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource(null, null, null, (data, error) => {
2279
2279
  try {
2280
- const displayE = 'neType is required';
2281
- runErrorAsserts(data, error, 'AD.300', 'Test-nokia_nsp_device_configurator-adapter-fieldquerytoretrieveasinglechildnodeunderthetargetresource', displayE);
2280
+ const displayE = 'fields is required';
2281
+ runErrorAsserts(data, error, 'AD.300', 'Test-nokia_nsp_device_configurator-adapter-fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource', displayE);
2282
+ done();
2283
+ } catch (err) {
2284
+ log.error(`Test Failure: ${err}`);
2285
+ done(err);
2286
+ }
2287
+ });
2288
+ } catch (error) {
2289
+ log.error(`Adapter Exception: ${error}`);
2290
+ done(error);
2291
+ }
2292
+ }).timeout(attemptTimeout);
2293
+ it('should error if - missing neId', (done) => {
2294
+ try {
2295
+ a.fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource('fakeparam', null, null, (data, error) => {
2296
+ try {
2297
+ const displayE = 'neId is required';
2298
+ runErrorAsserts(data, error, 'AD.300', 'Test-nokia_nsp_device_configurator-adapter-fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource', displayE);
2282
2299
  done();
2283
2300
  } catch (err) {
2284
2301
  log.error(`Test Failure: ${err}`);
@@ -2290,12 +2307,12 @@ describe('[unit] Nokia_nsp_device_configurator Adapter Test', () => {
2290
2307
  done(error);
2291
2308
  }
2292
2309
  }).timeout(attemptTimeout);
2293
- it('should error if - missing neVersion', (done) => {
2310
+ it('should error if - missing port', (done) => {
2294
2311
  try {
2295
- a.fieldquerytoretrieveasinglechildnodeunderthetargetresource('fakeparam', null, (data, error) => {
2312
+ a.fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource('fakeparam', 'neId', null, (data, error) => {
2296
2313
  try {
2297
- const displayE = 'neVersion is required';
2298
- runErrorAsserts(data, error, 'AD.300', 'Test-nokia_nsp_device_configurator-adapter-fieldquerytoretrieveasinglechildnodeunderthetargetresource', displayE);
2314
+ const displayE = 'port is required';
2315
+ runErrorAsserts(data, error, 'AD.300', 'Test-nokia_nsp_device_configurator-adapter-fieldQueryToRetrieveASingleChildNodeUnderTheTargetResource', displayE);
2299
2316
  done();
2300
2317
  } catch (err) {
2301
2318
  log.error(`Test Failure: ${err}`);