tests: add initial test for exposed dockerfile port
This commit is contained in:
1 parent
92139a0cd3
commit
59958181e4
1 file changed
+25
@@ -32,3 +32,28 @@ teardown_() {
|
|||||||
|
|
||||||
INGRESS_CLASS=nginx TAINT_SCHEDULING=true install_k3s
|
INGRESS_CLASS=nginx TAINT_SCHEDULING=true install_k3s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "(scheduler-k3s) deploy dockerfile exposed port" {
|
||||||
|
if [[ -z "$DOCKERHUB_USERNAME" ]] || [[ -z "$DOCKERHUB_TOKEN" ]]; then
|
||||||
|
skip "skipping due to missing docker.io credentials DOCKERHUB_USERNAME:DOCKERHUB_TOKEN"
|
||||||
|
fi
|
||||||
|
|
||||||
|
INGRESS_CLASS=nginx install_k3s
|
||||||
|
|
||||||
|
run /bin/bash -c "dokku apps:create $TEST_APP"
|
||||||
|
echo "output: $output"
|
||||||
|
echo "status: $status"
|
||||||
|
assert_success
|
||||||
|
|
||||||
|
run /bin/bash -c "dokku domains:set $TEST_APP $TEST_APP.dokku.me"
|
||||||
|
echo "output: $output"
|
||||||
|
echo "status: $status"
|
||||||
|
assert_success
|
||||||
|
|
||||||
|
run /bin/bash -c "dokku git:from-image $TEST_APP metabase/metabase:latest"
|
||||||
|
echo "output: $output"
|
||||||
|
echo "status: $status"
|
||||||
|
assert_success
|
||||||
|
|
||||||
|
assert_http_localhost_response "http" "$TEST_APP.dokku.me" "80" "" "python/http.server"
|
||||||
|
}
|
||||||
Reference in new issue
Block a user