Merge pull request #2026 from dgageot/fix-integration-tests

Fix Typos in integration tests
This commit is contained in:
Olivier Gambier 2015-10-20 09:47:23 -07:00
commit e959f7f1df
3 changed files with 6 additions and 6 deletions

View File

@ -76,13 +76,13 @@ load ${BASE_TEST_DIR}/helpers.bash
[[ ${lines[0]} == "Error removing host \"∞\": Loading host from store failed: Host does not exist: \"∞\"" ]] [[ ${lines[0]} == "Error removing host \"∞\": Loading host from store failed: Host does not exist: \"∞\"" ]]
} }
@test "none: rm is succesful 'machine rm 0'" { @test "none: rm is successful 'machine rm 0'" {
run machine rm 0 run machine rm 0
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
} }
# Should be replaced by the test below # Should be replaced by the test below
@test "none: rm is succesful 'machine rm a'" { @test "none: rm is successful 'machine rm a'" {
run machine rm a run machine rm a
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
} }

View File

@ -3,7 +3,7 @@
load ${BASE_TEST_DIR}/helpers.bash load ${BASE_TEST_DIR}/helpers.bash
@test "status: show error in case of no args" { @test "status: show error in case of no args" {
run machine inspect run machine status
[ "$status" -eq 1 ] [ "$status" -eq 1 ]
[[ ${output} == *"must specify a machine name"* ]] [[ ${output} == *"Expected one machine name as an argument."* ]]
} }

View File

@ -3,7 +3,7 @@
load ${BASE_TEST_DIR}/helpers.bash load ${BASE_TEST_DIR}/helpers.bash
@test "url: show error in case of no args" { @test "url: show error in case of no args" {
run machine inspect run machine url
[ "$status" -eq 1 ] [ "$status" -eq 1 ]
[[ ${output} == *"must specify a machine name"* ]] [[ ${output} == *"Expected one machine name as an argument."* ]]
} }