Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanture1064 committed Mar 13, 2024
1 parent 0c38b39 commit 4accb05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cli_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ jobs:
- name: Run Docker Container
run: |
docker run -d --name cli-container test-image
sleep 15
docker ps
- name: Run test script
run: |
docker ps
docker logs cli-container
docker cp tests/example_test.sh cli-container:/tmp/example_test.sh
docker exec cli-container bash /tmp/example_test.sh
- name: Stop and Remove Container
Expand Down
3 changes: 3 additions & 0 deletions tests/example_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ apt-get install -y curl

# Test GET /api/v1/health
echo "---------------------------------------"
echo "Sleeping for 15 seconds..."
sleep 15

echo "Testing GET /api/v1/health"
response=$(curl -X GET http://localhost:8000/api/v1/health)
expected='{"Health":true}'
Expand Down

0 comments on commit 4accb05

Please sign in to comment.