Skip to content

Commit 1ef6483

Browse files
committed
fix: update dsc/namespace fixture parametrization
Signed-off-by: lugi0 <lgiorgi@redhat.com>
1 parent fcf71ca commit 1ef6483

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

tests/model_registry/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def get_call_kwargs(self, case: Case) -> dict[str, Any]:
330330

331331
def after_call(self, response: Response, case: Case) -> None:
332332
LOGGER.info(f"{case.method} {case.path} -> {response.status_code}")
333-
LOGGER.info("This is the after_call function")
333+
# LOGGER.info("This is the after_call function")
334334

335335
return APIWorkflow
336336

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
11
import pytest
22
from simple_logger.logger import get_logger
3+
from tests.model_registry.constants import MR_NAMESPACE
4+
from utilities.constants import DscComponents
35

46
LOGGER = get_logger(name=__name__)
57

68

79
@pytest.mark.fuzzer
810
@pytest.mark.sanity
911
@pytest.mark.parametrize(
10-
"updated_dsc_component_state",
12+
"model_registry_namespace, updated_dsc_component_state_scope_class",
1113
[
1214
pytest.param(
15+
{"namespace_name": MR_NAMESPACE},
1316
{
14-
"component_name": "modelregistry",
15-
"desired_state": "Managed",
16-
"condition_type": "model-registry-operatorReady",
17+
"component_patch": {
18+
DscComponents.MODELREGISTRY: {
19+
"managementState": DscComponents.ManagementState.MANAGED,
20+
"registriesNamespace": MR_NAMESPACE,
21+
},
22+
},
1723
},
1824
)
1925
],
2026
indirect=True,
2127
)
22-
def test_mr_api(state_machine, updated_dsc_component_state):
23-
state_machine.run()
28+
@pytest.mark.usefixtures("model_registry_namespace", "updated_dsc_component_state_scope_class")
29+
class TestRestAPIStateful:
30+
def test_mr_api(self, state_machine):
31+
state_machine.run()

0 commit comments

Comments
 (0)