Skip to content

Commit

Permalink
test mongo volume not there
Browse files Browse the repository at this point in the history
  • Loading branch information
ekdeveloper committed Sep 12, 2024
1 parent 5fbc04d commit f85558e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
echo "Waiting..."
sleep 5
done
docker ps
- name: Extract Container IP Address
run: |
Expand All @@ -56,10 +57,12 @@ jobs:
exit 1
fi
#curl -X PUT -H "Content-Type: application/json" -T scripts/curlRequests/example_patient.json "http://${CONTAINER_IP}:3000/4_0_0/Patient/example"
- name: Test new patient curl request
- name: Test curl request
run: |
curl -X PUT -H "Content-Type: application/json" -T scripts/curlRequests/example_patient.json "http://${CONTAINER_IP}:3000/4_0_0/Patient/example"
- name: Test new patient curl request
run: |
# Perform the GET request and store the HTTP status code
response=$(curl -s -o /dev/null -w "%{http_code}" -X PUT -H "Content-Type: application/json" -T scripts/curlRequests/example_patient.json "http://${CONTAINER_IP}:3000/4_0_0/Patient/example")
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
image: mongo:7.0.14
ports:
- '27017'
volumes:
- mongo_data:/data/db
# volumes:
# - mongo_data:/data/db
volumes:
mongo_data:

0 comments on commit f85558e

Please sign in to comment.