Skip to content

Commit 610ed54

Browse files
committed
test/metrics: Fix missing cleanup
Signed-off-by: Stéphane Graber <[email protected]>
1 parent 8251329 commit 610ed54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/suites/metrics.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@ test_metrics() {
5353
curl -k -s -X GET "https://${metrics_addr}/1.0/metrics" | grep "incus_cpu_effective_total" | grep "type=\"container\""
5454

5555
incus delete -f c1 c2
56+
incus config unset core.metrics_authentication
57+
58+
METRICS_FINGERPRINT="$(incus config trust list --format csv --columns cf | grep -F metrics.local | cut -d, -f2)"
59+
incus config trust remove "${METRICS_FINGERPRINT}"
5660
}

0 commit comments

Comments
 (0)