mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add API version to docker version
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
This commit is contained in:
parent
8ff02d58d9
commit
b246fc33ae
3 changed files with 17 additions and 1 deletions
|
@ -17,7 +17,17 @@ func TestVersionEnsureSucceeds(t *testing.T) {
|
|||
t.Fatal("failed to execute docker version")
|
||||
}
|
||||
|
||||
stringsToCheck := []string{"Client version:", "Go version (client):", "Git commit (client):", "Server version:", "Git commit (server):", "Go version (server):", "Last stable version:"}
|
||||
stringsToCheck := []string{
|
||||
"Client version:",
|
||||
"Client API version:",
|
||||
"Go version (client):",
|
||||
"Git commit (client):",
|
||||
"Server version:",
|
||||
"Server API version:",
|
||||
"Git commit (server):",
|
||||
"Go version (server):",
|
||||
"Last stable version:",
|
||||
}
|
||||
|
||||
for _, linePrefix := range stringsToCheck {
|
||||
if !strings.Contains(out, linePrefix) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue