Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
b362382
Create size-labeler.yml
rnetser Dec 18, 2024
3c6a875
Delete .github/workflows/size-labeler.yml
rnetser Dec 18, 2024
ccb63af
Merge branch 'main' of github.com:rnetser/opendatahub-tests
rnetser Dec 24, 2024
da0c898
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Dec 25, 2024
94a82ec
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Dec 26, 2024
c0c82dd
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Dec 27, 2024
5feb447
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Dec 30, 2024
19b9c56
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Dec 31, 2024
e22ac1a
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Dec 31, 2024
56ab9c5
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Dec 31, 2024
5a17f03
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Dec 31, 2024
ef5fe65
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Dec 31, 2024
1875a44
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 1, 2025
840d442
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 2, 2025
c0d4436
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 2, 2025
ba7971a
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 3, 2025
fd73a94
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 7, 2025
bde0493
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 8, 2025
d3cd799
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 9, 2025
710befa
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 12, 2025
a662364
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 16, 2025
579c283
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 16, 2025
927cbb0
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 19, 2025
99e242e
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 22, 2025
5b83bab
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 24, 2025
4b5b007
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 27, 2025
b8e5dee
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 30, 2025
0039df0
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Jan 30, 2025
17938d6
model mesh - add auth tests
rnetser Feb 2, 2025
44a3120
xx
rnetser Feb 2, 2025
a418727
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 3, 2025
d291c32
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 4, 2025
b6650d8
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 5, 2025
8b9f838
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 7, 2025
d53a04c
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 10, 2025
db89111
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 10, 2025
773d81a
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 12, 2025
01be6e9
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 13, 2025
71df8d5
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 16, 2025
8896bd7
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 18, 2025
0eeb162
Merge branch 'main' of https://github.com/opendatahub-io/opendatahub-…
rnetser Feb 18, 2025
38e8a69
ci: on main upstream xxxxxxxxxxx
rnetser Feb 19, 2025
875f597
ci: reabsingxxxxxxxxxxxxxx
rnetser Feb 20, 2025
c90abf6
ci: reabsingxxxxxxxxxxxxxx
rnetser Feb 20, 2025
4a26346
ci: Merge branch 'main' of https://github.com/opendatahub-io/opendata…
rnetser Feb 24, 2025
8302ed1
ci: Merge branch 'main' of https://github.com/opendatahub-io/opendata…
rnetser Feb 25, 2025
ff1b155
ci: rebase on main
rnetser Mar 6, 2025
a04a3c4
ci: merge main branch
rnetser Mar 11, 2025
d1cb99b
ci: merge branch main
rnetser Mar 12, 2025
87faa7b
ci: merge branch main
rnetser Mar 17, 2025
dc8490d
ci: merge branch main
rnetser Mar 17, 2025
5856788
ci: merge main branch
rnetser Mar 18, 2025
a865aa8
ci: merge main branch
rnetser Mar 18, 2025
e8be67d
ci: merge main branch
rnetser Mar 18, 2025
e8c8b38
ci: merge main branch
rnetser Mar 20, 2025
667cb70
ci: merge main branch
rnetser Mar 20, 2025
a122d95
ci: merge main branch
rnetser Mar 20, 2025
defca5d
ci: merge main branch
rnetser Mar 21, 2025
d8879ae
ci: merge with main
rnetser Mar 24, 2025
a0477ca
ci: merge with main
rnetser Mar 24, 2025
0b37eb7
ci: merge with main
rnetser Mar 24, 2025
79b9288
ci: merge with main
rnetser Mar 24, 2025
3b9d6a1
ci: merge with main
rnetser Mar 25, 2025
a91c002
ci: merge with main
rnetser Mar 26, 2025
ba7a2a4
ci: merge main branch
rnetser Mar 27, 2025
7fd9c92
ci: merge main branch
rnetser Mar 27, 2025
96c2146
ci: merge main branch
rnetser Mar 31, 2025
dcdfc7a
ci: merge main branch
rnetser Mar 31, 2025
beaa1e5
ci: merge main branch
rnetser Apr 2, 2025
3c35249
ci: merge main branch
rnetser Apr 6, 2025
d40269a
ci: merge main branch
rnetser Apr 7, 2025
1abe771
ci: merge main branch
rnetser Apr 8, 2025
cf41578
feat: move to marking test branches
rnetser Apr 8, 2025
bffc362
ci: merge main branch
rnetser Apr 8, 2025
d7a7a5d
fix: collectonly flow
rnetser Apr 8, 2025
ddb7ccd
ci: merge main branch
rnetser Apr 8, 2025
00218c2
fix: address comment
rnetser Apr 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
import logging
import os
import pathlib
import re
import shutil

