def test_kubernetes_resource_get_status_value_missing( sas_kubernetes_resource_obj: KubernetesResource) -> None: """ This test verifies that KubernetesResource.get_status_value() returns None for an undefined value on a defined resource. :param sas_kubernetes_resource_obj: The pre-loaded SAS KubernetesResource object fixture for testing. """ assert sas_kubernetes_resource_obj.get_status_value("foo") is None
def test_kubernetes_resource_get_status_value( sas_kubernetes_resource_obj: KubernetesResource) -> None: """ This test verifies that KubernetesResource.get_status_value() returns the correct value for a defined value on a defined resource. :param sas_kubernetes_resource_obj: The pre-loaded SAS KubernetesResource object fixture for testing. """ assert sas_kubernetes_resource_obj.get_status_value("replicas") == 1