Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
assafad1 committed Oct 22, 2024
1 parent f868060 commit 04c3b49
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion kuttl-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ testDirs:
- tests/integration/prometheusrules
- tests/integration/alertmangerconfigs
namespace: default
timeout: 60
timeout: 120
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ metadata:
app.coralogix.com/track-recording-rules: "true"
app.coralogix.com/track-alerting-rules: "true"
app.coralogix.com/managed-by-alertmanger-config: "true"
name: prometheus-example-rules
name: prometheus-example-rules-test
spec:
groups:
- name: example.rules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ metadata:
- alert.coralogix.com/finalizer
labels:
app.coralogix.com/managed-by-alertmanger-config: "true"
app.kubernetes.io/managed-by: prometheus-example-rules
name: prometheus-example-rules-app-latency-0
app.kubernetes.io/managed-by: prometheus-example-rules-test
name: prometheus-example-rules-test-app-latency-0
namespace: default
ownerReferences:
- apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
name: prometheus-example-rules
name: prometheus-example-rules-test
spec:
active: true
alertType:
Expand Down Expand Up @@ -51,13 +51,13 @@ metadata:
- alert.coralogix.com/finalizer
labels:
app.coralogix.com/managed-by-alertmanger-config: "true"
app.kubernetes.io/managed-by: prometheus-example-rules
name: prometheus-example-rules-app-latency-1
app.kubernetes.io/managed-by: prometheus-example-rules-test
name: prometheus-example-rules-test-app-latency-1
namespace: default
ownerReferences:
- apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
name: prometheus-example-rules
name: prometheus-example-rules-test
spec:
active: true
alertType:
Expand Down Expand Up @@ -103,13 +103,13 @@ metadata:
- alert.coralogix.com/finalizer
labels:
app.coralogix.com/managed-by-alertmanger-config: "true"
app.kubernetes.io/managed-by: prometheus-example-rules
name: prometheus-example-rules-app-latency-2
app.kubernetes.io/managed-by: prometheus-example-rules-test
name: prometheus-example-rules-test-app-latency-2
namespace: default
ownerReferences:
- apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
name: prometheus-example-rules
name: prometheus-example-rules-test
spec:
active: true
alertType:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ metadata:
- alert.coralogix.com/finalizer
labels:
app.coralogix.com/managed-by-alertmanger-config: "true"
app.kubernetes.io/managed-by: prometheus-example-rules
name: prometheus-example-rules-app-latency-0
app.kubernetes.io/managed-by: prometheus-example-rules-test
name: prometheus-example-rules-test-app-latency-0
namespace: default
ownerReferences:
- apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
name: prometheus-example-rules
name: prometheus-example-rules-test
spec:
active: true
alertType:
Expand Down Expand Up @@ -51,13 +51,13 @@ metadata:
- alert.coralogix.com/finalizer
labels:
app.coralogix.com/managed-by-alertmanger-config: "true"
app.kubernetes.io/managed-by: prometheus-example-rules
name: prometheus-example-rules-app-latency-1
app.kubernetes.io/managed-by: prometheus-example-rules-test
name: prometheus-example-rules-test-app-latency-1
namespace: default
ownerReferences:
- apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
name: prometheus-example-rules
name: prometheus-example-rules-test
spec:
active: true
alertType:
Expand Down Expand Up @@ -98,13 +98,13 @@ metadata:
- alert.coralogix.com/finalizer
labels:
app.coralogix.com/managed-by-alertmanger-config: "true"
app.kubernetes.io/managed-by: prometheus-example-rules
name: prometheus-example-rules-app-latency-2
app.kubernetes.io/managed-by: prometheus-example-rules-test
name: prometheus-example-rules-test-app-latency-2
namespace: default
ownerReferences:
- apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
name: prometheus-example-rules
name: prometheus-example-rules-test
spec:
active: true
alertType:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: prometheus-example-rules
name: prometheus-example-rules-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 120

0 comments on commit 04c3b49

Please sign in to comment.