ExtSvcAccounts: FIX prevent service account deletion (#84502)

* ExtSvcAccounts: Fix External Service Accounts Login check

Co-authored-by: Karl Persson <kalle.persson@grafana.com>

* Remove service accounts assignments and permissions on delete

* Fix first set of tests

* Fix second batch of tests

* Fix third batch of tests

---------

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
This commit is contained in:
Gabriel MABILLE
2024-03-14 19:11:02 +01:00
committed by GitHub
co-authored by Karl Persson
parent 827860d459
commit 2795f9827a
10 changed files with 77 additions and 62 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ const (
ServiceAccounts AuthProvider = "ServiceAccounts"
// TmpOrgID is the orgID we use while global service accounts are not supported.
TmpOrgID int64 = 1
TmpOrgIDStr string = "1"
TmpOrgID int64 = 1
)
type AuthProvider string