-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/system: Use env var for invoking Toolbox
The system test refactor[0] replaced the 'run_toolbox' helper function with 'run toolbox', which is a normal invocation of Toolbox. This makes it impossible to override Toolbox used during the tests using env var. [0] #693
- Loading branch information
1 parent
2369da5
commit 871d905
Showing
7 changed files
with
32 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,27 +16,27 @@ teardown() { | |
@test "create: Create the default container" { | ||
pull_default_image | ||
|
||
run toolbox -y create | ||
run $TOOLBOX -y create | ||
|
||
assert_success | ||
} | ||
|
||
@test "create: Create a container with a valid custom name ('custom-containerName')" { | ||
run toolbox -y create -c "custom-containerName" | ||
run $TOOLBOX -y create -c "custom-containerName" | ||
|
||
assert_success | ||
} | ||
|
||
@test "create: Create a container with a custom image and name ('fedora29'; f29)" { | ||
pull_image_old 29 | ||
|
||
run toolbox -y create -c "fedora29" -i fedora-toolbox:29 | ||
run $TOOLBOX -y create -c "fedora29" -i fedora-toolbox:29 | ||
|
||
assert_success | ||
} | ||
|
||
@test "create: Try to create a container with invalid custom name ('ß[email protected]€'; using positional argument)" { | ||
run toolbox -y create "ß[email protected]€" | ||
run $TOOLBOX -y create "ß[email protected]€" | ||
|
||
assert_failure | ||
assert_line --index 0 "Error: invalid argument for 'CONTAINER'" | ||
|
@@ -45,7 +45,7 @@ teardown() { | |
} | ||
|
||
@test "create: Try to create a container with invalid custom name ('ß[email protected]€'; using option --container)" { | ||
run toolbox -y create -c "ß[email protected]€" | ||
run $TOOLBOX -y create -c "ß[email protected]€" | ||
|
||
assert_failure | ||
assert_line --index 0 "Error: invalid argument for '--container'" | ||
|
@@ -56,7 +56,7 @@ teardown() { | |
@test "create: Create a container with a distro and release options ('fedora'; f29)" { | ||
pull_image 29 | ||
|
||
run toolbox -y create -d "fedora" -r f29 | ||
run $TOOLBOX -y create -d "fedora" -r f29 | ||
|
||
assert_success | ||
assert_output --partial "Created container: fedora-toolbox-29" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters