File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ wait_pod_phase sampler-mock Running 120 || fail "sampler-mock did not reach Runn
1111
1212# fluence must have stamped the chosen backend annotation.
1313backend=" $( kubectl get pod sampler-mock -o jsonpath=" {.metadata.annotations.${ANN// ./ \\ .} }" 2> /dev/null || true) "
14- [ -n " $backend " ] || fail " backend annotation ($ANN ) was not set by fluence"
14+ [ -n " $backend " ] || ( fail " backend annotation ($ANN ) was not set by fluence" && show_webhook sampler-mock)
1515log " fluence chose backend: $backend "
1616
1717# The webhook must have surfaced it as QRMI_BACKEND inside the container.
1818out=" $( kubectl logs sampler-mock || true) "
1919echo " $out " | grep -q " BACKEND=${backend} " \
20- || fail " QRMI_BACKEND in container ('$out ') does not match annotation ($backend )" && show_webhook sampler-mock
20+ || ( fail " QRMI_BACKEND in container ('$out ') does not match annotation ($backend )" && show_webhook sampler-mock)
2121
2222log " PASS: qpu pod scheduled, backend '$backend ' chosen and injected as QRMI_BACKEND"
2323kubectl delete -f examples/test/e2e/quantum-pod-mock.yaml --wait=false || true
You can’t perform that action at this time.
0 commit comments