Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto committed Jul 22, 2024
1 parent 3d89f93 commit b89244b
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b89244b

Please sign in to comment.