Skip to content

Commit

Permalink
alerts: remove tests using matchon filter (#219)
Browse files Browse the repository at this point in the history
* remove tests using matchon filter

* increment version
  • Loading branch information
mattcarmody authored Apr 3, 2024
1 parent 2536ce5 commit df55e0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.93.0
1.93.1

23 changes: 0 additions & 23 deletions lightstep/resource_metric_condition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ resource "lightstep_metric_condition" "test" {
alerting_rule {
id = lightstep_slack_destination.slack.id
update_interval = "1h"
include_filters = [
{
key = "project_name"
value = "catlab"
}
]
}
}
`
Expand Down Expand Up @@ -182,13 +175,6 @@ resource "lightstep_metric_condition" "test" {
alerting_rule {
id = lightstep_slack_destination.slack.id
update_interval = "1h"
include_filters = [
{
key = "project_name"
value = "catlab"
}
]
}
}
`
Expand Down Expand Up @@ -328,10 +314,6 @@ resource "lightstep_metric_condition" "test" {
resource.TestCheckResourceAttr(resourceName, "custom_data", ""),
resource.TestCheckResourceAttr(resourceName, "metric_query.0.timeseries_operator_input_window_ms", "3600000"),
resource.TestCheckResourceAttr(resourceName, "metric_query.0.tql", ""),
resource.TestCheckTypeSetElemNestedAttrs(resourceName, "alerting_rule.*", map[string]string{
"include_filters.0.key": "project_name",
"include_filters.0.value": "catlab",
}),
resource.TestCheckResourceAttr(resourceName, "expression.0.is_no_data", "true"),
),
},
Expand Down Expand Up @@ -894,11 +876,6 @@ EOT
alerting_rule {
id = lightstep_slack_destination.slack.id
update_interval = "1h"
include_filters = [{
key = "project_name"
value = "catlab"
}]
}
}
`, uqlQuery)
Expand Down

0 comments on commit df55e0a

Please sign in to comment.