Removes Wild Cloud cruft.
This commit is contained in:
@@ -120,8 +120,10 @@ func TestHaproxyGenerate_MissingState(t *testing.T) {
|
||||
|
||||
api.HaproxyGenerate(w, req)
|
||||
|
||||
if w.Code != http.StatusInternalServerError {
|
||||
t.Fatalf("expected 500, got %d: %s", w.Code, w.Body.String())
|
||||
// Missing state.yaml is handled gracefully — reconciliation proceeds
|
||||
// with empty config, generating a minimal HAProxy config.
|
||||
if w.Code != http.StatusOK {
|
||||
t.Fatalf("expected 200, got %d: %s", w.Code, w.Body.String())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user