red-hat-storage / ocs-ci

https://ocs-ci.readthedocs.io/en/latest/
MIT License
108 stars 166 forks source link

test_change_cluster_resource_profile test failing with KeyError: 'resourceProfile' #10053

Open pintojoy opened 3 months ago

pintojoy commented 3 months ago

self = <tests.functional.z_cluster.test_performance_profile_validation.TestProfileDefaultValuesCheck object at 0x7fadde102490> perf_profile = 'balanced'

@pytest.mark.parametrize( argnames=["perf_profile"], argvalues=[ pytest.param(["performance"], marks=pytest.mark.polarion_id("OCS-5647")), pytest.param(["lean"], marks=pytest.mark.polarion_id("OCS-5643")), pytest.param(*["balanced"], marks=pytest.mark.polarion_id("OCS-5644")), ], ) def test_change_cluster_resource_profile(self, perf_profile): """ Testcase to validate osd, mgr, mon, mds and rgw pod memory and cpu values are matching with the predefined set of values post profile updation

"""
namespace = config.ENV_DATA["cluster_namespace"]
self.perf_profile = perf_profile
log.info("Obtaining the performance profile values from the cluster")
storage_cluster_name = config.ENV_DATA["storage_cluster_name"]
storage_cluster = StorageCluster(
    resource_name=storage_cluster_name,
    namespace=config.ENV_DATA["cluster_namespace"],
)

exist_performance_profile = storage_cluster.data["spec"]["resourceProfile"] E KeyError: 'resourceProfile'

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs.