Skip to content

Fixes #39154 - Add tests for canceling and aborting tasks#1023

Merged
Lukshio merged 1 commit intotheforeman:masterfrom
kmalyjur:cancel-abort-tests
Mar 18, 2026
Merged

Fixes #39154 - Add tests for canceling and aborting tasks#1023
Lukshio merged 1 commit intotheforeman:masterfrom
kmalyjur:cancel-abort-tests

Conversation

@kmalyjur
Copy link
Copy Markdown
Contributor

@kmalyjur kmalyjur commented Mar 17, 2026

Adds tests for the 'Cancel Task' and 'Abort Task' actions in the job invocation host table.

Depends on theforeman/foreman-tasks#799.

@adamruzicka
Copy link
Copy Markdown
Contributor

If I'm reading it correctly then all the api calls it would make are mocked, correct? So this doesn't really depend on the foreman-tasks#799, right?

Copy link
Copy Markdown
Contributor

@Lukshio Lukshio left a comment

Choose a reason for hiding this comment

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

Hi, if the test should be designed just to verify if the api call was invoked, then I find it ok. But I would rename the tests to be more accurate.

@kmalyjur
Copy link
Copy Markdown
Contributor Author

So this doesn't really depend on the foreman-tasks#799, right?

@adamruzicka You're right, it's just connected.

@Lukshio
Copy link
Copy Markdown
Contributor

Lukshio commented Mar 18, 2026

Thanks @kmalyjur

@Lukshio Lukshio merged commit aed7556 into theforeman:master Mar 18, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants