.. raw:: html Certification Project Test Result ================================= .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Contain certification test results of related certProject .. tab-set:: .. tab-item:: Fields .. div:: :name: ``passed`` ``passed`` | :doc:`/scalars/Boolean` :bdg-danger:`required` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Whether or not the test has passed overall. .. div:: :name: ``results`` ``results`` | :doc:`Results` :bdg-danger:`required` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted The test results stored in lists based on result status. .. div:: :name: ``test_library`` ``test_library`` | :doc:`TestLibrary` :bdg-danger:`required` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted The test library of the test result. .. div:: :name: ``cert_project`` ``cert_project`` | :doc:`/scalars/ObjectID` :bdg-primary-line:`read-only` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Unique identifier for the certification project. .. div:: :name: ``certification_hash`` ``certification_hash`` | String .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Hashed content for the certification project. .. div:: :name: ``image`` ``image`` | String .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Image associated with the test result. .. div:: :name: ``operator_package_name`` ``operator_package_name`` | String .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Operator package name associated with the test result. .. div:: :name: ``image_id`` ``image_id`` | :doc:`/scalars/ObjectID` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Identifier of container image collection. .. div:: :name: ``version`` ``version`` | String .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Version associated with the content tested. .. div:: :name: ``pull_request`` ``pull_request`` | :doc:`PullRequest` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Pull request of certification test results .. div:: :name: ``tested_on`` ``tested_on`` | :doc:`TestedOn` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted A platform where tests were executed. .. div:: :name: ``_id`` ``_id`` | :doc:`/scalars/ObjectID` :bdg-primary-line:`read-only` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted MongoDB unique _id .. div:: :name: ``creation_date`` ``creation_date`` | :doc:`/scalars/DateTime` :bdg-primary-line:`read-only` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted The date when the entry was created. Value is created automatically on creation. .. div:: :name: ``last_update_date`` ``last_update_date`` | :doc:`/scalars/DateTime` :bdg-primary-line:`read-only` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted The date when the entry was last updated. .. div:: :name: ``org_id`` ``org_id`` | Integer :bdg-primary-line:`read-only` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Red Hat Org ID / account_id from Red Hat SSO. Also corresponds to company_org_id in Red Hat Connect. .. tab-item:: Links .. div:: :name: ``cert_project`` ``cert_project`` | :doc:`/endpoints/RESTGetCertProjectById` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted URI to the certification project related to this tag request. .. div:: :name: ``container_image`` ``container_image`` | :doc:`/endpoints/RESTGetImage` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted URI to the container image being tagged. .. tab-item:: Indexes .. div:: :name: ``cert_project_1_certification_hash_1_operator_package_name_1_version_1`` ``cert_project_1_certification_hash_1_operator_package_name_1_version_1`` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Fields - ``cert_project: ASC`` - ``certification_hash: ASC`` - ``operator_package_name: ASC`` - ``version: ASC`` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Description | This index is used to find certProject test results by combination of cert_project, certification_hash, operator_package_name and version. | .. div:: :name: ``org_id_1_results_failed_1`` ``org_id_1_results_failed_1`` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Fields - ``org_id: ASC`` - ``results.failed: ASC`` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Description | This index is used to find certProject test results by org_id and results.failed fields. | .. tab-item:: Edges .. div:: :name: ``edges.cert_project`` ``edges.cert_project`` | :doc:`CertificationProject` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Edge to related certification project. .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Parent arguments: ['cert_project'] .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Uses GQL query: get_certification_project .. dropdown:: Example queries :animate: fade-in .. raw:: html
{
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
}
}
}
}
}
}
{
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
}
}
}
}
}
}