Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.15.z] Add outputs, rerun, cancel endpoints in JobInvocation entity #1140

Conversation

Satellite-QE
Copy link
Contributor

Cherrypick of PR: #1139

Description of changes

Missing outputs, rerun, cancel endpoints in JobInvocation entity

Upstream API documentation, plugin, or feature links

Link to any relevant upstream API documentation that relates to the content of the PR.

Functional demonstration
In [28]: result = sat.api.JobInvocation(id=20).outputs()

In [29]: [i for i in result['outputs'][0]['output'] if i['output'] == 'Exit status: 0']
Out[29]:
[{'output_type': 'stdout',
  'output': 'Exit status: 0',
  'timestamp': 1715268351.528926}]
Additional Information

Any additional notes for reviewers, comments about the change, TODO lists on WIP PRs, etc.

Signed-off-by: Gaurav Talreja <gtalreja@redhat.com>
(cherry picked from commit d9c87b5)
@Satellite-QE Satellite-QE added 6.15.z Auto_Cherry_Picked GHA has automatically cherrypicked this PR No-CherryPick PR doesnt need CherryPick to previous branches labels May 16, 2024
@Satellite-QE Satellite-QE added the AutoMerge_Cherry_Picked Automatically merge the PR is PRT and all checks are passing label May 16, 2024
@Gauravtalreja1
Copy link
Collaborator

trigger: test-robottelo
pytest: tests/foreman/api/test_ansible.py::TestAnsibleREX::test_positive_ansible_localhost_job_on_host

@Satellite-QE
Copy link
Contributor Author

PRT Result

Build Number: 33
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/api/test_ansible.py::TestAnsibleREX::test_positive_ansible_localhost_job_on_host --external-logging
Test Result : ================= 3 passed, 203 warnings in 1653.25s (0:27:33) =================

Copy link
Contributor

@shubhamsg199 shubhamsg199 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

@shubhamsg199 shubhamsg199 merged commit 19b2929 into 6.15.z May 22, 2024
24 of 27 checks passed
@shubhamsg199 shubhamsg199 deleted the cherry-pick-6.15.z-d9c87b5dd43808371c0dc99fa65348e9cdaa22c2 branch May 22, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.15.z Auto_Cherry_Picked GHA has automatically cherrypicked this PR AutoMerge_Cherry_Picked Automatically merge the PR is PRT and all checks are passing No-CherryPick PR doesnt need CherryPick to previous branches PRT-Passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants