mirror of https://github.com/docker/docs.git
bats: Convert encoding to utf-8 unix.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
fa22dbf6a6
commit
998cc63f78
|
|
@ -1,15 +1,15 @@
|
|||
#!/usr/bin/env bats
|
||||
|
||||
load vars
|
||||
|
||||
@test "managing non-available node should be timed out" {
|
||||
|
||||
#
|
||||
# timeout does not accept a bash function, so hard-coded path is required
|
||||
#
|
||||
run timeout 15s $GOBIN/swarm manage -H 127.0.0.1:2375 nodes://8.8.8.8:2375
|
||||
|
||||
[ "$status" -ne 0 ]
|
||||
[[ ${lines[0]} =~ "Listening for HTTP" ]]
|
||||
[[ ${lines[1]} =~ "ConnectEx tcp: i/o timeout" ]]
|
||||
}
|
||||
#!/usr/bin/env bats
|
||||
|
||||
load vars
|
||||
|
||||
@test "managing non-available node should be timed out" {
|
||||
|
||||
#
|
||||
# timeout does not accept a bash function, so hard-coded path is required
|
||||
#
|
||||
run timeout 15s $GOBIN/swarm manage -H 127.0.0.1:2375 nodes://8.8.8.8:2375
|
||||
|
||||
[ "$status" -ne 0 ]
|
||||
[[ ${lines[0]} =~ "Listening for HTTP" ]]
|
||||
[[ ${lines[1]} =~ "ConnectEx tcp: i/o timeout" ]]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
#!/usr/bin/env bats
|
||||
|
||||
load vars
|
||||
|
||||
@test "version string should contain a proper number with git commit" {
|
||||
run swarm -v
|
||||
|
||||
[ "$status" -eq 0 ]
|
||||
[[ ${lines[0]} =~ version\ [0-9]+\.[0-9]+\.[0-9]+\ \([0-9a-f]{7}\)$ ]]
|
||||
}
|
||||
#!/usr/bin/env bats
|
||||
|
||||
load vars
|
||||
|
||||
@test "version string should contain a proper number with git commit" {
|
||||
run swarm -v
|
||||
|
||||
[ "$status" -eq 0 ]
|
||||
[[ ${lines[0]} =~ version\ [0-9]+\.[0-9]+\.[0-9]+\ \([0-9a-f]{7}\)$ ]]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue