Skip to content

Commit

Permalink
Update asserts for tests to work on OCP 4.18 (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
IshwarKanse authored Dec 2, 2024
1 parent 1fb2623 commit c38d7fd
Show file tree
Hide file tree
Showing 60 changed files with 87 additions and 221 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ kind: Job
metadata:
name: generate-traces
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ kind: Job
metadata:
name: verify-traces-jaeger
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ kind: Job
metadata:
name: verify-traces-grafana
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ kind: Job
metadata:
name: verify-traces-grafana-ret
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ kind: Job
metadata:
name: verify-traces-jaeger-ret
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
config: |
receivers:
zipkin:
zipkin: {}
otlp:
protocols:
grpc:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
config: |
receivers:
zipkin:
zipkin: {}
otlp:
protocols:
grpc:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
mode: deployment
config: |
receivers:
zipkin:
zipkin: {}
processors:
exporters:
otlp:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ metadata:
name: verify-traces
namespace: chainsaw-otel-tempo-serverless
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ metadata:
name: verify-traces
namespace: chainsaw-tempo-serverless
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@ metadata:
name: generate-traces-grpc
namespace: chainsaw-replicas
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: generate-traces-http
namespace: chainsaw-replicas
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
16 changes: 4 additions & 12 deletions tests/e2e-openshift/component-replicas/verify-traces-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,28 @@ metadata:
name: verify-traces-grpc
namespace: chainsaw-replicas
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: verify-traces-traceql-grpc
namespace: chainsaw-replicas
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: verify-traces-http
namespace: chainsaw-replicas
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: verify-traces-traceql-http
namespace: chainsaw-replicas
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
4 changes: 2 additions & 2 deletions tests/e2e-openshift/monitoring-monolithic/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ spec:
try:
- apply:
file: verify-traces.yaml
- apply:
file: workload-monitoring-assert.yaml
- assert:
file: verify-traces-assert.yaml
- name: Check Tempo Monolithc metrics scraped by user workload monitoring
try:
- script:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: batch/v1
kind: Job
metadata:
name: verify-traces
status:
succeeded: 1
4 changes: 1 addition & 3 deletions tests/e2e-openshift/monitoring/04-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ kind: Job
metadata:
name: verify-traces
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ kind: Job
metadata:
name: generate-traces-grpc
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: generate-traces-http
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,25 @@ kind: Job
metadata:
name: verify-traces-jaegerui-grpc
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: verify-traces-traceql-grpc
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: verify-traces-jaegerui-http
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: verify-traces-traceql-http
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ kind: Job
metadata:
name: setup-hydra
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ kind: Job
metadata:
name: generate-traces
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ kind: Job
metadata:
name: verify-traces-traceql
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
4 changes: 2 additions & 2 deletions tests/e2e-openshift/monolithic-route/check-must-gather.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ REQUIRED_ITEMS=(
"*sha*/olm/clusterserviceversion-tempo-operator-*.yaml"
"*sha*/olm/operator-opentelemetry-product-openshift-opentelemetry-operator.yaml"
"*sha*/olm/operator-tempo-*-tempo-operator.yaml"
"*sha*/olm/subscription-tempo-operator-*-sub.yaml"
"*sha*/olm/subscription-tempo-*.yaml"
"*sha*/namespaces/chainsaw-mono-route/tempomonolithic/mono-route/tempomonolithic-mono-route.yaml"
"*sha*/namespaces/chainsaw-mono-route/tempomonolithic/mono-route/service-tempo-mono-route-jaegerui.yaml"
"*sha*/namespaces/chainsaw-mono-route/tempomonolithic/mono-route/configmap-tempo-mono-route-serving-cabundle.yaml"
Expand All @@ -38,4 +38,4 @@ for item in "${REQUIRED_ITEMS[@]}"; do
done

# Cleanup the must-gather directory
rm -rf $MUST_GATHER_DIR
rm -rf $MUST_GATHER_DIR
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ metadata:
name: generate-traces
namespace: chainsaw-mst
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ metadata:
name: verify-traces-jaeger
namespace: chainsaw-mst
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ metadata:
name: verify-traces-traceql
namespace: chainsaw-mst
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
8 changes: 2 additions & 6 deletions tests/e2e-openshift/multitenancy/03-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@ metadata:
name: generate-traces-grpc
namespace: chainsaw-multitenancy
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: generate-traces-http
namespace: chainsaw-multitenancy
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
16 changes: 4 additions & 12 deletions tests/e2e-openshift/multitenancy/04-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,28 @@ metadata:
name: verify-traces-grpc
namespace: chainsaw-multitenancy
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: verify-traces-traceql-grpc
namespace: chainsaw-multitenancy
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: verify-traces-http
namespace: chainsaw-multitenancy
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: verify-traces-traceql-http
namespace: chainsaw-multitenancy
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
resource_to_telemetry_conversion:
enabled: true # by default resource attributes are dropped
logging:
debug:
otlp:
endpoint: tempo-redmetrics-distributor:4317
Expand All @@ -53,7 +53,7 @@ spec:
exporters: [otlp, spanmetrics]
metrics:
receivers: [spanmetrics]
exporters: [prometheus, logging]
exporters: [prometheus, debug]
---
apiVersion: monitoring.coreos.com/v1
Expand Down
4 changes: 1 addition & 3 deletions tests/e2e-openshift/red-metrics/06-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ kind: Job
metadata:
name: verify-metrics
status:
conditions:
- status: "True"
type: Complete
succeeded: 1
Loading

0 comments on commit c38d7fd

Please sign in to comment.