Authz: fix snapshot tests legacy guardian (#73823)

* Guardian: remove unused dependencies

* API: rewrite tests to use access control guardian
This commit is contained in:
Karl Persson
2023-08-28 09:49:10 +02:00
committed by GitHub
parent 372f32963d
commit 01d98114b9
9 changed files with 163 additions and 261 deletions
-5
View File
@@ -285,11 +285,6 @@ func SetupAPITestServer(t *testing.T, opts ...APITestServerOption) *webtest.Serv
return s
}
var (
viewerRole = org.RoleViewer
editorRole = org.RoleEditor
)
type mockSearchService struct{ ExpectedResult model.HitList }
func (mss *mockSearchService) SearchHandler(_ context.Context, q *search.Query) (model.HitList, error) {