Skip to content

Commit ec70660

Browse files
copejonclaudecoderabbitai[bot]
committed
remove IPv4-only regex from metrics scrape test
The Scrape Metrics From keyword validated the endpoint IP with an IPv4-only regex, which would reject IPv6 addresses and break IPv6-only CI. The jsonpath already returns a valid IP string from the Kubernetes API; the regex was unnecessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-Authored-By: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 7aa09ac commit ec70660

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

test/suites/optional/metrics.robot

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ Scrape Metrics From
114114
... ${METRICS_NS}
115115
... ${metrics_service}
116116
... .subsets[0].addresses[0].ip
117-
${ep_ip}= Get Regexp Matches ${ep_ip} \\d+\\.\\d+\\.\\d+\\.\\d+
118-
Length Should Be ${ep_ip} 1
119-
VAR ${ep_ip}= ${ep_ip}[0]
120117
VAR ${svc_host}= ${metrics_service}.${METRICS_NS}.svc
121118
${stdout}= Command Should Work
122119
... curl -s --resolve ${svc_host}:${port}:${ep_ip} --cacert ${SERVICE_CA} --cert ${CLIENT_CERT} --key ${CLIENT_KEY} https://${svc_host}:${port}/metrics

0 commit comments

Comments
 (0)