import shortuuid
from ocp_resources.resource import get_client
from pytest import (
Parser,
Session,
Expand All @@ -18,8 +20,10 @@
from _pytest.terminal import TerminalReporter
from typing import Optional, Any
from pytest_testconfig import config as py_config
from semver import Version

from utilities.constants import KServeDeploymentType
from utilities.infra import get_product_version
from utilities.logger import separator, setup_logging


Expand Down Expand Up @@ -154,13 +158,22 @@ def _add_upgrade_test(_item: Item, _upgrade_deployment_modes: list[str]) -> bool
post_upgrade_tests: list[Item] = []
non_upgrade_tests: list[Item] = []
upgrade_deployment_modes: list[str] = []
formatted_product_version: Version | None = None

run_pre_upgrade_tests: str | None = config.getoption(name="pre_upgrade")
run_post_upgrade_tests: str | None = config.getoption(name="post_upgrade")
if config_upgrade_deployment_modes := config.getoption(name="upgrade_deployment_modes"):
upgrade_deployment_modes = config_upgrade_deployment_modes.split(",")

if not session.config.option.setupplan and not session.config.option.collectonly:
if product_version := get_product_version(admin_client=get_client(), raise_on_missing_csv=False):
formatted_product_version = Version.parse(
f"{product_version.major}.{product_version.minor}",
optional_minor_and_patch=True,
)

for item in items:
# Upgrade tests filtering
if "pre_upgrade" in item.keywords and _add_upgrade_test(
_item=item, _upgrade_deployment_modes=upgrade_deployment_modes
):
Expand All @@ -174,6 +187,24 @@ def _add_upgrade_test(_item: Item, _upgrade_deployment_modes: list[str]) -> bool
else:
non_upgrade_tests.append(item)

try:
# Product version filtering - if version marker < product version, remove test from list
if formatted_product_version and (
product_marker := next(marker for marker in item.keywords if re.match(r"rhoai_\d+_\d+", marker))
):
marker_major, marker_minor = product_marker.split("_")[1:]
test_version = Version.parse(f"{marker_major}.{marker_minor}", optional_minor_and_patch=True)
if test_version > formatted_product_version:
LOGGER.info(
f"Test {item.name} is not compatible with RHOAI version {formatted_product_version}; "
"it will be skipped"
)
non_upgrade_tests.remove(item)

# TODO: Raise once all teams added a marker; need to make sure that we do not have tests without product release
except StopIteration:
LOGGER.error(f"Test {item.name} is missing RHOAI version marker")

upgrade_tests = pre_upgrade_tests + post_upgrade_tests

if run_pre_upgrade_tests and run_post_upgrade_tests:
Expand Down
9 changes: 8 additions & 1 deletion docs/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To contribute code to the project:

## Branching strategy
The project follows RHOAI [release lifecyle strategy](https://access.redhat.com/support/policy/updates/rhoai-sm/lifecycle).
If needed, once your PR is merged to `main`, cherry-pick your PR to the relevant branch(es).
Tests should be marked with the release they're tested against.


## Python
Expand Down Expand Up @@ -143,6 +143,13 @@ Check [pytest.ini](../pytest.ini) for available markers; additional markers can
You should NOT group unrelated tests in one class (because it is misleading the reader).


## Markers
Do not forget to add the relevant marker(s) to your test(s)
Check [pytest.ini](../pytest.ini) for available markers; additional markers can always be added when needed.
For features which are only supported in upstream, add the `upstream` marker.
For features which are only supported in ODH (`midstream`, add the `odh` marker.
For features which are only supported from a specific RHOAI release, add the `rhoai_x_y` marker. For example: `rhoai_2_19`

## Check the code
### pre-commit

Expand Down
8 changes: 8 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ markers =
polarion: Store polarion test ID
jira: Store jira bug ID

# Distributions and supported downstream markers
upstream: Mark tests as ones suitable to run only upstream.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would we handle when a feature behavior changes between releases and when test step changes between releases?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about adding the option to add an indicator like
up_to_rhoai_2_16 and there will be another test with the new functionality which will have rhoai_2_17 ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would add duplicate tests and the repository can potentially get messy and hard to maintain. I don't like this idea.

odh: Mark tests as ones suitable to run in ODH deployment (AKA `midstream`).
rhoai_2_16: Mark tests supported in RHOAI 2.16 (AKA `downstream`).
rhoai_2_17: Mark tests supported in RHOAI 2.16 (AKA `downstream`).
rhoai_2_18: Mark tests supported in RHOAI 2.16 (AKA `downstream`).
rhoai_2_19: Mark tests supported in RHOAI 2.19 (AKA `downstream`).

# CI
smoke: Mark tests as smoke tests; covers core functionality of the product. Aims to ensure that the build is stable enough for further testing.
sanity: Mark tests as sanity tests. Aims to verify that specific functionality is working as expected.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
)
class TestKserveTokenAuthenticationRawForRest:
@pytest.mark.smoke
@pytest.mark.rhoai_2_16
@pytest.mark.dependency(name="test_model_authentication_using_rest_raw")
def test_model_authentication_using_rest_raw(self, http_s3_caikit_raw_inference_service, http_raw_inference_token):
"""Verify RAW Kserve model query with token using REST"""
Expand All @@ -38,6 +39,7 @@ def test_model_authentication_using_rest_raw(self, http_s3_caikit_raw_inference_
token=http_raw_inference_token,
)

@pytest.mark.rhoai_2_16
@pytest.mark.dependency(name="test_disabled_raw_model_authentication")
def test_disabled_raw_model_authentication(self, patched_remove_raw_authentication_isvc):
"""Verify model query after authentication is disabled"""
Expand All @@ -51,6 +53,7 @@ def test_disabled_raw_model_authentication(self, patched_remove_raw_authenticati
)

@pytest.mark.sanity
@pytest.mark.rhoai_2_17
@pytest.mark.jira("RHOAIENG-19275", run=False)
def test_raw_disable_enable_authentication_no_pod_rollout(self, http_s3_caikit_raw_inference_service):
"""Verify no pod rollout when disabling and enabling authentication"""
Expand Down Expand Up @@ -83,6 +86,7 @@ def test_raw_disable_enable_authentication_no_pod_rollout(self, http_s3_caikit_r

check_pod_status_in_time(pod=pod, status={pod.Status.RUNNING})

@pytest.mark.rhoai_2_17
@pytest.mark.dependency(depends=["test_disabled_raw_model_authentication"])
def test_re_enabled_raw_model_authentication(self, http_s3_caikit_raw_inference_service, http_raw_inference_token):
"""Verify model query after authentication is re-enabled"""
Expand All @@ -96,6 +100,7 @@ def test_re_enabled_raw_model_authentication(self, http_s3_caikit_raw_inference_
token=http_raw_inference_token,
)

@pytest.mark.rhoai_2_17
@pytest.mark.dependency(name="test_cross_model_authentication_raw")
def test_cross_model_authentication_raw(
self, http_s3_caikit_raw_inference_service_2, http_raw_inference_token, admin_client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
)
class TestKserveServerlessTokenAuthentication:
@pytest.mark.smoke
@pytest.mark.rhoai_2_16
@pytest.mark.dependency(name="test_model_authentication_using_rest")
def test_model_authentication_using_rest(self, http_s3_caikit_serverless_inference_service, http_inference_token):
"""Verify model query with token using REST"""
Expand All @@ -36,6 +37,7 @@ def test_model_authentication_using_rest(self, http_s3_caikit_serverless_inferen
)

@pytest.mark.smoke
@pytest.mark.rhoai_2_16
def test_model_authentication_using_grpc(self, grpc_s3_inference_service, grpc_inference_token):
"""Verify model query with token using GRPC"""
verify_inference_response(
Expand All @@ -48,6 +50,7 @@ def test_model_authentication_using_grpc(self, grpc_s3_inference_service, grpc_i
token=grpc_inference_token,
)

@pytest.mark.rhoai_2_16
@pytest.mark.dependency(name="test_disabled_model_authentication")
def test_disabled_model_authentication(self, patched_remove_authentication_isvc):
"""Verify model query after authentication is disabled"""
Expand All @@ -60,6 +63,7 @@ def test_disabled_model_authentication(self, patched_remove_authentication_isvc)
use_default_query=True,
)

@pytest.mark.rhoai_2_16
@pytest.mark.dependency(depends=["test_disabled_model_authentication"])
def test_re_enabled_model_authentication(self, http_s3_caikit_serverless_inference_service, http_inference_token):
"""Verify model query after authentication is re-enabled"""
Expand All @@ -73,6 +77,7 @@ def test_re_enabled_model_authentication(self, http_s3_caikit_serverless_inferen
token=http_inference_token,
)

@pytest.mark.rhoai_2_16
def test_model_authentication_using_invalid_token(self, http_s3_caikit_serverless_inference_service):
"""Verify model query with an invalid token"""
verify_inference_response(
Expand All @@ -86,6 +91,7 @@ def test_model_authentication_using_invalid_token(self, http_s3_caikit_serverles
authorized_user=False,
)

@pytest.mark.rhoai_2_16
def test_model_authentication_without_token(self, http_s3_caikit_serverless_inference_service):
"""Verify model query without providing a token"""
verify_inference_response(
Expand All @@ -99,6 +105,7 @@ def test_model_authentication_without_token(self, http_s3_caikit_serverless_infe
)

@pytest.mark.sanity
@pytest.mark.rhoai_2_16
def test_block_cross_model_authentication(self, http_s3_caikit_serverless_inference_service, grpc_inference_token):
"""Verify model query with a second model's token is blocked"""
verify_inference_response(
Expand All @@ -113,6 +120,7 @@ def test_block_cross_model_authentication(self, http_s3_caikit_serverless_infere
)

@pytest.mark.sanity
@pytest.mark.rhoai_2_17
def test_serverless_disable_enable_authentication_no_pod_rollout(self, http_s3_caikit_serverless_inference_service):
"""Verify no pod rollout when disabling and enabling authentication"""
pod = get_pods_by_isvc_label(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from utilities.inference_utils import Inference
from utilities.manifests.openvino import OPENVINO_INFERENCE_CONFIG

pytestmark = [pytest.mark.modelmesh, pytest.mark.sanity]
pytestmark = [pytest.mark.modelmesh, pytest.mark.sanity, pytest.mark.rhoai_2_16]


@pytest.mark.parametrize(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
indirect=True,
)
@pytest.mark.smoke
@pytest.mark.rhoai_2_16
@pytest.mark.serverless
class TestServerlessUnprivilegedUser:
@pytest.mark.polarion("ODS-2552")
Expand All @@ -46,6 +47,7 @@ def test_non_admin_deploy_serverless_and_query_model(self, unprivileged_s3_caiki
],
indirect=True,
)
@pytest.mark.rhoai_2_16
@pytest.mark.sanity
@pytest.mark.rawdeployment
class TestRawUnprivilegedUser:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from utilities.inference_utils import Inference
from utilities.manifests.openvino import OPENVINO_KSERVE_INFERENCE_CONFIG

pytestmark = [pytest.mark.sanity]
pytestmark = [pytest.mark.sanity, pytest.mark.rhoai_2_17]

RUNTIME_PARAMS = {
"runtime-name": ModelInferenceRuntime.OPENVINO_KSERVE_RUNTIME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
TIMEOUT = 6 * 60


pytestmark = pytest.mark.smoke
pytestmark = [pytest.mark.smoke, pytest.mark.rhoai_2_16]


@pytest.mark.usefixtures("managed_modelmesh_kserve_in_dsc")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
indirect=True,
)
class TestOpenVINOServerlessModelMesh:
@pytest.mark.rhoai_2_16
def test_serverless_openvino_created_before_model_mesh_ns_rest_inference(
self, ovms_kserve_inference_service, http_s3_openvino_model_mesh_inference_service
):
Expand All @@ -43,6 +44,7 @@ def test_serverless_openvino_created_before_model_mesh_ns_rest_inference(
use_default_query=True,
)

@pytest.mark.rhoai_2_16
def test_model_mesh_openvino_created_after_serverless_in_namespace_rest_inference(
self, ovms_kserve_inference_service, http_s3_openvino_model_mesh_inference_service
):
Expand Down Expand Up @@ -70,6 +72,7 @@ def test_model_mesh_openvino_created_after_serverless_in_namespace_rest_inferenc
indirect=True,
)
class TestOpenVINOModelMeshServerless:
@pytest.mark.rhoai_2_16
def test_model_mesh_openvino_created_before_serverless_in_namespace_rest_inference(
self, http_s3_openvino_model_mesh_inference_service, ovms_kserve_inference_service
):
Expand All @@ -82,6 +85,7 @@ def test_model_mesh_openvino_created_before_serverless_in_namespace_rest_inferen
use_default_query=True,
)

@pytest.mark.rhoai_2_16
def test_serverless_openvino_created_after_model_mesh_ns_rest_inference(
self, http_s3_openvino_model_mesh_inference_service, ovms_kserve_inference_service
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
indirect=True,
)
class TestServerlessRawInternalDeploymentInferenceCoExist:
@pytest.mark.rhoai_2_16
def test_serverless_openvino_created_before_raw_internal_deployment_caikit_inference(
self, ovms_kserve_inference_service, s3_models_inference_service
):
Expand All @@ -59,6 +60,7 @@ def test_serverless_openvino_created_before_raw_internal_deployment_caikit_infer
use_default_query=True,
)

@pytest.mark.rhoai_2_19
def test_raw_internal_deployment_caikit_created_after_serverless_in_namespace_rest_inference(
self,
ovms_kserve_inference_service,
Expand Down Expand Up @@ -90,6 +92,7 @@ def test_raw_internal_deployment_caikit_created_after_serverless_in_namespace_re
indirect=True,
)
class TestServerlessRawExternalDeploymentInferenceCoExist:
@pytest.mark.rhoai_2_16
def test_serverless_openvino_created_before_raw_external_deployment_caikit_inference(
self, ovms_kserve_inference_service, s3_models_inference_service
):
Expand All @@ -102,6 +105,7 @@ def test_serverless_openvino_created_before_raw_external_deployment_caikit_infer
use_default_query=True,
)

@pytest.mark.rhoai_2_16
def test_raw_external_deployment_caikit_created_after_serverless_in_namespace_rest_inference(
self,
ovms_kserve_inference_service,
Expand Down Expand Up @@ -133,6 +137,7 @@ def test_raw_external_deployment_caikit_created_after_serverless_in_namespace_re
indirect=True,
)
class TestRawInternalDeploymentServerlessInferenceCoExist:
@pytest.mark.rhoai_2_16
def test_raw_internal_deployment_caikit_created_before_serverless_openvino_in_namespace_rest_inference(
self,
s3_models_inference_service,
Expand All @@ -148,6 +153,7 @@ def test_raw_internal_deployment_caikit_created_before_serverless_openvino_in_na
use_default_query=True,
)

@pytest.mark.rhoai_2_19
def test_serverless_openvino_created_after_raw_internal_deployment_caikit_ns_rest_inference(
self,
s3_models_inference_service,
Expand Down Expand Up @@ -178,6 +184,7 @@ def test_serverless_openvino_created_after_raw_internal_deployment_caikit_ns_res
indirect=True,
)
class TestRawExternalDeploymentServerlessInferenceCoExist:
@pytest.mark.rhoai_2_19
def test_raw_external_deployment_caikit_created_before_serverless_openvino_in_namespace_rest_inference(
self,
s3_models_inference_service,
Expand All @@ -193,6 +200,7 @@ def test_raw_external_deployment_caikit_created_before_serverless_openvino_in_na
use_default_query=True,
)

@pytest.mark.rhoai_2_16
def test_serverless_openvino_created_after_raw_external_deployment_caikit_ns_rest_inference(
self, s3_models_inference_service, ovms_kserve_inference_service
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@

LOGGER = get_logger(name=__name__)

pytestmark = [pytest.mark.serverless, pytest.mark.tier2, pytest.mark.slow, pytest.mark.usefixtures("valid_aws_config")]
pytestmark = [
pytest.mark.serverless,
pytest.mark.tier2,
pytest.mark.slow,
pytest.mark.usefixtures("valid_aws_config"),
pytest.mark.rhoai_2_16,
]


def wait_for_isvc_model_status(isvc: InferenceService, target_model_state: str, transition_status: str) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def component_deployment(


@pytest.mark.smoke
@pytest.mark.rhoai_2_16
@pytest.mark.parametrize(
"component_deployment",
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
)
from utilities.constants import KServeDeploymentType, RunTimeConfigs

pytestmark = [pytest.mark.sanity, pytest.mark.usefixtures("valid_aws_config")]
pytestmark = [pytest.mark.sanity, pytest.mark.usefixtures("valid_aws_config"), pytest.mark.rhoai_2_19]


ISVC_ENV_VARS_CONFIG = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

LOGGER = get_logger(name=__name__)

pytestmark = [pytest.mark.sanity, pytest.mark.usefixtures("valid_aws_config")]
pytestmark = [pytest.mark.sanity, pytest.mark.usefixtures("valid_aws_config"), pytest.mark.rhoai_2_19]


@pytest.mark.rawdeployment
Expand Down
Loading