IAM: Implement update method in team API (#111660)

* implement team update in legacy store

* add unit tests

* add integration test

* set permissions for user in integration tests

* add more integration tests for update

* update validations

* add unit tests for ValidateOnUpdate() func

* fix integration test
This commit is contained in:
Mihai Doarna
2025-10-03 12:48:38 +03:00
committed by GitHub
parent 76d467f285
commit 0f60e2208e
13 changed files with 484 additions and 7 deletions
@@ -0,0 +1,7 @@
UPDATE `grafana`.`team`
SET name = 'Team 1',
updated = '2023-01-01 12:00:00',
email = 'team1@example.com',
is_provisioned = TRUE,
external_uid = 'team-1-uid'
WHERE uid = 'team-1'
@@ -0,0 +1,7 @@
UPDATE "grafana"."team"
SET name = 'Team 1',
updated = '2023-01-01 12:00:00',
email = 'team1@example.com',
is_provisioned = TRUE,
external_uid = 'team-1-uid'
WHERE uid = 'team-1'
@@ -0,0 +1,7 @@
UPDATE "grafana"."team"
SET name = 'Team 1',
updated = '2023-01-01 12:00:00',
email = 'team1@example.com',
is_provisioned = TRUE,
external_uid = 'team-1-uid'
WHERE uid = 'team-1'