Skip to content

Commit 2668696

Browse files
committed
chore: integration: add tests for __raw_url__handling
1 parent cb760ff commit 2668696

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

integration/integration_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ func TestSMK6(t *testing.T) {
156156
"error": {"probe_http_info"},
157157
"expected_response": {"probe_http_got_expected_response"},
158158
"group": {},
159+
"__raw_url__": {},
159160
}
160161

161162
for _, mf := range mfs {
@@ -319,6 +320,12 @@ func TestSMK6(t *testing.T) {
319320
metricLabels: map[string]string{"tls_version": "1.3", "url": "https://test-api.k6.io/public/crocodiles/"},
320321
assertValue: any, // Just fail if not present.
321322
},
323+
{
324+
name: "__raw_url__ overrides url",
325+
metricName: "probe_http_requests_total",
326+
metricLabels: map[string]string{"url": "foobar"},
327+
assertValue: equals(1),
328+
},
322329
} {
323330
tc := tc
324331
t.Run(tc.name, func(t *testing.T) {

0 commit comments

Comments
 (0)