Skip to content
Snippets Groups Projects
Commit 524877d9 authored by OZGCloud's avatar OZGCloud
Browse files

e2e local smocker

parent d2ca4df0
No related branches found
No related tags found
No related merge requests found
......@@ -124,4 +124,10 @@ services:
ports:
- 9092:8080
depends_on:
- ozg-mongodb
\ No newline at end of file
- ozg-mongodb
ozg-smocker:
image: thiht/smocker
ports:
- 7080:8080
- 7081:8081
\ No newline at end of file
- request:
method: POST
path: /externe-processor-success
response:
status: 200
headers:
Content-Type: application/json
body: >
{
"action": "CREATE_AKTENNOTIZ",
"body": {
"headline": "Eine neue Notiz",
"severity": "INFO",
"text": "Alles fein"
}
}
- request:
method: POST
path: /externe-processor-failure
response:
status: 500
headers:
body: "Da ist etwas schiefgelaufen"
\ No newline at end of file
......@@ -40,7 +40,7 @@ then
export DOCKER_GATEWAY_HOST=172.17.0.1
fi
docker compose -f ${SCRIPT_DIR}/docker-compose.yml up -d ozg-mongodb ozg-usermanager ozg-elastic --wait
docker compose -f ${SCRIPT_DIR}/docker-compose.yml up -d ozg-mongodb ozg-usermanager ozg-elastic ozg-smocker --wait
echo
echo "Starting Pluto to init search index."
......@@ -78,5 +78,14 @@ do
done
echo
echo
echo "Init smocker"
while [ $(curl -sw '%{http_code}' "http://localhost:7081/version" -o /dev/null) -ne 200 ]; do
echo -n "."
sleep 1
done
curl -X POST http://localhost:7081/mocks -H 'Content-Type: application/x-yaml' --data-binary @src/fixtures/smocker/mocks.yaml
echo
echo "done."
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment