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'
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
exist_performance_profile = storage_cluster.data["spec"]["resourceProfile"] E KeyError: 'resourceProfile'