xip.io style vhosts with tests. closes #1005

This commit is contained in:
Michael Hobbs
2015-03-19 11:21:48 -07:00
parent 3b1e0ceb51
commit c83fbad205
2 changed files with 16 additions and 0 deletions

View File

@@ -116,3 +116,13 @@ teardown() {
echo "status: "$status
assert_success
}
@test "port exposure (xip.io style hostnames)" {
echo "127.0.0.1.xip.io" > "$DOKKU_ROOT/VHOST"
deploy_app
run bash -c "response=\"$(curl -s -S my-cool-guy-test-app.127.0.0.1.xip.io)\"; echo \$response; test \"\$response\" == \"nodejs/express\""
echo "output: "$output
echo "status: "$status
assert_success
}