def check_resource_exists(context, type, resource_name): openshift = Openshift() assert openshift.is_resource_in( type, resource_name ), f"Could not find the resource: '{type}/{resource_name}' in the cluster"
def check_cluster_role_exists(context, cluster_role_name): openshift = Openshift() assert openshift.is_resource_in( "clusterroles", cluster_role_name ), f"Could not find the cluster role : '{cluster_role_name}' in the cluster"