Skip to content

Commit

Permalink
Fix flaky enterprise test (#1038)
Browse files Browse the repository at this point in the history
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
julienduchesne authored Sep 14, 2023
1 parent 0c9a8ea commit cd23418
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion docs/resources/data_source_permission.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cd23418

Please sign in to comment.