Skip to content

Commit

Permalink
fix flaky static converter test (#5247)
Browse files Browse the repository at this point in the history
* fix flaky testing

Signed-off-by: erikbaranowski <[email protected]>

* shuffle windows test output order to match

---------

Signed-off-by: erikbaranowski <[email protected]>
  • Loading branch information
erikbaranowski authored Sep 19, 2023
1 parent 23dfab9 commit 9a3162f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 21 deletions.
13 changes: 0 additions & 13 deletions converter/internal/staticconvert/testdata/prom_scrape.river
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,5 @@ http {
key_file = "./testdata/example-key.pem"
client_ca_file = "./testdata/example-cert.pem"
client_auth_type = "VerifyClientCertIfGiven"

windows_certificate_filter {
server {
store = "something"
refresh_interval = "0s"
}

client {
issuer_common_names = ["1"]
subject_regex = "2"
template_id = "something2"
}
}
}
}
8 changes: 0 additions & 8 deletions converter/internal/staticconvert/testdata/prom_scrape.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ server:
cert_file: "./testdata/example-cert.pem"
key_file: "./testdata/example-key.pem"
client_auth_type: "VerifyClientCertIfGiven"
windows_certificate_filter:
server:
store: "something"
client:
issuer_common_names:
- "1"
subject_regex: "2"
template_id: "something2"

metrics:
wal_directory: /home/pi/Projects/agent/agentwal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
logging {
level = "debug"
format = "json"
}

http {
tls {
client_auth_type = "VerifyClientCertIfGiven"

windows_certificate_filter {
server {
store = "something"
refresh_interval = "0s"
}

client {
issuer_common_names = ["1"]
subject_regex = "2"
template_id = "something2"
}
}
}
}

prometheus.exporter.windows "integrations_windows_exporter" {
enabled_collectors = ["cpu", "cs", "logical_disk", "net", "os", "service", "system"]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
server:
log_level: debug
log_format: json
http_tls_config:
client_auth_type: "VerifyClientCertIfGiven"
windows_certificate_filter:
server:
store: "something"
client:
issuer_common_names:
- "1"
subject_regex: "2"
template_id: "something2"

metrics:
global:
remote_write:
Expand Down

0 comments on commit 9a3162f

Please sign in to comment.