mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-01 13:24:31 +02:00
add condition to validade the team
This commit is contained in:
@@ -162,7 +162,9 @@ func TestInfo(t *testing.T) {
|
||||
if r.Header.Get("Authorization") != "Bearer "+token {
|
||||
t.Errorf("authorization token is wrong or not provided")
|
||||
}
|
||||
w.WriteHeader(tc.inCode)
|
||||
if tc.inTeam == "acid" {
|
||||
w.WriteHeader(tc.inCode)
|
||||
}
|
||||
if _, err := fmt.Fprint(w, tc.in); err != nil {
|
||||
t.Errorf("error writing teams api response %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user