Clean up setup and teardown processes for k6 tests 97/141397/9
authorhalil.cakal <halil.cakal@est.tech>
Thu, 26 Jun 2025 13:37:49 +0000 (14:37 +0100)
committerhalil.cakal <halil.cakal@est.tech>
Fri, 4 Jul 2025 14:17:13 +0000 (15:17 +0100)
commitcafa840f982ac65fc9d31baa876169272185d59b
tree7d49e1eb694b792e95d03b62be0f1b2c07bc2572
parent31cc3b9a1db06db8f0c61bfe4046fdee87a387d8
Clean up setup and teardown processes for k6 tests

- rename cps-base.yml to docker-compose.yml to use minimum
  docker-compose commands efficiently
- rename confusing file names:
  - run-k6-tests.sh to k6-main.sh
  - run-all-tests.sh to execute-k6-scenarios.sh
  - ncmp-test-runner.js to scenarios-config.js
- cleanup teardown.sh
  - not only endurance but also kpi should remove all ONAP docker images
    since setup function always builds them!
  - Don't remove any other images (they don't belong ONAP) because it
    bring extra pulling time during the setup, and make the pipeline
slower.
  - combine relevant methods into one
- add cm avc event and v3 data node get metrics to metrics.csv file to
  prevent them commit always
- add missing import for crypto

Issue-ID: CPS-2861

Change-Id: If3d5cc8e33e5a5baa34834aaa178be7803dd5f7d
Signed-off-by: halil.cakal <halil.cakal@est.tech>
14 files changed:
csit/plans/cps/setup.sh
docker-compose/README.md
docker-compose/dmi-services.yml
docker-compose/docker-compose.yml [moved from docker-compose/cps-base.yml with 92% similarity]
docs/csv/metrics.csv
k6-tests/README.md
k6-tests/k6-main.sh [moved from k6-tests/run-k6-tests.sh with 96% similarity]
k6-tests/make-logs.sh [changed mode: 0644->0755]
k6-tests/ncmp/config/kpi.json
k6-tests/ncmp/execute-k6-scenarios.sh [moved from k6-tests/ncmp/run-all-tests.sh with 97% similarity]
k6-tests/ncmp/scenarios-config.js [moved from k6-tests/ncmp/ncmp-test-runner.js with 100% similarity]
k6-tests/setup.sh
k6-tests/teardown.sh
test-tools/perf-test-ncmp-passthrough-read.sh