We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88d213e commit 034c616Copy full SHA for 034c616
tests/workbenches/notebook-controller/test_custom_images.py
@@ -6,6 +6,7 @@
6
7
import pytest
8
9
+from kubernetes.dynamic.exceptions import ResourceNotFoundError
10
from ocp_resources.pod import Pod
11
from ocp_resources.pod import ExecOnPodError
12
from ocp_resources.namespace import Namespace
@@ -71,7 +72,7 @@ def verify_package_import(
71
72
73
# Check pod exists and is running
74
if not pod.exists:
- raise RuntimeError(_ERR_POD_NOT_EXISTS.format(pod_name=pod.name))
75
+ raise ResourceNotFoundError(_ERR_POD_NOT_EXISTS.format(pod_name=pod.name))
76
77
pod_status = pod.instance.status
78
if pod_status.phase != "Running":
0 commit comments