mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-25 14:06:46 +00:00
With kubernetes/kubernetes#132028 merged, pods in terminal states are no longer reported by the podresources API. The previous test logic accounted for the old behavior where even failed pods appeared in the API response (tracked under k/k issue #119423). As a result, we used to expect the failed test pod to be present in the response but with an empty device set. This change updates the test to reflect the new, correct behavior: 1. The failed test pod should no longer appear in the podresources API response. 2. The test now asserts absence of the failed pod rather than checking for an empty device assignment. This simplifies the test logic and aligns expectations with the current upstream behavior of the podresources API. Signed-off-by: Swati Sehgal <swsehgal@redhat.com>