def test_invalid_container_name_too_long():
        resource = fxt.get_anymarkup(
            "invalid_resource_container_name_too_long.yml")

        with pytest.raises(ConstructResourceError):
            openshift_resource = OR(resource, TEST_INT, TEST_INT_VER)
            assert openshift_resource.verify_valid_k8s_object() is None
    def test_verify_valid_k8s_object():
        resource = fxt.get_anymarkup("valid_resource.yml")
        openshift_resource = OR(resource, TEST_INT, TEST_INT_VER)

        assert openshift_resource.verify_valid_k8s_object() is None
    def test_verify_valid_k8s_object_false():
        resource = fxt.get_anymarkup("invalid_resource.yml")

        with pytest.raises(ConstructResourceError):
            openshift_resource = OR(resource, TEST_INT, TEST_INT_VER)
            assert openshift_resource.verify_valid_k8s_object() is None
    def test_invalid_name_format(self):
        resource = fxt.get_anymarkup('invalid_resource_name_format.yml')

        with pytest.raises(ConstructResourceError):
            openshift_resource = OR(resource, TEST_INT, TEST_INT_VER)
            assert openshift_resource.verify_valid_k8s_object() is None