File tree Expand file tree Collapse file tree 14 files changed +66
-66
lines changed
grafana_builtin_role_assignment
grafana_team_external_group Expand file tree Collapse file tree 14 files changed +66
-66
lines changed Original file line number Diff line number Diff line change 11resource "grafana_cloud_stack" "test" {
2- name = " gcloudstacktest"
3- slug = " gcloudstacktest"
2+ name = " gcloudstacktest"
3+ slug = " gcloudstacktest"
44 region_slug = " eu"
55 description = " Test Grafana Cloud Stack"
66}
Original file line number Diff line number Diff line change 11resource "grafana_dashboard" "test_bad_inputs" {
2- config_json = jsonencode ({
3- id = 12345 ,
4- title = " Production Overview" ,
5- tags = [ " templated" ],
6- timezone = " browser" ,
7- schemaVersion = 16 ,
8- version = 0 ,
9- refresh = " 25s"
2+ config_json = jsonencode ({
3+ id = 12345 ,
4+ title = " Production Overview" ,
5+ tags = [" templated" ],
6+ timezone = " browser" ,
7+ schemaVersion = 16 ,
8+ version = 0 ,
9+ refresh = " 25s"
1010 })
1111}
1212
1313data "grafana_dashboard" "bad_from_uid_id" {
14- uid = grafana_dashboard. test_bad_inputs . id
15- dashboard_id = grafana_dashboard. test_bad_inputs . dashboard_id
14+ uid = grafana_dashboard. test_bad_inputs . id
15+ dashboard_id = grafana_dashboard. test_bad_inputs . dashboard_id
1616}
Original file line number Diff line number Diff line change 11resource "grafana_dashboard" "test" {
2- config_json = jsonencode ({
3- id = 12345 ,
4- title = " Production Overview" ,
5- tags = [ " templated" ],
6- timezone = " browser" ,
7- schemaVersion = 16 ,
8- version = 0 ,
9- refresh = " 25s"
2+ config_json = jsonencode ({
3+ id = 12345 ,
4+ title = " Production Overview" ,
5+ tags = [" templated" ],
6+ timezone = " browser" ,
7+ schemaVersion = 16 ,
8+ version = 0 ,
9+ refresh = " 25s"
1010 })
1111}
1212
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ resource "grafana_api_key" "foo" {
44}
55
66resource "grafana_api_key" "bar" {
7- name = " key_bar"
8- role = " Admin"
7+ name = " key_bar"
8+ role = " Admin"
99 seconds_to_live = 30
1010}
1111
1212
1313output "api_key_foo_key_only" {
14- value = grafana_api_key. foo . key
14+ value = grafana_api_key. foo . key
1515 sensitive = true
1616}
1717
Original file line number Diff line number Diff line change 11resource "grafana_builtin_role_assignment" "viewer" {
22 builtin_role = " Viewer"
33 roles {
4- uid = " firstuid"
4+ uid = " firstuid"
55 global = false
66 }
77 roles {
8- uid = " seconduid"
8+ uid = " seconduid"
99 global = true
1010 }
1111}
Original file line number Diff line number Diff line change 11resource "grafana_cloud_stack" "test" {
2- name = " gcloudstacktest"
3- slug = " gcloudstacktest"
2+ name = " gcloudstacktest"
3+ slug = " gcloudstacktest"
44 region_slug = " eu"
55 description = " Test Grafana Cloud Stack"
66}
Original file line number Diff line number Diff line change 33# computed fields.
44#
55resource "grafana_library_panel" "test" {
6- name = " basic"
7- folder_id = 0
8- model_json = jsonencode ({
9- title = " basic" ,
10- version = 34 ,
6+ name = " basic"
7+ folder_id = 0
8+ model_json = jsonencode ({
9+ title = " basic" ,
10+ version = 34 ,
1111 })
1212}
Original file line number Diff line number Diff line change 11# This is used to test that we can update _acc_basic.tf
22resource "grafana_library_panel" "test" {
3- name = " updated name"
4- model_json = jsonencode ({
5- title = " updated name" ,
6- id = 12 ,
7- version = 35
3+ name = " updated name"
4+ model_json = jsonencode ({
5+ title = " updated name" ,
6+ id = 12 ,
7+ version = 35
88 })
99}
Original file line number Diff line number Diff line change 22#
33# it a point to ensure explicit changes to `uid` are noticed.
44resource "grafana_library_panel" "test" {
5- name = " basic_update_uid"
6- folder_id = 0
7- model_json = jsonencode ({
5+ name = " basic_update_uid"
6+ folder_id = 0
7+ model_json = jsonencode ({
88 description = " basic_update_uid" ,
99 })
1010}
Original file line number Diff line number Diff line change 22# We'd like to ensure that using a computed configuration works.
33
44resource "grafana_library_panel" "test" {
5- name = " computed"
6- folder_id = 0
7- model_json = jsonencode ({
8- title = " computed"
9- id = 12 ,
10- version = 35
5+ name = " computed"
6+ folder_id = 0
7+ model_json = jsonencode ({
8+ title = " computed"
9+ id = 12 ,
10+ version = 35
1111 })
1212}
1313
1414resource "grafana_library_panel" "test-computed" {
15- name = " computed-uid"
16- folder_id = 0
17- model_json = jsonencode ({
15+ name = " computed-uid"
16+ folder_id = 0
17+ model_json = jsonencode ({
1818 title = " computed-uid"
1919 description = " test computed UID" ,
2020 type = " test" ,
You can’t perform that action at this time.
0 commit comments