Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
platinummonkey committed Aug 9, 2019
1 parent 2c4264b commit 3444a4c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions datadog/resource_datadog_service_level_objective_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ resource "datadog_service_level_objective" "foo" {
thresholds = [
{
timeframe = "7d"
slo = 99.5
target = 99.5
warning = 99.8
},
{
timeframe = "30d"
slo = 99
target = 99
}
]
Expand All @@ -50,12 +50,12 @@ resource "datadog_service_level_objective" "foo" {
thresholds = [
{
timeframe = "7d"
slo = 99.5
target = 99.5
warning = 99.8
},
{
timeframe = "30d"
slo = 98
target = 98
}
]
Expand Down Expand Up @@ -91,13 +91,13 @@ func TestAccDatadogServiceLevelObjective_Basic(t *testing.T) {
resource.TestCheckResourceAttr(
"datadog_service_level_objective.foo", "thresholds.0.timeframe", "7d"),
resource.TestCheckResourceAttr(
"datadog_service_level_objective.foo", "thresholds.0.slo", "99.5"),
"datadog_service_level_objective.foo", "thresholds.0.target", "99.5"),
resource.TestCheckResourceAttr(
"datadog_service_level_objective.foo", "thresholds.0.warning", "99.8"),
resource.TestCheckResourceAttr(
"datadog_service_level_objective.foo", "thresholds.1.timeframe", "30d"),
resource.TestCheckResourceAttr(
"datadog_service_level_objective.foo", "thresholds.1.slo", "99"),
"datadog_service_level_objective.foo", "thresholds.1.target", "99"),
// Tags are a TypeSet => use a weird way to access members by their hash
// TF TypeSet is internally represented as a map that maps computed hashes
// to actual values. Since the hashes are always the same for one value,
Expand Down Expand Up @@ -130,13 +130,13 @@ func TestAccDatadogServiceLevelObjective_Basic(t *testing.T) {
resource.TestCheckResourceAttr(
"datadog_service_level_objective.foo", "thresholds.0.timeframe", "7d"),
resource.TestCheckResourceAttr(
"datadog_service_level_objective.foo", "thresholds.0.slo", "99.5"),
"datadog_service_level_objective.foo", "thresholds.0.target", "99.5"),
resource.TestCheckResourceAttr(
"datadog_service_level_objective.foo", "thresholds.0.warning", "99.8"),
resource.TestCheckResourceAttr(
"datadog_service_level_objective.foo", "thresholds.1.timeframe", "30d"),
resource.TestCheckResourceAttr(
"datadog_service_level_objective.foo", "thresholds.1.slo", "98"),
"datadog_service_level_objective.foo", "thresholds.1.target", "98"),
// Tags are a TypeSet => use a weird way to access members by their hash
// TF TypeSet is internally represented as a map that maps computed hashes
// to actual values. Since the hashes are always the same for one value,
Expand Down

0 comments on commit 3444a4c

Please sign in to comment.