diff options
author | Rasmus Dahlberg <rgdd@glasklarteknik.se> | 2025-01-18 13:39:40 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rgdd@glasklarteknik.se> | 2025-01-18 16:34:14 +0100 |
commit | 8a17817c61f14a727a1017a5bcd4b1ea82964528 (patch) | |
tree | ec0fa96bfc683e906413106f2db2b99d710dc389 /integration | |
parent | 2d3b1f2cb0c05385c1702f1a7d74fa08d52c262f (diff) |
prometheus: Refine based on input from anarcatmain
https://gitlab.torproject.org/tpo/tpa/team/-/issues/40677
Diffstat (limited to 'integration')
-rwxr-xr-x | integration/smoke-test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integration/smoke-test b/integration/smoke-test index a128592..dacecd0 100755 --- a/integration/smoke-test +++ b/integration/smoke-test @@ -86,7 +86,7 @@ next_domain=$(go run github.com/google/certificate-transparency-go/client/ctclie config "$next_domain" "$remove_keys" >"$dir/config.json" timeout 10s go run ../cmd/silentct-mon -c "$dir/config.json" -d "$dir/state" -C "dev:silentct" -p 1s -v DEBUG 2>&1 | tee "$dir/output.txt" grep -q -E '([1-9][0-9]*|[1-9] matches)' "$dir/output.txt" || die "expected at least one match" -grep -q -F '[NOTICE] certificate mis-issuance?' "$dir/output.txt" || die "expected notice about mis-issued certificate" +grep -q -F '[NOTICE] unexpected certificate:' "$dir/output.txt" || die "expected notice about unexpected certificate" pass "run the monitor and be warned of an unreported certificate" @@ -97,4 +97,4 @@ echo "---" >&2 echo "All smoke tests passed" >&2 echo "For interactive tests:" >&2 echo "go run ../cmd/silentct-mon -c "$dir/config.json" -d "$dir/state" -C "dev:silentct" -p 15s -m localhost:8080 -v DEBUG" >&2 -echo "ALERT_BACKLOG=0 ALERT_FRESHNESS=0 ../scripts/silentct-check" >&2 +echo "ALERT_BACKLOG=0 ALERT_FRESHNESS=0 ../contrib/silentct-check" >&2 |