-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #985 We used to run that test in Cloud but we don't anymore. We don't need to do funny grafana_user business This test was flaky because it sometimes passed due to parallelism with other tests
- Loading branch information
1 parent
0c9a8ea
commit cd23418
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,14 +32,21 @@ resource "grafana_data_source" "foo" { | |
}) | ||
} | ||
resource "grafana_user" "user" { | ||
name = "test-ds-permissions" | ||
email = "[email protected]" | ||
login = "test-ds-permissions" | ||
password = "hunter2" | ||
} | ||
resource "grafana_data_source_permission" "fooPermissions" { | ||
datasource_id = grafana_data_source.foo.id | ||
permissions { | ||
team_id = grafana_team.team.id | ||
permission = "Query" | ||
} | ||
permissions { | ||
user_id = 3 // 3 is the admin user in cloud. It can't be queried | ||
user_id = grafana_user.user.id | ||
permission = "Edit" | ||
} | ||
permissions { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,21 @@ resource "grafana_data_source" "foo" { | |
}) | ||
} | ||
|
||
resource "grafana_user" "user" { | ||
name = "test-ds-permissions" | ||
email = "[email protected]" | ||
login = "test-ds-permissions" | ||
password = "hunter2" | ||
} | ||
|
||
resource "grafana_data_source_permission" "fooPermissions" { | ||
datasource_id = grafana_data_source.foo.id | ||
permissions { | ||
team_id = grafana_team.team.id | ||
permission = "Query" | ||
} | ||
permissions { | ||
user_id = 3 // 3 is the admin user in cloud. It can't be queried | ||
user_id = grafana_user.user.id | ||
permission = "Edit" | ||
} | ||
permissions { | ||
|