1
0
Fork 0
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:
Guillaume J. Charmes 2014-04-01 17:30:02 -07:00
parent 8ff02d58d9
commit b246fc33ae
No known key found for this signature in database
GPG key ID: B33E4642CB6E3FF3
3 changed files with 17 additions and 1 deletions

View file

@ -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) {