Merge pull request #873 from progrium/870-mh-bind-ip-on-domains-change

support pre deployment usage of domains plugin. fixes interface binding issue
This commit is contained in:
Jose Diaz-Gonzalez
2015-01-06 16:14:02 -05:00
6 changed files with 36 additions and 16 deletions

View File

@@ -3,7 +3,7 @@
load test_helper
setup() {
deploy_app
create_app
}
teardown() {

View File

@@ -66,3 +66,17 @@ teardown() {
echo "status: "$status
assert_success
}
@test "port exposure (domains:add)" {
create_app
run dokku domains:add $TEST_APP www.test.app.dokku.me
echo "output: "$output
echo "status: "$status
assert_success
deploy_app
sleep 5 # wait for nginx to reload
run bash -c "response=\"$(curl -s -S www.test.app.dokku.me)\"; echo \$response; test \"\$response\" == \"nodejs/express\""
echo "output: "$output
echo "status: "$status
assert_success
}

View File

@@ -90,7 +90,7 @@ destroy_app() {
deploy_app() {
TMP=$(mktemp -d -t "$TARGET.XXXXX")
rmdir $TMP && cp -r ./tests/apps/config $TMP
rmdir $TMP && cp -r ./tests/apps/nodejs-express $TMP
cd $TMP
git init
git config user.email "robot@example.com"