Skip to content

Commit

Permalink
Azure Pipeline: make the wait for service up more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-douglass committed Apr 3, 2020
1 parent 538c8f9 commit a1019cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipelines/azure-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ stages:
python -m assemblyline_ui.app &
python -m assemblyline_ui.socketsrv &
sudo docker run -d --name nginx --network host --restart on-failure -e "UI_HOST=localhost" -e "SOCKET_HOST=localhost" -e "KIBANA_HOST=localhost" -e "FQDN=localhost" sgaroncse/nginx-ssl:1.17.5
wget https://localhost --no-check-certificate --timeout=2 --retry-on-http-error=502 --waitretry=10
wget https://localhost --no-check-certificate --timeout=2 --retry-on-http-error=502 --waitretry=10 --retry-connrefused
pytest -rsx -vv
workingDirectory: $(Pipeline.Workspace)/test
displayName: Test
Expand Down
2 changes: 1 addition & 1 deletion pipelines/azure-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
python -m assemblyline_ui.app &
python -m assemblyline_ui.socketsrv &
sudo docker run -d --name nginx --network host --restart on-failure -e "UI_HOST=localhost" -e "SOCKET_HOST=localhost" -e "KIBANA_HOST=localhost" -e "FQDN=localhost" sgaroncse/nginx-ssl:1.17.5
wget https://localhost --no-check-certificate --timeout=2 --retry-on-http-error=502 --waitretry=10
wget https://localhost --no-check-certificate --timeout=2 --retry-on-http-error=502 --waitretry=10 --retry-connrefused
pytest -rsx -vv
workingDirectory: $(Pipeline.Workspace)/s/assemblyline-ui
displayName: Test

0 comments on commit a1019cd

Please sign in to comment.