Skip to content

Commit bb82944

Browse files
committed
Added streamlit, image and proxy tests
1 parent e203de7 commit bb82944

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

tests/test_containers.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,34 @@ tests:
3333
container0120: # prod is updated
3434
command: curl -sS localhost:${HTTP_PORT}/cont_flaskprod
3535
stdout: "updated"
36+
37+
container0200: # setup streamlit app
38+
command: ../clace app create --spec python-streamlit --branch master --approve github.com/streamlit/streamlit-example /cont_streamlit
39+
container0210: # check stage
40+
command: curl -sS localhost:${HTTP_PORT}/cont_streamlit_cl_stage/_stcore/health
41+
stdout: ok
42+
container0220: # check prod
43+
command: curl -sS localhost:${HTTP_PORT}/cont_streamlit/_stcore/health
44+
stdout: ok
45+
46+
container0300: # setup proxy
47+
command: ../clace app create --spec proxy --approve -param url=https://clace.io - /cont_proxy
48+
container0310: # check stage
49+
command: curl -sS localhost:${HTTP_PORT}/cont_proxy_cl_stage
50+
stdout: platform
51+
container0320: # check prod
52+
command: curl -sS localhost:${HTTP_PORT}/cont_proxy
53+
stdout: platform
54+
55+
container0400: # setup nginx image
56+
command: ../clace app create --spec image --approve --param image=nginx --param port=80 - /cont_image_nginx
57+
container0410: # check stage
58+
command: curl -sS localhost:${HTTP_PORT}/cont_image_nginx_cl_stage
59+
stdout: Welcome to nginx
60+
container0420: # check prod
61+
command: curl -sS localhost:${HTTP_PORT}/cont_image_nginx
62+
stdout: Welcome to nginx
63+
container0430: # error check
64+
command: ../clace app create --spec image --approve --param image=nginx - /cont_image_error
65+
stderr: param port is a required param, a value has to be provided
66+
exit-code: 1

0 commit comments

Comments
 (0)