tests: use TEST_NETWORK env var for test-network name

This commit is contained in:
Jose Diaz-Gonzalez
2020-02-17 23:41:01 -05:00
parent b4d7d37d9b
commit acff195fcb

View File

@@ -85,32 +85,32 @@ teardown() {
}
@test "(network) network management" {
run /bin/bash -c "dokku network:list | grep test-network"
run /bin/bash -c "dokku network:list | grep $TEST_NETWORK"
echo "output: $output"
echo "status: $status"
assert_failure
run /bin/bash -c "dokku network:exists test-network"
run /bin/bash -c "dokku network:exists $TEST_NETWORK"
echo "output: $output"
echo "status: $status"
assert_failure
run /bin/bash -c "dokku network:create test-network"
run /bin/bash -c "dokku network:create $TEST_NETWORK"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku network:list | grep test-network"
run /bin/bash -c "dokku network:list | grep $TEST_NETWORK"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku network:create test-network"
run /bin/bash -c "dokku network:create $TEST_NETWORK"
echo "output: $output"
echo "status: $status"
assert_failure
run /bin/bash -c "dokku network:exists test-network"
run /bin/bash -c "dokku network:exists $TEST_NETWORK"
echo "output: $output"
echo "status: $status"
assert_success
@@ -125,22 +125,22 @@ teardown() {
echo "status: $status"
assert_failure
run /bin/bash -c "dokku --force network:destroy test-network"
run /bin/bash -c "dokku --force network:destroy $TEST_NETWORK"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku --force network:destroy test-network"
run /bin/bash -c "dokku --force network:destroy $TEST_NETWORK"
echo "output: $output"
echo "status: $status"
assert_failure
run /bin/bash -c "dokku network:exists test-network"
run /bin/bash -c "dokku network:exists $TEST_NETWORK"
echo "output: $output"
echo "status: $status"
assert_failure
run /bin/bash -c "dokku network:list | grep test-network"
run /bin/bash -c "dokku network:list | grep $TEST_NETWORK"
echo "output: $output"
echo "status: $status"
assert_failure