We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b73567 commit a4ca2acCopy full SHA for a4ca2ac
tests/model_registry/rbac/test_mr_rbac_sa.py
@@ -47,11 +47,12 @@ def test_service_account_access_denied(
47
48
# Retry for up to 2 minutes to allow kube-rbac-proxy initialization
49
# Accept UnauthorizedException (401) as a transient error during initialization
50
+ # When we get ForbiddenException (403), stop retrying and let it raise
51
sampler = TimeoutSampler(
52
wait_timeout=120,
53
sleep=5,
54
func=lambda: ModelRegistryClient(**client_args),
- exceptions_dict={UnauthorizedException: []},
55
+ exceptions_dict={UnauthorizedException: [], ForbiddenException: [ForbiddenException]},
56
)
57
58
# Expect ForbiddenException (403) once kube-rbac-proxy is fully initialized
0 commit comments