Skip to content

Commit

Permalink
Updated sls app version in docker compose for the ct tests
Browse files Browse the repository at this point in the history
- Updated the sls app version to 2.4.0 for the test config
- Changed docker-compose to docker compose in the test scripts

CASMHMS-6237
  • Loading branch information
shunr-hpe committed Aug 21, 2024
1 parent 6abbd27 commit 5af3641
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions docker-compose.test.ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ services:
networks:
- smd
cray-sls-init:
image: artifactory.algol60.net/csm-docker/stable/cray-sls:2.3.0
image: artifactory.algol60.net/csm-docker/stable/cray-sls:2.4.0
command: ["sls-init"]
environment:
- POSTGRES_HOST=sls-postgres
Expand All @@ -89,7 +89,7 @@ services:
networks:
- smd
cray-sls:
image: artifactory.algol60.net/csm-docker/stable/cray-sls:2.3.0
image: artifactory.algol60.net/csm-docker/stable/cray-sls:2.4.0
environment:
- POSTGRES_HOST=cray-sls-postgres
- DBOPTS=sslmode=disable
Expand Down Expand Up @@ -304,4 +304,4 @@ services:
networks:
smd:
aliases:
- x0c0s4b0
- x0c0s4b0
14 changes: 7 additions & 7 deletions runCT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# MIT License
#
# (C) Copyright [2022] Hewlett Packard Enterprise Development LP
# (C) Copyright [2022,2024] Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -34,7 +34,7 @@ echo "COMPOSE_FILE: $COMPOSE_FILE"

function cleanup() {
echo "Cleaning up containers..."
docker-compose down
docker compose down
if ! [[ $? -eq 0 ]]; then
echo "Failed to decompose environment!"
exit 1
Expand All @@ -44,16 +44,16 @@ function cleanup() {

# Get the base containers running
echo "Starting containers..."
docker-compose build --no-cache
docker-compose up --exit-code-from wait-for-smd wait-for-smd
docker-compose up --exit-code-from smoke-tests smoke-tests
docker compose build --no-cache
docker compose up --exit-code-from wait-for-smd wait-for-smd
docker compose up --exit-code-from smoke-tests smoke-tests
test_result=$?
if [[ $test_result -ne 0 ]]; then
echo "CT smoke tests FAILED!"
cleanup 1
fi

docker-compose up --exit-code-from tavern-tests tavern-tests
docker compose up --exit-code-from tavern-tests tavern-tests
test_result=$?
if [[ $test_result -ne 0 ]]; then
echo "CT tavern tests FAILED!"
Expand All @@ -62,4 +62,4 @@ fi

# Cleanup
echo "CT tests PASSED!"
cleanup 0
cleanup 0
8 changes: 4 additions & 4 deletions runUnitTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# MIT License
#
# (C) Copyright [2021-2022] Hewlett Packard Enterprise Development LP
# (C) Copyright [2021-2022,2024] Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -33,7 +33,7 @@ echo "COMPOSE_FILE: $COMPOSE_FILE"


function cleanup() {
docker-compose down
docker compose down
if ! [[ $? -eq 0 ]]; then
echo "Failed to decompose environment!"
exit 1
Expand All @@ -43,8 +43,8 @@ function cleanup() {


echo "Starting containers..."
docker-compose build --no-cache
docker-compose up --exit-code-from unit-tests unit-tests
docker compose build --no-cache
docker compose up --exit-code-from unit-tests unit-tests

test_result=$?

Expand Down

0 comments on commit 5af3641

Please sign in to comment.