Cray-HPE / sat

System Admin Toolkit
https://cray-hpe.github.io/docs-sat/
MIT License
4 stars 5 forks source link

CRAYSAT-1100: Improve ContainerStopProcess unit tests #229

Closed haasken-hpe closed 4 months ago

haasken-hpe commented 4 months ago

Summary and Scope

Improve the unit tests for ContainerStopProcess. The main improvement is that we change the way that the unit tests verify whether the process was successful by checking the values added to the results_queue instead of looking at the success attribute, which will not be visible to the parent process.

Additionally, change thread to process where appropriate in naming of variables. E.g., change cst to csp for ContainerStopProcess instead of ContainerStopThread.

Issues and Related PRs

Testing

Tested on:

Test description:

Unit tests pass.

Risks and Mitigations

Low risk unit test improvements.

Pull Request Checklist

haasken-hpe commented 4 months ago

These changes have been fast-forward merged and squashed into https://github.com/Cray-HPE/sat/pull/222.