|
|
@ -237,12 +237,6 @@ func testNewACLs(ctx context.Context, tailnet, apiKey, policyFname string) error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
defer resp.Body.Close()
|
|
|
|
defer resp.Body.Close()
|
|
|
|
|
|
|
|
|
|
|
|
got := resp.StatusCode
|
|
|
|
|
|
|
|
want := http.StatusOK
|
|
|
|
|
|
|
|
if got != want {
|
|
|
|
|
|
|
|
return fmt.Errorf("wanted HTTP status code %d but got %d", want, got)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ate ACLTestError
|
|
|
|
var ate ACLTestError
|
|
|
|
err = json.NewDecoder(resp.Body).Decode(&ate)
|
|
|
|
err = json.NewDecoder(resp.Body).Decode(&ate)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
@ -253,6 +247,12 @@ func testNewACLs(ctx context.Context, tailnet, apiKey, policyFname string) error
|
|
|
|
return ate
|
|
|
|
return ate
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
got := resp.StatusCode
|
|
|
|
|
|
|
|
want := http.StatusOK
|
|
|
|
|
|
|
|
if got != want {
|
|
|
|
|
|
|
|
return fmt.Errorf("wanted HTTP status code %d but got %d", want, got)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|