diff --git a/service_test.go b/service_test.go index f0676a6f9..68fb8eb5a 100644 --- a/service_test.go +++ b/service_test.go @@ -293,32 +293,6 @@ func TestRebacAdminApi(t *testing.T) { c.Assert(response.StatusCode, qt.Equals, 200) } -func TestRebacEntitlementsApi(t *testing.T) { - c := qt.New(t) - - _, _, cofgaParams, err := jimmtest.SetupTestOFGAClient(c.Name()) - c.Assert(err, qt.IsNil) - - p := jimmtest.NewTestJimmParams(c) - p.InsecureSecretStorage = true - p.OpenFGAParams = cofgaParamsToJIMMOpenFGAParams(*cofgaParams) - - svc, err := jimm.NewService(context.Background(), p) - c.Assert(err, qt.IsNil) - defer svc.Cleanup() - - srv := httptest.NewTLSServer(svc) - c.Cleanup(srv.Close) - - response, err := srv.Client().Get(srv.URL + "/rebac/v1/entitlements") - c.Assert(err, qt.IsNil) - c.Assert(response.StatusCode, qt.Equals, 200) - - responseRaw, err := srv.Client().Get(srv.URL + "/rebac/v1/entitlements/raw") - c.Assert(err, qt.IsNil) - c.Assert(responseRaw.StatusCode, qt.Equals, 200) -} - func TestThirdPartyCaveatDischarge(t *testing.T) { c := qt.New(t)