summaryrefslogtreecommitdiffstats
path: root/k6-tests/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'k6-tests/setup.sh')
-rwxr-xr-xk6-tests/setup.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/k6-tests/setup.sh b/k6-tests/setup.sh
index a4508e180d..c794c64dd0 100755
--- a/k6-tests/setup.sh
+++ b/k6-tests/setup.sh
@@ -15,14 +15,20 @@
# limitations under the License.
#
-docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub up --quiet-pull -d
+testProfile=$1
+echo "Spinning off the CPS and NCMP containers for $testProfile testing..."
+
+if [[ "$testProfile" == "endurance" ]]; then
+ docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub --project-name "$testProfile" --env-file ../docker-compose/config/endurance.env up --quiet-pull -d
+ CONTAINER_IDS=$(docker ps --filter "name=endurance-cps-and-ncmp" --format "{{.ID}}")
+else
+ docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub --project-name "$testProfile" up --quiet-pull -d
+ CONTAINER_IDS=$(docker ps --filter "name=kpi-cps-and-ncmp" --format "{{.ID}}")
+fi
echo "Waiting for CPS to start..."
READY_MESSAGE="Inventory Model updated successfully"
-# Get the container IDs of the cps-and-ncmp replicas
-CONTAINER_IDS=$(docker ps --filter "name=cps-and-ncmp" --format "{{.ID}}")
-
# Check the logs for each container
for CONTAINER_ID in $CONTAINER_IDS; do
echo "Checking logs for container: $CONTAINER_ID"