Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
| ... | ... |
@@ -9,7 +9,7 @@ import ( |
| 9 | 9 |
|
| 10 | 10 |
// search for repos named "registry" on the central registry |
| 11 | 11 |
func TestSearchOnCentralRegistry(t *testing.T) {
|
| 12 |
- searchCmd := exec.Command(dockerBinary) |
|
| 12 |
+ searchCmd := exec.Command(dockerBinary, "search", "stackbrew/busybox") |
|
| 13 | 13 |
out, exitCode, err := runCommandWithOutput(searchCmd) |
| 14 | 14 |
errorOut(err, t, fmt.Sprintf("encountered error while searching: %v", err))
|
| 15 | 15 |
|
| ... | ... |
@@ -17,9 +17,9 @@ func TestSearchOnCentralRegistry(t *testing.T) {
|
| 17 | 17 |
t.Fatal("failed to search on the central registry")
|
| 18 | 18 |
} |
| 19 | 19 |
|
| 20 |
- if !strings.Contains(out, "registry") {
|
|
| 21 |
- t.Fatal("couldn't find any repository named (or containing) 'registry'")
|
|
| 20 |
+ if !strings.Contains(out, "Busybox base image.") {
|
|
| 21 |
+ t.Fatal("couldn't find any repository named (or containing) 'Busybox base image.'")
|
|
| 22 | 22 |
} |
| 23 | 23 |
|
| 24 |
- logDone("search - search for repositories named (or containing) 'registry'")
|
|
| 24 |
+ logDone("search - search for repositories named (or containing) 'Busybox base image.'")
|
|
| 25 | 25 |
} |