Skip to content

Commit 5438fa6

Browse files
committed
feat: add oauth support for rest of rbac tests
Signed-off-by: lugi0 <lgiorgi@redhat.com>
1 parent 52432ed commit 5438fa6

1 file changed

Lines changed: 26 additions & 10 deletions

File tree

tests/model_registry/rbac/test_mr_rbac.py

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,36 @@
2222

2323

2424
@pytest.mark.parametrize(
25-
"updated_dsc_component_state_scope_class",
25+
"updated_dsc_component_state_scope_class, is_model_registry_oauth",
2626
[
27-
pytest.param({
28-
"component_patch": {
29-
DscComponents.MODELREGISTRY: {
30-
"managementState": DscComponents.ManagementState.MANAGED,
31-
"registriesNamespace": py_config["model_registry_namespace"],
32-
},
33-
}
34-
})
27+
pytest.param(
28+
{
29+
"component_patch": {
30+
DscComponents.MODELREGISTRY: {
31+
"managementState": DscComponents.ManagementState.MANAGED,
32+
"registriesNamespace": py_config["model_registry_namespace"],
33+
},
34+
}
35+
},
36+
{"use_oauth_proxy": False},
37+
id="servicemesh",
38+
),
39+
pytest.param(
40+
{
41+
"component_patch": {
42+
DscComponents.MODELREGISTRY: {
43+
"managementState": DscComponents.ManagementState.MANAGED,
44+
"registriesNamespace": py_config["model_registry_namespace"],
45+
},
46+
}
47+
},
48+
{"use_oauth_proxy": True},
49+
id="oauth",
50+
),
3551
],
3652
indirect=True,
3753
)
38-
@pytest.mark.usefixtures("updated_dsc_component_state_scope_class")
54+
@pytest.mark.usefixtures("updated_dsc_component_state_scope_class", "is_model_registry_oauth")
3955
class TestUserPermission:
4056
"""
4157
Test suite for verifying user and group permissions for the Model Registry.

0 commit comments

Comments
 (0)