Exemplo n.º 1
0
def test_kubernetes_resource_get_spec_value_missing(
        sas_kubernetes_resource_obj: KubernetesResource) -> None:
    """
    This test verifies that KubernetesResource.get_spec_value() returns None for an 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_spec_value("foo") is None
Exemplo n.º 2
0
def test_kubernetes_resource_get_spec_value(
        sas_kubernetes_resource_obj: KubernetesResource) -> None:
    """
    This test verifies that KubernetesResource.get_spec_value() returns the correct value for a defined resource.

    :param sas_kubernetes_resource_obj: The pre-loaded SAS KubernetesResource object fixture for testing.
    """
    assert sas_kubernetes_resource_obj.get_spec_value("replicas") == 1