diff options
author | 2024-06-17 13:13:24 +0000 | |
---|---|---|
committer | 2024-06-17 13:13:24 +0000 | |
commit | f7b4ece2be998a372e8ea1f15a1919d96b2a78af (patch) | |
tree | 1d9dcb25aad10dd887c81f83ce76b7c1e0a1c4f6 /k6-tests/ncmp/10-mixed-load-test.js | |
parent | d21ba17ca15fb3be4d2728f14b4938dbd091824a (diff) | |
parent | f66694a076be41d83693423dec818493bcf66715 (diff) |
Merge "[k6] Refactoring k6 tests (#1)"
Diffstat (limited to 'k6-tests/ncmp/10-mixed-load-test.js')
-rw-r--r-- | k6-tests/ncmp/10-mixed-load-test.js | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/k6-tests/ncmp/10-mixed-load-test.js b/k6-tests/ncmp/10-mixed-load-test.js index 4bb0297d63..afa91af203 100644 --- a/k6-tests/ncmp/10-mixed-load-test.js +++ b/k6-tests/ncmp/10-mixed-load-test.js @@ -18,10 +18,9 @@ * ============LICENSE_END========================================================= */ -import http from 'k6/http'; -import { check } from 'k6'; -import { NCMP_BASE_URL, getRandomCmHandleId, makeCustomSummaryReport } from './utils.js' -import { executeCmHandleSearch, executeCmHandleIdSearch } from './search-base.js'; +import { makeCustomSummaryReport } from './common/utils.js' +import { executeCmHandleSearch, executeCmHandleIdSearch } from './common/search-base.js'; +import { passthroughRead } from './common/passthrough-read.js'; export const options = { scenarios: { @@ -56,13 +55,7 @@ export const options = { }; export function passthrough_read() { - const cmHandleId = getRandomCmHandleId(); - const datastoreName = 'ncmp-datastore%3Apassthrough-operational'; - const url = `${NCMP_BASE_URL}/ncmp/v1/ch/${cmHandleId}/data/ds/${datastoreName}?resourceIdentifier=x&include-descendants=true` - const response = http.get(url); - check(response, { - 'status equals 200': (r) => r.status === 200, - }); + passthroughRead(); } export function id_search_module() { |