diff --git a/charts/nri-prometheus/tests/configmap_test.yaml b/charts/nri-prometheus/tests/configmap_test.yaml index 78a12726..ae7d921f 100644 --- a/charts/nri-prometheus/tests/configmap_test.yaml +++ b/charts/nri-prometheus/tests/configmap_test.yaml @@ -9,7 +9,7 @@ tests: cluster: my-cluster-name asserts: - equal: - path: data.config\.yaml + path: data["config.yaml"] value: |- cluster_name: my-cluster-name audit: false @@ -28,7 +28,7 @@ tests: lowDataMode: true asserts: - equal: - path: data.config\.yaml + path: data["config.yaml"] value: |- cluster_name: my-cluster-name audit: false @@ -61,7 +61,7 @@ tests: container_name: containerName asserts: - equal: - path: data.config\.yaml + path: data["config.yaml"] value: |- cluster_name: my-cluster-name audit: false diff --git a/charts/nri-prometheus/tests/deployment_test.yaml b/charts/nri-prometheus/tests/deployment_test.yaml index 3c280b55..cb6f9034 100644 --- a/charts/nri-prometheus/tests/deployment_test.yaml +++ b/charts/nri-prometheus/tests/deployment_test.yaml @@ -13,11 +13,11 @@ tests: cluster: test asserts: - equal: - path: spec.template.metadata.labels.[app.kubernetes.io/instance] + path: spec.template.metadata.labels["app.kubernetes.io/instance"] value: release template: templates/deployment.yaml - equal: - path: spec.template.metadata.labels.[app.kubernetes.io/name] + path: spec.template.metadata.labels["app.kubernetes.io/name"] value: nri-prometheus template: templates/deployment.yaml - equal: @@ -26,7 +26,7 @@ tests: app.kubernetes.io/name: nri-prometheus template: templates/deployment.yaml - isNotEmpty: - path: spec.template.metadata.annotations.[checksum/config] + path: spec.template.metadata.annotations["checksum/config"] template: templates/deployment.yaml - it: adds METRIC_API_URL when nrStaging is true. diff --git a/charts/nri-prometheus/tests/labels_test.yaml b/charts/nri-prometheus/tests/labels_test.yaml index 3f9f29a2..2b6cb53b 100644 --- a/charts/nri-prometheus/tests/labels_test.yaml +++ b/charts/nri-prometheus/tests/labels_test.yaml @@ -18,15 +18,15 @@ tests: cluster: test asserts: - equal: - path: metadata.labels.[app.kubernetes.io/instance] + path: metadata.labels["app.kubernetes.io/instance"] value: release - equal: - path: metadata.labels.[app.kubernetes.io/managed-by] + path: metadata.labels["app.kubernetes.io/managed-by"] value: Helm - equal: - path: metadata.labels.[app.kubernetes.io/name] + path: metadata.labels["app.kubernetes.io/name"] value: nri-prometheus - isNotEmpty: - path: metadata.labels.[app.kubernetes.io/version] + path: metadata.labels["app.kubernetes.io/version"] - isNotEmpty: - path: metadata.labels.[helm.sh/chart] + path: metadata.labels["helm.sh/chart"]