Skip to content

Commit

Permalink
fix the e2e error with cookie (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: rick <[email protected]>
  • Loading branch information
LinuxSuRen and LinuxSuRen authored Jun 10, 2024
1 parent 1830e53 commit 0f8889e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
26 changes: 2 additions & 24 deletions e2e/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,5 @@ then
fi

docker-compose version
docker-compose -f "$file" up --build -d --pull=never

while true
do
docker-compose -f "$file" ps | grep testing
if [ $? -eq 1 ]
then
code=-1
docker-compose -f "$file" logs | grep server
docker-compose -f "$file" logs | grep testing
docker-compose ps -a | grep testing | grep "Exited (0)"
if [ $? -eq 0 ]
then
code=0
echo "successed"
fi
docker-compose ps -a

docker-compose -f "$file" down
set -e
exit $code
fi
sleep 1
done
docker-compose -f "$file" down
docker-compose -f "$file" up --build testing --exit-code-from testing --remove-orphans
2 changes: 1 addition & 1 deletion e2e/test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ items:
Authorization: "{{ .param.auth }}"
expect:
bodyFieldsExpect:
message: cookies are empty
message: not found
- name: have-cookie
request:
api: /cookies/echo
Expand Down

0 comments on commit 0f8889e

Please sign in to comment.