Add test case for default regex explicitly provided

Signed-off-by: Liam Howe <liam.howe@maersk.com>
This commit is contained in:
Liam Howe 2024-05-06 15:40:28 +02:00
parent 5d97f17ff1
commit 35d897ced4

View File

@ -874,6 +874,16 @@ separator: ;
target_label: __meta_kubernetes_pod_container_port_number
replacement: $1
action: keepequal
`,
},
{
name: "Default regex provided",
inputYaml: `source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_port]
separator: ;
regex: (.*)
target_label: __meta_kubernetes_pod_container_port_number
replacement: $1
action: replace
`,
},
}