Skip to content

Commit

Permalink
Update resource dashboard test and go version
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-snow committed Mar 1, 2024
1 parent f5f8fa8 commit e4737ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.91.4
1.91.5

13 changes: 13 additions & 0 deletions lightstep/resource_dashboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,19 @@ func TestDisplayTypeOptions(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "group.0.chart.0.query.0.display_type_options.0.sort_direction", "asc"),
),
},
{
Config: makeDisplayTypeConfig("pie", strings.TrimSpace(`
display_type_options {
is_donut = true
}
`)),
Check: resource.ComposeTestCheckFunc(
testAccCheckMetricDashboardExists(resourceName, &dashboard),
resource.TestCheckResourceAttr(resourceName, "dashboard_name", "test display_type_options"),
resource.TestCheckResourceAttr(resourceName, "group.0.chart.0.query.0.display", "pie"),
resource.TestCheckResourceAttr(resourceName, "group.0.chart.0.query.0.display_type_options.0.is_donut", "true"),
),
},
{
Config: makeDisplayTypeConfig("table", strings.TrimSpace(`
display_type_options {
Expand Down

0 comments on commit e4737ce

Please sign in to comment.