mirror of https://github.com/docker/docs.git
Merge pull request #6654 from vieux/fix_test_search
Fix search integration-cli test
This commit is contained in:
commit
4f5e91e3b4
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
// search for repos named "registry" on the central registry
|
// search for repos named "registry" on the central registry
|
||||||
func TestSearchOnCentralRegistry(t *testing.T) {
|
func TestSearchOnCentralRegistry(t *testing.T) {
|
||||||
searchCmd := exec.Command(dockerBinary)
|
searchCmd := exec.Command(dockerBinary, "search", "stackbrew/busybox")
|
||||||
out, exitCode, err := runCommandWithOutput(searchCmd)
|
out, exitCode, err := runCommandWithOutput(searchCmd)
|
||||||
errorOut(err, t, fmt.Sprintf("encountered error while searching: %v", err))
|
errorOut(err, t, fmt.Sprintf("encountered error while searching: %v", err))
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@ func TestSearchOnCentralRegistry(t *testing.T) {
|
||||||
t.Fatal("failed to search on the central registry")
|
t.Fatal("failed to search on the central registry")
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(out, "registry") {
|
if !strings.Contains(out, "Busybox base image.") {
|
||||||
t.Fatal("couldn't find any repository named (or containing) 'registry'")
|
t.Fatal("couldn't find any repository named (or containing) 'Busybox base image.'")
|
||||||
}
|
}
|
||||||
|
|
||||||
logDone("search - search for repositories named (or containing) 'registry'")
|
logDone("search - search for repositories named (or containing) 'Busybox base image.'")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue