コード例 #1
0
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
コード例 #2
0
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