Skip to content

Commit a007c99

Browse files
committed
[2.21] Add a mock --custom-namespace option to enable run of MR with custom ns
1 parent 2a7bbc3 commit a007c99

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +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+
model_registry_group = parser.getgroup(name="Model Registry options")
5152

5253
# AWS config and credentials options
5354
aws_group.addoption(
@@ -146,6 +147,13 @@ def pytest_addoption(parser: Parser) -> None:
146147
help="Skip RHOAI/ODH-related resources (DSCI and DSC) checks",
147148
action="store_true",
148149
)
150+
# Model Registry options
151+
model_registry_group.addoption(
152+
"--custom-namespace",
153+
default=False,
154+
action="store_true",
155+
help="Indicates if the model registry tests are to be run against custom namespace",
156+
)
149157

150158

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

0 commit comments

Comments
 (0)