-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test monolithic-receivers-tls failing on OCP 4.17 (#1012)
- Loading branch information
1 parent
748b121
commit ea163fd
Showing
2 changed files
with
50 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: verify-traces-http | ||
status: | ||
phase: Succeeded | ||
conditions: | ||
- status: "True" | ||
type: Complete | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: verify-traces-grpc | ||
status: | ||
phase: Succeeded | ||
conditions: | ||
- status: "True" | ||
type: Complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,47 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: verify-traces-http | ||
spec: | ||
containers: | ||
- name: verify-traces | ||
image: ghcr.io/grafana/tempo-operator/test-utils:main | ||
command: | ||
- /bin/bash | ||
- -eu | ||
- -c | ||
args: | ||
- | | ||
while true | ||
do | ||
echo && echo "Starting test at $(date)..." | ||
curl -v -G http://tempo-simplest-jaegerui:16686/api/traces --data-urlencode "service=http" | tee /tmp/jaeger.out | ||
num_traces=$(jq ".data | length" /tmp/jaeger.out) | ||
echo | ||
if [[ "$num_traces" -eq 10 ]]; then | ||
echo "Test passed." | ||
exit 0 | ||
else | ||
echo "Test failed: The Jaeger API returned $num_traces instead of 10 traces." | ||
echo "Retrying in 10s..." && sleep 10 | ||
fi | ||
done | ||
restartPolicy: Never | ||
template: | ||
spec: | ||
containers: | ||
- name: verify-traces | ||
image: ghcr.io/grafana/tempo-operator/test-utils:main | ||
command: | ||
- /bin/bash | ||
- -eux | ||
- -c | ||
args: | ||
- | | ||
curl -v -G http://tempo-simplest-jaegerui:16686/api/traces --data-urlencode "service=http" | tee /tmp/jaeger.out | ||
num_traces=$(jq ".data | length" /tmp/jaeger.out) | ||
if [[ "$num_traces" -ne 10 ]]; then | ||
echo && echo "The Jaeger API returned $num_traces instead of 10 traces." | ||
exit 1 | ||
fi | ||
restartPolicy: Never | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: verify-traces-grpc | ||
spec: | ||
containers: | ||
- name: verify-traces | ||
image: ghcr.io/grafana/tempo-operator/test-utils:main | ||
command: | ||
- /bin/bash | ||
- -eu | ||
- -c | ||
args: | ||
- | | ||
while true | ||
do | ||
echo && echo "Starting test at $(date)..." | ||
curl -v -G http://tempo-simplest-jaegerui:16686/api/traces --data-urlencode "service=grpc" | tee /tmp/jaeger.out | ||
num_traces=$(jq ".data | length" /tmp/jaeger.out) | ||
echo | ||
if [[ "$num_traces" -eq 10 ]]; then | ||
echo "Test passed." | ||
exit 0 | ||
else | ||
echo "Test failed: The Jaeger API returned $num_traces instead of 10 traces." | ||
echo "Retrying in 10s..." && sleep 10 | ||
fi | ||
done | ||
restartPolicy: Never | ||
template: | ||
spec: | ||
containers: | ||
- name: verify-traces | ||
image: ghcr.io/grafana/tempo-operator/test-utils:main | ||
command: | ||
- /bin/bash | ||
- -eux | ||
- -c | ||
args: | ||
- | | ||
curl -v -G http://tempo-simplest-jaegerui:16686/api/traces --data-urlencode "service=grpc" | tee /tmp/jaeger.out | ||
num_traces=$(jq ".data | length" /tmp/jaeger.out) | ||
if [[ "$num_traces" -ne 10 ]]; then | ||
echo && echo "The Jaeger API returned $num_traces instead of 10 traces." | ||
exit 1 | ||
fi | ||
restartPolicy: Never |