diff options
author | seanbeirne <sean.beirne@est.tech> | 2024-07-19 16:55:06 +0100 |
---|---|---|
committer | Priyank Maheshwari <priyank.maheshwari@est.tech> | 2024-08-12 13:41:31 +0000 |
commit | 285595282371807532862fa0293f6d5e3b5d3517 (patch) | |
tree | 1b3548153a3ec6c1be76241eb5107f4ea85390fa /k6-tests/ncmp/common/passthrough-crud.js | |
parent | d3c1e7246ab4f41cf3dad97e559ca2736b0014cf (diff) |
K6 performance test for Alternate Id Read
Issue-Id: CPS-2279
Change-Id: Iade53a85afb183c0df259c5e7fc12fa0f6986218
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Diffstat (limited to 'k6-tests/ncmp/common/passthrough-crud.js')
-rw-r--r-- | k6-tests/ncmp/common/passthrough-crud.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/k6-tests/ncmp/common/passthrough-crud.js b/k6-tests/ncmp/common/passthrough-crud.js index 76bda4e1bd..5617f9d093 100644 --- a/k6-tests/ncmp/common/passthrough-crud.js +++ b/k6-tests/ncmp/common/passthrough-crud.js @@ -36,6 +36,16 @@ export function passthroughRead() { return response; } +export function passthroughReadWithAltId() { + const cmHandleId = getRandomCmHandleId(); + const resourceIdentifier = 'my-resource-identifier'; + const includeDescendants = true; + const datastoreName = 'ncmp-datastore:passthrough-operational'; + const url = `${NCMP_BASE_URL}/ncmp/v1/ch/alt-${cmHandleId}/data/ds/${datastoreName}?resourceIdentifier=${resourceIdentifier}&include-descendants=${includeDescendants}` + const response = http.get(url); + return response; +} + export function passthroughWrite() { const cmHandleId = getRandomCmHandleId(); const resourceIdentifier = 'my-resource-identifier'; |