Certification Project Test Result#

Contain certification test results of related certProject

passed | Boolean required

Whether or not the test has passed overall.

results | Results required

The test results stored in lists based on result status.

test_library | TestLibrary required

The test library of the test result.

cert_project | ObjectID read-only

Unique identifier for the certification project.

certification_hash | String

Hashed content for the certification project.

image | String

Image associated with the test result.

operator_package_name | String

Operator package name associated with the test result.

image_id | ObjectID

Identifier of container image collection.

version | String

Version associated with the content tested.

pull_request | PullRequest

Pull request of certification test results

tested_on | TestedOn

A platform where tests were executed.

_id | ObjectID read-only

MongoDB unique _id

creation_date | DateTime read-only

The date when the entry was created. Value is created automatically on creation.

last_update_date | DateTime read-only

The date when the entry was last updated.

org_id | Integer read-only

Red Hat Org ID / account_id from Red Hat SSO. Also corresponds to company_org_id in Red Hat Connect.

cert_project | RESTGetCertProjectById

URI to the certification project related to this tag request.

container_image | RESTGetImage

URI to the container image being tagged.

cert_project_1_certification_hash_1_operator_package_name_1_version_1

Fields
  • cert_project: ASC

  • certification_hash: ASC

  • operator_package_name: ASC

  • version: ASC

Description
This index is used to find certProject test results by combination of cert_project, certification_hash, operator_package_name and version.

org_id_1_results_failed_1

Fields
  • org_id: ASC

  • results.failed: ASC

Description
This index is used to find certProject test results by org_id and results.failed fields.

edges.cert_project | Certification Project

Edge to related certification project.

Parent arguments: [‘cert_project’]

Uses GQL query: get_certification_project

Example queries
{
    get_cert_project_test_result(id: "6304c560cbb2b2d2d4053b8e") {
        error {
            detail
            status
        }
        data {
            _id
            edges {
                cert_project {
                    error {
                        status
                        detail
                    }
                    data {
                        _id
                    }
                }
            }
        }
    }
}
{
    get_cert_project_test_results(id: "6304c560cbb2b2d2d4053b8e", sort_by: [{ field: "creation_date", order: DESC }], page: 0, page_size: 50) {
        error {
            detail
            status
        }
        total # omit for better performance
        page_size
        page
        data {
            _id
            edges {
                cert_project {
                    error {
                        status
                        detail
                    }
                    data {
                        _id
                    }
                }
            }
        }
    }
}
{
    find_cert_project_test_results_by_id(sort_by: [{ field: "creation_date", order: DESC }], page: 0, page_size: 50) {
        error {
            detail
            status
        }
        total # omit for better performance
        page_size
        page
        data {
            _id
            edges {
                cert_project {
                    error {
                        status
                        detail
                    }
                    data {
                        _id
                    }
                }
            }
        }
    }
}
{
    get_test_results_by_image_id(id: "6304c560cbb2b2d2d4053b8e", sort_by: [{ field: "creation_date", order: DESC }], page: 0, page_size: 50) {
        error {
            detail
            status
        }
        total # omit for better performance
        page_size
        page
        data {
            _id
            edges {
                cert_project {
                    error {
                        status
                        detail
                    }
                    data {
                        _id
                    }
                }
            }
        }
    }
}

edges.container_image | Container Image

Edge to related container image.

Parent arguments: [‘image_id’]

Uses GQL query: get_image

Example queries
{
    get_cert_project_test_result(id: "6304c560cbb2b2d2d4053b8e") {
        error {
            detail
            status
        }
        data {
            _id
            edges {
                container_image {
                    error {
                        status
                        detail
                    }
                    data {
                        _id
                    }
                }
            }
        }
    }
}
{
    get_cert_project_test_results(id: "6304c560cbb2b2d2d4053b8e", sort_by: [{ field: "creation_date", order: DESC }], page: 0, page_size: 50) {
        error {
            detail
            status
        }
        total # omit for better performance
        page_size
        page
        data {
            _id
            edges {
                container_image {
                    error {
                        status
                        detail
                    }
                    data {
                        _id
                    }
                }
            }
        }
    }
}
{
    find_cert_project_test_results_by_id(sort_by: [{ field: "creation_date", order: DESC }], page: 0, page_size: 50) {
        error {
            detail
            status
        }
        total # omit for better performance
        page_size
        page
        data {
            _id
            edges {
                container_image {
                    error {
                        status
                        detail
                    }
                    data {
                        _id
                    }
                }
            }
        }
    }
}
{
    get_test_results_by_image_id(id: "6304c560cbb2b2d2d4053b8e", sort_by: [{ field: "creation_date", order: DESC }], page: 0, page_size: 50) {
        error {
            detail
            status
        }
        total # omit for better performance
        page_size
        page
        data {
            _id
            edges {
                container_image {
                    error {
                        status
                        detail
                    }
                    data {
                        _id
                    }
                }
            }
        }
    }
}