mirror of https://github.com/docker/docs.git
Merge pull request #2779 from jeanlaurent/fix-integration-test
Fix integration test
This commit is contained in:
commit
bacf1db2b9
|
|
@ -85,21 +85,21 @@ use_shared_machine
|
|||
run machine url $NAME
|
||||
echo ${output}
|
||||
[ "$status" -eq 1 ]
|
||||
[[ ${output} == *"not running"* ]]
|
||||
[[ ${output} == *"Host is not running"* ]]
|
||||
}
|
||||
|
||||
@test "$DRIVER: env should show an error when machine is stopped" {
|
||||
run machine env $NAME
|
||||
echo ${output}
|
||||
[ "$status" -eq 1 ]
|
||||
[[ ${output} == *"not running. Please start"* ]]
|
||||
[[ ${output} == *"Host is not running"* ]]
|
||||
}
|
||||
|
||||
@test "$DRIVER: version should show an error when machine is stopped" {
|
||||
run machine version $NAME
|
||||
echo ${output}
|
||||
[ "$status" -eq 1 ]
|
||||
[[ ${output} == *"not running"* ]]
|
||||
[[ ${output} == *"Host is not running"* ]]
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -29,14 +29,13 @@ export TOKEN=$(curl -sS -X POST "https://discovery.hub.docker.com/v1/clusters")
|
|||
|
||||
@test "should not show as swarm active if normal active" {
|
||||
eval $(machine env queenbee)
|
||||
run machine ls
|
||||
echo ${output}
|
||||
run machine ls --filter name=queenbee
|
||||
[[ ${lines[1]} != *"* (swarm)"* ]]
|
||||
}
|
||||
|
||||
@test "should show as swarm active" {
|
||||
eval $(machine env --swarm queenbee)
|
||||
run machine ls
|
||||
run machine ls --filter name=queenbee
|
||||
echo ${output}
|
||||
[[ ${lines[1]} == *"* (swarm)"* ]]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue