Skip to content

Commit

Permalink
add namespace=kube-system to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoBrigitte committed Dec 20, 2024
1 parent 1b22ecc commit 4f61a31
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ tests:
- interval: 1m
input_series:
# For the first 60min: test with 1 pod: none, up, down
- series: 'up{container="promtail", cluster_id="gauss", cluster_type="management_cluster", installation="gauss", pod="promtail-1xxxx", provider="aws", pipeline="testing"}'
- series: 'up{container="promtail", cluster_id="gauss", cluster_type="management_cluster", installation="gauss", namespace="kube-system", pod="promtail-1xxxx", provider="aws", pipeline="testing"}'
values: "_x20 1+0x20 0+0x40"
- series: kube_pod_info{cluster_id="gauss", cluster_type="management_cluster", installation="gauss", pod="promtail-1xxxx", node="ip-10-0-5-1.eu-west-1.compute.internal", provider="aws", pipeline="testing"}
- series: kube_pod_info{cluster_id="gauss", cluster_type="management_cluster", installation="gauss", namespace="kube-system", pod="promtail-1xxxx", node="ip-10-0-5-1.eu-west-1.compute.internal", provider="aws", pipeline="testing"}
values: "1x180"
# From 60min: test with 2 pods: 1 up and 1 down, 2 up, 2 down.
- series: 'up{container="promtail", cluster_id="gauss", cluster_type="management_cluster", installation="gauss", pod="promtail-2xxxx", provider="aws", pipeline="testing"}'
- series: 'up{container="promtail", cluster_id="gauss", cluster_type="management_cluster", installation="gauss", namespace="kube-system", pod="promtail-2xxxx", provider="aws", pipeline="testing"}'
values: "_x80 1+0x40 1+0x20 0+0x40"
- series: kube_pod_info{cluster_id="gauss", cluster_type="management_cluster", installation="gauss", pod="promtail-2xxxx", node="ip-10-0-5-2.eu-west-1.compute.internal", provider="aws", pipeline="testing"}
- series: kube_pod_info{cluster_id="gauss", cluster_type="management_cluster", installation="gauss", namespace="kube-system", pod="promtail-2xxxx", node="ip-10-0-5-2.eu-west-1.compute.internal", provider="aws", pipeline="testing"}
values: "1x180"
- series: 'up{container="promtail", cluster_type="management_cluster", cluster_id="gauss", installation="gauss", pod="promtail-3xxxx", provider="aws", pipeline="testing"}'
- series: 'up{container="promtail", cluster_type="management_cluster", cluster_id="gauss", installation="gauss", namespace="kube-system", pod="promtail-3xxxx", provider="aws", pipeline="testing"}'
values: "_x80 0+0x40 1+0x20 0+0x40"
- series: kube_pod_info{cluster_id="gauss", cluster_type="management_cluster", installation="gauss", pod="promtail-3xxxx", node="ip-10-0-5-3.eu-west-1.compute.internal", provider="aws", pipeline="testing"}
- series: kube_pod_info{cluster_id="gauss", cluster_type="management_cluster", installation="gauss", namespace="kube-system", pod="promtail-3xxxx", node="ip-10-0-5-3.eu-west-1.compute.internal", provider="aws", pipeline="testing"}
values: "1x180"
alert_rule_test:
- alertname: PromtailDown
Expand All @@ -38,6 +38,7 @@ tests:
cluster_id: gauss
cluster_type: management_cluster
installation: gauss
namespace: kube-system
node: ip-10-0-5-1.eu-west-1.compute.internal
pipeline: testing
pod: promtail-1xxxx
Expand All @@ -63,6 +64,7 @@ tests:
cluster_id: gauss
cluster_type: management_cluster
installation: gauss
namespace: kube-system
node: ip-10-0-5-3.eu-west-1.compute.internal
pipeline: testing
pod: promtail-3xxxx
Expand All @@ -89,6 +91,7 @@ tests:
cluster_id: gauss
cluster_type: management_cluster
installation: gauss
namespace: kube-system
node: ip-10-0-5-2.eu-west-1.compute.internal
pipeline: testing
pod: promtail-2xxxx
Expand All @@ -110,6 +113,7 @@ tests:
cluster_id: gauss
cluster_type: management_cluster
installation: gauss
namespace: kube-system
node: ip-10-0-5-3.eu-west-1.compute.internal
pipeline: testing
pod: promtail-3xxxx
Expand Down

0 comments on commit 4f61a31

Please sign in to comment.