File tree Expand file tree Collapse file tree
tests/model_explainability/trustyai_operator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import pytest
2+ from kubernetes .dynamic import DynamicClient
23from ocp_resources .config_map import ConfigMap
34from ocp_resources .deployment import Deployment
45
78
89@pytest .mark .smoke
910def test_validate_trustyai_operator_image (
10- admin_client ,
11+ admin_client : DynamicClient ,
1112 related_images_refs : set [str ],
1213 trustyai_operator_configmap : ConfigMap ,
1314 trustyai_operator_deployment : Deployment ,
Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ def validate_trustyai_operator_image(
1111 - container image matches that of the operator configmap.
1212 - image is present in relatedImages of CSV.
1313 - image complies with OpenShift AI requirements i.e. sourced from registry.redhat.io and pinned w/o tags.
14+
15+ Args:
16+ related_images_refs (set[str]): set of related image refs from the RHOAI CSV
17+ tai_operator_configmap_data (dict[str, str]): TrustyAI configmap data
18+ tai_operator_deployment (Deployment): TrustyAI deployment object
19+
20+ Returns:
21+ None
1422 """
1523 tai_operator_image = tai_operator_deployment .instance .spec .template .spec .containers [0 ].image
1624 assert tai_operator_image == tai_operator_configmap_data ["trustyaiOperatorImage" ]
You can’t perform that action at this time.
0 commit comments