From 3e5957464b6b4fa18bcae18bcfdce5fc9bace787 Mon Sep 17 00:00:00 2001 From: Niranjana Date: Fri, 23 Jul 2021 05:27:44 +0000 Subject: Support for Multiple xpath queries in single api query Issue-ID: CPS-510 Signed-off-by: Niranjana Change-Id: I79c41d8028355a205d6d1e7808f64447dd94a28b --- .../resources/sample_multiple_query_data_1.json | 26 ++++++ .../resources/sample_multiple_query_data_2.json | 8 ++ .../resources/sample_multiple_query_data_3.json | 8 ++ .../resources/sample_transform_query_data.json | 104 +++++++++++++++++++++ 4 files changed, 146 insertions(+) create mode 100644 cps-tbdmt-service/src/test/resources/sample_multiple_query_data_1.json create mode 100644 cps-tbdmt-service/src/test/resources/sample_multiple_query_data_2.json create mode 100644 cps-tbdmt-service/src/test/resources/sample_multiple_query_data_3.json create mode 100644 cps-tbdmt-service/src/test/resources/sample_transform_query_data.json (limited to 'cps-tbdmt-service/src/test/resources') diff --git a/cps-tbdmt-service/src/test/resources/sample_multiple_query_data_1.json b/cps-tbdmt-service/src/test/resources/sample_multiple_query_data_1.json new file mode 100644 index 0000000..9cef3ea --- /dev/null +++ b/cps-tbdmt-service/src/test/resources/sample_multiple_query_data_1.json @@ -0,0 +1,26 @@ +{ + "branch":[ + { + "name":"Right", + "nest":{ + "name":"Big", + "birds":[ + "Owl", + "Raven", + "Crow" + ] + } + }, + { + "name":"Left", + "nest":{ + "name":"Small", + "birds":[ + "Robin", + "Sparrow", + "Finch" + ] + } + } + ] +} diff --git a/cps-tbdmt-service/src/test/resources/sample_multiple_query_data_2.json b/cps-tbdmt-service/src/test/resources/sample_multiple_query_data_2.json new file mode 100644 index 0000000..8a4e509 --- /dev/null +++ b/cps-tbdmt-service/src/test/resources/sample_multiple_query_data_2.json @@ -0,0 +1,8 @@ +{ + "name":"Big", + "birds":[ + "Owl", + "Raven", + "Crow" + ] +} diff --git a/cps-tbdmt-service/src/test/resources/sample_multiple_query_data_3.json b/cps-tbdmt-service/src/test/resources/sample_multiple_query_data_3.json new file mode 100644 index 0000000..b5770ab --- /dev/null +++ b/cps-tbdmt-service/src/test/resources/sample_multiple_query_data_3.json @@ -0,0 +1,8 @@ +{ + "name":"Small", + "birds":[ + "Robin", + "Sparrow", + "Finch" + ] +} diff --git a/cps-tbdmt-service/src/test/resources/sample_transform_query_data.json b/cps-tbdmt-service/src/test/resources/sample_transform_query_data.json new file mode 100644 index 0000000..d30b899 --- /dev/null +++ b/cps-tbdmt-service/src/test/resources/sample_transform_query_data.json @@ -0,0 +1,104 @@ +{ + "attributes":{ + "near-rt-ric-url":"10.165.160.47:6080", + "trackingArea":"Kingston", + "rANNFNSSIList":[ + "e893-e93r-c0f2-kj76", + "m93ed-e93e-c0f2-9i7y" + ] + }, + "GNBDUFunction":[ + { + "idGNBDUFunction":"22", + "attributes":{ + "gNBDUFunction-url":"10.165.160.13:6080", + "gNBIdLength":23, + "gNBDUName":"gnbdu1", + "gNBDUId":22, + "userLabel":"user", + "sAP":[ + { + "host":"localhost", + "port":8080 + } + ] + }, + "NRCellDU":[ + { + "idNRCellDU":"15299", + "attributes":{ + "nRCellDU-url":"10.165.160.15:8083", + "cellLocalId":15299, + "pLMNInfoList":[ + { + "mcc":"211", + "mnc":"211", + "sNSSAIList":[ + { + "sNssai":"202", + "status":"active", + "configData":[ + { + "configParameter":"maxNumberOfConns", + "configValue":20 + } + ] + } + ] + } + ], + "nRPCI":11, + "nRTAC":14777, + "nRSectorCarrierRef":[ + "OU=Sales" + ], + "userLabel":"user", + "sAP":[ + { + "host":"localhost", + "port":8080 + } + ] + } + } + ] + }, + { + "idGNBDUFunction":"33", + "attributes":{ + "gNBDUFunction-url":"10.165.160.13:6080", + "gNBIdLength":23, + "gNBDUName":"gnbdu1", + "gNBDUId":22, + "userLabel":"user", + "sAP":[ + { + "host":"localhost", + "port":8080 + } + ] + }, + "NRCellDU":[ + { + "idNRCellDU":"15277", + "attributes":{ + "nRCellDU-url":"10.165.160.15:8083", + "cellLocalId":15277, + "nRPCI":11, + "nRTAC":14777, + "nRSectorCarrierRef":[ + "OU=Sales" + ], + "userLabel":"user", + "sAP":[ + { + "host":"localhost", + "port":8080 + } + ] + } + } + ] + } + ] +} -- cgit