Use nginx Docker image for HTTP wait status test
This commit is contained in:
parent
e57261ce12
commit
fffb398918
1 changed files with 14 additions and 17 deletions
|
|
@ -65,11 +65,8 @@
|
||||||
(is (nil? (:mapped-ports stopped-container)))))
|
(is (nil? (:mapped-ports stopped-container)))))
|
||||||
|
|
||||||
(testing "Testing basic testcontainer generic image initialisation with wait for http"
|
(testing "Testing basic testcontainer generic image initialisation with wait for http"
|
||||||
(let [container (sut/create {:image-name "alpine:3.5"
|
(let [container (sut/create {:image-name "bitnami/nginx:1.22"
|
||||||
:network-aliases ["foo"]
|
:network-aliases ["foo"]
|
||||||
:command ["/bin/sh"
|
|
||||||
"-c"
|
|
||||||
"while true ; do printf 'HTTP/1.1 200 OK\\n\\nyay' | nc -l -p 8080; done"]
|
|
||||||
:exposed-ports [8080]
|
:exposed-ports [8080]
|
||||||
:wait-for {:wait-strategy :http
|
:wait-for {:wait-strategy :http
|
||||||
:path "/"
|
:path "/"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue