Skip to content

Commit ccb2343

Browse files
authored
test(maas-billing): add sanity markers to tests (opendatahub-io#1067)
1 parent f7719e7 commit ccb2343

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

tests/model_serving/model_server/maas_billing/test_maas_endpoints.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
indirect=True,
2121
)
2222
class TestMaasEndpoints:
23+
@pytest.mark.sanity
2324
def test_model(
2425
self,
2526
maas_models: list,
@@ -31,6 +32,7 @@ def test_model(
3132
first = maas_models[0]
3233
assert "id" in first, "model entry missing 'id'"
3334

35+
@pytest.mark.sanity
3436
def test_chat_completions(
3537
self,
3638
request_session_http: requests.Session,

tests/model_serving/model_server/maas_billing/test_maas_rbac_e2e.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ class TestMaasRBACE2E:
4444
- can call /v1/chat/completions
4545
"""
4646

47+
@pytest.mark.sanity
4748
def test_mint_token_for_actors(
4849
self,
4950
ocp_token_for_actor,
5051
maas_token_for_actor: str,
5152
) -> None:
5253
LOGGER.info(f"MaaS RBAC: using already minted MaaS token length={len(maas_token_for_actor)}")
5354

55+
@pytest.mark.sanity
5456
def test_models_visible_for_actors(
5557
self,
5658
model_url: str,
@@ -61,6 +63,7 @@ def test_models_visible_for_actors(
6163
models = response.json().get("data", [])
6264
assert isinstance(models, list) and models, "no models returned from /v1/models"
6365

66+
@pytest.mark.sanity
6467
def test_chat_completions_for_actors(
6568
self,
6669
request_session_http,

tests/model_serving/model_server/maas_billing/test_maas_request_rate_limits.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class TestMaasRequestRateLimits:
5555
def scenario(self):
5656
return SCENARIO_REQUEST_RATE
5757

58+
@pytest.mark.sanity
5859
def test_request_rate_limits(
5960
self,
6061
ocp_token_for_actor: str,

tests/model_serving/model_server/maas_billing/test_maas_token_rate_limits.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class TestMaasTokenRateLimits:
5656
def scenario(self):
5757
return SCENARIO_TOKEN_RATE
5858

59+
@pytest.mark.sanity
5960
def test_token_rate_limits(
6061
self,
6162
ocp_token_for_actor: str,

0 commit comments

Comments
 (0)