3

I am trying to get automated testing results of contributed modules through https://www.drupal.org/drupalorg/docs/apis/rest-and-other-apis.

I am able to get nid and vid of any contributed module through the node info API.

And I want to access DrupalCI jobs: pift_ci_job.json or pift_ci_job.xml

Which returns a specific job: https://www.drupal.org/api-d7/pift_ci_job/[jobid].json

But, there is nowhere mentioned of jobid required for getting the automation testing results, can anyone tell me if there is any way for getting jobid of a contributed module?

1

https://www.drupal.org/api-d7/pift_ci_job.json returns a list of all the DrupalCI tests, in the same way https://www.drupal.org/api-d7/node.json returns a list of all the nodes.

That's the only way to get a list of the tests associated to an issue because there isn't a comment/node field for tests, which would otherwise be returned in https://www.drupal.org/api-d7/node/3220733.json (the RESTWS URL for [PHP8] Tests are failing in PHP 8 / Drupal 9.2.x) or https://www.drupal.org/api-d7/comment/14145081.json (the RESTWS URL for comment #3 in that issue).

The information about tests shown in the attached file table is added by the Project issue file test in pift_nodechanges_file_changes_element_alter().

You can filter the job list, though. For example, you could filter by:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.