mirror of
https://github.com/moby/moby.git
synced 2025-12-06 07:41:18 +03: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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user