From acff195fcbd5a55cadf24aa9578cd8e3ca7ab56e Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 17 Feb 2020 23:41:01 -0500 Subject: [PATCH] tests: use TEST_NETWORK env var for test-network name --- tests/unit/20_network.bats | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/unit/20_network.bats b/tests/unit/20_network.bats index 594651f3d..4eddaf925 100644 --- a/tests/unit/20_network.bats +++ b/tests/unit/20_network.bats @@ -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