✓ pass on Combined (All three PRs merged) · 2.2 s
install --wait fails promptly when JSONPath result is an object, with wrapped error.
Same test on other tiers: PR1 — n/aPR2 — n/aPR3 ✓ pass
Requirements
R30 Comparison values are scalars; object comparisons are rejected implemented
<value> is the expected literal for comparison. The value should be a scalor (string, number, boolean). Object comparisons will not be supported.HIP-0025, JsonPath syntax
The test needs these tier features: readiness.
What the test observed
The test asserts on these facts. Times come from the kube-apiserver audit log (UTC).
install exit code
1
elapsed time
2.1s
error message
Error: INSTALLATION FAILED: resource Probe/e2e-combined-install-rejects-object-jsonpath-result/probe not ready. status: Failed, message: custom readiness expression error: evaluating success expression "{.metadata} == {}": JSONPath result is an object or array: object comparisons are not supported
Charts
The charts that the helm commands below read. The run keeps
each chart as an archive. Click a chart to see its files and the commands that inspect or install it.
| Chart directory | Chart | Archive | sha256 |
|---|---|---|---|
| charts/hip-readiness-basic | hip-readiness-basic 0.1.0 · apiVersion v3HIP-0025 PR3 readiness annotations - Probe with configurable expressions |
hip-readiness-basic-0.1.0.tgz · 1022 B | 2534a8588e3d9ccf |
Commands
Every command that the test ran, in order, with the start time, the exit code and the output. The paths are relative to the root of the repository.
03:31:06.304 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-install-rejects-object-jsonpath-result --ignore-not-found --wait=true --timeout=120s
[exit 0, 0.0s]
03:31:06.352 $ kubectl --context kind-hip0025-e2e create namespace e2e-combined-install-rejects-object-jsonpath-result
[exit 0, 0.0s]
namespace/e2e-combined-install-rejects-object-jsonpath-result created
03:31:08.408 $ kubectl --context kind-hip0025-e2e patch Probe probe -n e2e-combined-install-rejects-object-jsonpath-result --subresource=status --type=merge -p {"status": {"metadata": {"key": "value"}}}
[exit 0, 0.1s]
probe.readiness.hip0025.example/probe patched
03:31:06.403 $ .bin/helm-combined install r charts/hip-readiness-basic -f runs/20261102-032210-779502/combined/test_install_rejects_object_jsonpath_result/values.yaml --namespace e2e-combined-install-rejects-object-jsonpath-result --wait --timeout 30s --kube-context kind-hip0025-e2e
[exit 1, 2.1s]
Error: INSTALLATION FAILED: resource Probe/e2e-combined-install-rejects-object-jsonpath-result/probe not ready. status: Failed, message: custom readiness expression error: evaluating success expression "{.metadata} == {}": JSONPath result is an object or array: object comparisons are not supported
03:31:08.479 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-install-rejects-object-jsonpath-result --wait=false
[exit 0, 0.0s]
namespace "e2e-combined-install-rejects-object-jsonpath-result" deleted
values.yaml
probe:
failureExpressions:
- '{.phase} == Failed'
successExpressions:
- '{.metadata} == {}'
Files
| File | Size | Content |
|---|---|---|
| commands.log | 1.4 KB | the commands above |
| observations.json | 475 B | the observations above, as JSON |
| values.yaml | 100 B | an input file of the test |