forked from pub-solar/infra
Merge pull request 'tests/keycloak: try to reduce flakyness' (#284) from fix-keycloak-test into main
Reviewed-on: pub-solar/infra#284 Reviewed-by: Akshay Mankar <axeman@noreply.git.pub.solar>
This commit is contained in:
commit
0475cfdd6a
|
@ -81,6 +81,8 @@ in
|
||||||
nachtigall.succeed("ping 127.0.0.1 -c 2")
|
nachtigall.succeed("ping 127.0.0.1 -c 2")
|
||||||
nachtigall.wait_for_unit("nginx.service")
|
nachtigall.wait_for_unit("nginx.service")
|
||||||
nachtigall.wait_for_unit("keycloak.service")
|
nachtigall.wait_for_unit("keycloak.service")
|
||||||
|
nachtigall.wait_for_open_port(8080)
|
||||||
|
nachtigall.wait_for_open_port(443)
|
||||||
nachtigall.wait_until_succeeds("curl http://127.0.0.1:8080/")
|
nachtigall.wait_until_succeeds("curl http://127.0.0.1:8080/")
|
||||||
nachtigall.wait_until_succeeds("curl https://auth.test.pub.solar/")
|
nachtigall.wait_until_succeeds("curl https://auth.test.pub.solar/")
|
||||||
|
|
||||||
|
|
|
@ -48,12 +48,14 @@
|
||||||
acme_server.wait_for_unit("system.slice")
|
acme_server.wait_for_unit("system.slice")
|
||||||
acme_server.wait_for_unit("step-ca.service")
|
acme_server.wait_for_unit("step-ca.service")
|
||||||
acme_server.succeed("ping ca.test.pub.solar -c 2")
|
acme_server.succeed("ping ca.test.pub.solar -c 2")
|
||||||
|
acme_server.wait_for_open_port(443)
|
||||||
acme_server.wait_until_succeeds("curl 127.0.0.1:443")
|
acme_server.wait_until_succeeds("curl 127.0.0.1:443")
|
||||||
|
|
||||||
nachtigall.wait_for_unit("system.slice")
|
nachtigall.wait_for_unit("system.slice")
|
||||||
nachtigall.succeed("ping test.pub.solar -c 2")
|
nachtigall.succeed("ping test.pub.solar -c 2")
|
||||||
nachtigall.succeed("ping ca.test.pub.solar -c 2")
|
nachtigall.succeed("ping ca.test.pub.solar -c 2")
|
||||||
nachtigall.wait_for_unit("nginx.service")
|
nachtigall.wait_for_unit("nginx.service")
|
||||||
|
nachtigall.wait_for_open_port(443)
|
||||||
nachtigall.wait_until_succeeds("curl https://test.pub.solar/")
|
nachtigall.wait_until_succeeds("curl https://test.pub.solar/")
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue