Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
andriikushch committed May 10, 2024
1 parent 843bb1c commit 0606624
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/component/prometheus/exporter/cloudwatch/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ static "super_ec2_instance_id" {
const discoveryJobConfig = `
sts_region = "us-east-2"
debug = true
discovery_exported_tags = { "sqs" = ["name"] }
discovery_exported_tags = { "AWS/SQS" = ["name"] }
discovery {
type = "sqs"
type = "AWS/SQS"
regions = ["us-east-2"]
search_tags = {
"scrape" = "true",
Expand Down Expand Up @@ -144,9 +144,9 @@ static "super_ec2_instance_id" {
const discoveryJobNilToZeroConfig = `
sts_region = "us-east-2"
debug = true
discovery_exported_tags = { "sqs" = ["name"] }
discovery_exported_tags = { "AWS/SQS" = ["name"] }
discovery {
type = "sqs"
type = "AWS/SQS"
regions = ["us-east-2"]
search_tags = {
"scrape" = "true",
Expand Down Expand Up @@ -231,7 +231,7 @@ func TestCloudwatchComponentConfig(t *testing.T) {
// assert an empty role is used as default. IMPORTANT since this
// is what YACE looks for delegating to the environment role
Roles: []yaceModel.Role{{}},
Type: "sqs",
Type: "AWS/SQS",
SearchTags: []yaceModel.SearchTag{{
Key: "scrape", Value: regexp.MustCompile("true"),
}},
Expand Down Expand Up @@ -424,7 +424,7 @@ func TestCloudwatchComponentConfig(t *testing.T) {
// assert an empty role is used as default. IMPORTANT since this
// is what YACE looks for delegating to the environment role
Roles: []yaceModel.Role{{}},
Type: "sqs",
Type: "AWS/SQS",
SearchTags: []yaceModel.SearchTag{{
Key: "scrape", Value: regexp.MustCompile("true"),
}},
Expand Down

0 comments on commit 0606624

Please sign in to comment.