xip.io style vhosts with tests. closes #1005

This commit is contained in:
Michael Hobbs committed 2015-03-19 11:23:00 -07:00
1 parent 3b1e0ceb51
commit c83fbad205
2 files changed
+16

No files matched your search

+10
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
}