Skip to content

Commit 35c72e0

Browse files
committed
[2.22] Add a mock --custom-namespace option to enable run of MR with custom namespace
1 parent 1ae5caf commit 35c72e0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

conftest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def pytest_addoption(parser: Parser) -> None:
4848
upgrade_group = parser.getgroup(name="Upgrade options")
4949
must_gather_group = parser.getgroup(name="MustGather")
5050
cluster_sanity_group = parser.getgroup(name="ClusterSanity")
51-
51+
model_registry_group = parser.getgroup(name="Model Registry options")
5252
# AWS config and credentials options
5353
aws_group.addoption(
5454
"--aws-secret-access-key",
@@ -151,6 +151,13 @@ def pytest_addoption(parser: Parser) -> None:
151151
help="Skip RHOAI/ODH-related resources (DSCI and DSC) checks",
152152
action="store_true",
153153
)
154+
# Model Registry options
155+
model_registry_group.addoption(
156+
"--custom-namespace",
157+
default=False,
158+
action="store_true",
159+
help="Indicates if the model registry tests are to be run against custom namespace",
160+
)
154161

155162

156163
def pytest_cmdline_main(config: Any) -> None:

0 commit comments

Comments
 (0)