RBAC: Add actionsets struct and write path (#86108)
* Add actionsets struct and failing test
* update from review
* review comments
* review comments update
* refactor: create interface
* actionset service
* fix tests
* move from wireoss to wire
* Apply suggestions from code review
remove unnecessary comments
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
* nil for the actionsetservice
* Revert "nil for the actionsetservice"
This reverts commit e3d3cc8171.
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
This commit is contained in:
@@ -668,8 +668,9 @@ func TestIntegrationPrometheusRulesPermissions(t *testing.T) {
|
||||
|
||||
apiClient := newAlertingApiClient(grafanaListedAddr, "grafana", "password")
|
||||
|
||||
asService := resourcepermissions.NewActionSetService()
|
||||
// access control permissions store
|
||||
permissionsStore := resourcepermissions.NewStore(env.SQLStore, featuremgmt.WithFeatures())
|
||||
permissionsStore := resourcepermissions.NewStore(env.SQLStore, featuremgmt.WithFeatures(), &asService)
|
||||
|
||||
// Create the namespace we'll save our alerts to.
|
||||
apiClient.CreateFolder(t, "folder1", "folder1")
|
||||
|
||||
Reference in New Issue
Block a user