Realistic Examples: K6 Test-ware 52/140052/2
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Mon, 27 Jan 2025 13:58:35 +0000 (13:58 +0000)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Fri, 31 Jan 2025 16:49:54 +0000 (16:49 +0000)
- resourceIdentifiers must be url encoded fdns from ManagedElement.
  e.g.: ManagedElement=NRNode1/GNBDUFunction=1/NRCellDU=cell1

- resourceIdentifer refers to the object where the search starts from.
  This request will search for NRCellDUs and return their cellLocalId.
  The resourceIdentifier should be: ManagedElement=NRNode1/GNBDUFunction=1

Issue-ID: CPS-2482
Change-Id: Ic6ac360c71fcfc80f27367b626ad85d40a58a292
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
k6-tests/ncmp/common/passthrough-crud.js

index 251ddf8..a3d48fd 100644 (file)
@@ -29,7 +29,7 @@ import {
 
 export function passthroughRead(useAlternateId) {
     const cmHandleReference = getRandomCmHandleReference(useAlternateId);
-    const resourceIdentifier = 'NRCellDU/attributes/cellLocalId';
+    const resourceIdentifier = 'ManagedElement=NRNode1/GNBDUFunction=1';
     const datastoreName = 'ncmp-datastore:passthrough-operational';
     const includeDescendants = true;
     const url = generatePassthroughUrl(cmHandleReference, datastoreName, resourceIdentifier, includeDescendants);
@@ -38,7 +38,7 @@ export function passthroughRead(useAlternateId) {
 
 export function passthroughWrite(useAlternateId) {
     const cmHandleReference = getRandomCmHandleReference(useAlternateId);
-    const resourceIdentifier = 'NRCellDU/attributes/cellLocalId';
+    const resourceIdentifier = 'ManagedElement=NRNode1/GNBDUFunction=1';
     const datastoreName = 'ncmp-datastore:passthrough-running';
     const includeDescendants = false;
     const url = generatePassthroughUrl(cmHandleReference, datastoreName, resourceIdentifier, includeDescendants);
@@ -54,7 +54,7 @@ export function legacyBatchRead(cmHandleIds) {
     const payload = JSON.stringify({
         "operations": [
             {
-                "resourceIdentifier": "NRCellDU/attributes/cellLocalId",
+                "resourceIdentifier": "ManagedElement=NRNode1/GNBDUFunction=1",
                 "targetIds": cmHandleIds,
                 "datastore": "ncmp-datastore:passthrough-operational",
                 "options": "(fields=NRCellDU/attributes/cellLocalId)",