| 2625 | } |
| 2626 | |
| 2627 | func checkTestRegistry() { |
| 2628 | resp, err := http.Get("http://localhost:5000/v2/_catalog") |
| 2629 | if err != nil { |
| 2630 | _, _ = fmt.Printf("Check test registry: %s\n", err.Error()) |
| 2631 | _, _ = fmt.Printf("Hint: Did you run `make test-registry`?\n") |
| 2632 | os.Exit(1) |
| 2633 | } |
| 2634 | defer resp.Body.Close() |
| 2635 | v := make(map[string][]string) |
| 2636 | if err := json.NewDecoder(resp.Body).Decode(&v); err != nil { |
| 2637 | _, _ = fmt.Printf("Read test registry catalog: %s\n", err.Error()) |
| 2638 | _, _ = fmt.Printf("Hint: Did you run `make test-registry`?\n") |
| 2639 | os.Exit(1) |
| 2640 | } |
| 2641 | } |
| 2642 | |
| 2643 | // cleanOldEnvbuilders removes any old envbuilder containers. |
| 2644 | func cleanOldEnvbuilders() { |