Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dustinlindquist/4d3268343bea5731e42282a16cdd0f46 to your computer and use it in GitHub Desktop.
Save dustinlindquist/4d3268343bea5731e42282a16cdd0f46 to your computer and use it in GitHub Desktop.
Test Failure after adding a case for setting graph.style.palette_flip = true
// Set with:
graph {
title = "Redis memory usage"
viz = "timeseries"
style {
palette_flip = true
}
}
//added matching step check:
resource.TestCheckResourceAttr("datadog_timeboard.acceptance_test", "graph.1.style.palette_flip", "true"),
output:
=== RUN TestAccDatadogTimeboard_update
--- FAIL: TestAccDatadogTimeboard_update (6.76s)
testing.go:434: Step 1 error: After applying this step, the plan was not empty:
DIFF:
UPDATE: datadog_timeboard.acceptance_test
graph.1.style.palette_flip: "true" => "1"
STATE:
datadog_timeboard.acceptance_test:
ID = 383803
description = Created using the Datadog provider in Terraform
graph.# = 2
graph.0.autoscale = false
graph.0.custom_unit =
graph.0.events.# = 0
graph.0.group.# = 0
graph.0.include_no_metric_hosts = false
graph.0.include_ungrouped_hosts = false
graph.0.marker.# = 0
graph.0.precision =
graph.0.request.# = 1
graph.0.request.0.aggregator =
graph.0.request.0.change_type =
graph.0.request.0.compare_to =
graph.0.request.0.conditional_format.# = 0
graph.0.request.0.extra_col =
graph.0.request.0.increase_good = false
graph.0.request.0.order_by =
graph.0.request.0.order_direction =
graph.0.request.0.q = avg:redis.info.latency_ms{$host}
graph.0.request.0.stacked = false
graph.0.request.0.style.% = 0
graph.0.request.0.type = line
graph.0.scope.# = 0
graph.0.style.% = 0
graph.0.text_align =
graph.0.title = Redis latency (ms)
graph.0.viz = timeseries
graph.0.yaxis.% = 0
graph.1.autoscale = false
graph.1.custom_unit =
graph.1.events.# = 0
graph.1.group.# = 0
graph.1.include_no_metric_hosts = false
graph.1.include_ungrouped_hosts = false
graph.1.marker.# = 0
graph.1.precision =
graph.1.request.# = 3
graph.1.request.0.aggregator = sum
graph.1.request.0.change_type =
graph.1.request.0.compare_to =
graph.1.request.0.conditional_format.# = 0
graph.1.request.0.extra_col =
graph.1.request.0.increase_good = false
graph.1.request.0.order_by =
graph.1.request.0.order_direction =
graph.1.request.0.q = avg:redis.mem.used{$host} - avg:redis.mem.lua{$host}, avg:redis.mem.lua{$host}
graph.1.request.0.stacked = true
graph.1.request.0.style.% = 0
graph.1.request.0.type = line
graph.1.request.1.aggregator =
graph.1.request.1.change_type =
graph.1.request.1.compare_to =
graph.1.request.1.conditional_format.# = 0
graph.1.request.1.extra_col =
graph.1.request.1.increase_good = false
graph.1.request.1.order_by =
graph.1.request.1.order_direction =
graph.1.request.1.q = avg:redis.mem.rss{$host}
graph.1.request.1.stacked = false
graph.1.request.1.style.% = 0
graph.1.request.1.type = line
graph.1.request.2.aggregator = max
graph.1.request.2.change_type =
graph.1.request.2.compare_to =
graph.1.request.2.conditional_format.# = 0
graph.1.request.2.extra_col =
graph.1.request.2.increase_good = false
graph.1.request.2.order_by =
graph.1.request.2.order_direction =
graph.1.request.2.q = avg:redis.mem.rss{$host}
graph.1.request.2.stacked = false
graph.1.request.2.style.% = 1
graph.1.request.2.style.palette = warm
graph.1.request.2.type = bars
graph.1.scope.# = 0
graph.1.style.% = 1
graph.1.style.palette_flip = true
graph.1.text_align =
graph.1.title = Redis memory usage
graph.1.viz = timeseries
graph.1.yaxis.% = 0
read_only = false
template_variable.# = 1
template_variable.0.default =
template_variable.0.name = host
template_variable.0.prefix = host
title = Acceptance Test Timeboard
FAIL
exit status 1
FAIL github.com/terraform-providers/terraform-provider-datadog/datadog 6.782s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment