ansible/test
Sam Doran 17109ecedd [stable-2.7] Reboot - Fix command not found, add Apline support, fix Solaris command (#49272)
* Fix various bugs related in reboot

- Use format strings for consistency and improve debug log messages
- Use local variables instead of class attributes in order to be thread safe
- Run setup module to get distribution and version
- Run find module to get full path of shutdown command
- Use ansible_os_family and ansible_distribution to find commands and args
- Use same command for all Solaris/SunOS distributions
- Move delay calculations to properties
- Reliably check for module run failure
- Fix bug in run_test_command() that accidentally made the method work properly
- Use better exceptions rather than Exception
- Use dict literals rather than constructors
- Correct _check_delay() so it always returns a value, not None
- Don't store and return result in run_test_command() because it's not used anywhere
- add test for post reboot command that fails
- test negative values for delay parameters.
(cherry picked from commit c1589c33c4)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-01-07 09:16:58 -08:00
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 00:21:46 -07:00
env [stable-2.7] Add env command to ansible-test and run in CI. (#50176) 2018-12-22 00:10:16 -08:00
integration [stable-2.7] Reboot - Fix command not found, add Apline support, fix Solaris command (#49272) 2019-01-07 09:16:58 -08:00
legacy vultr_server_facts: add tests and changelog for firewall group fix in #48342 (#48411) 2018-11-12 19:30:28 -08:00
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner [stable-2.7] Add env command to ansible-test and run in CI. (#50176) 2018-12-22 00:10:16 -08:00
sanity [stable-2.7] Add retries for Invoke-ScriptAnalyzer in pslint. 2018-12-21 20:27:05 -08:00
units Fix for changes in clearlinux (#49344) 2018-12-06 09:34:20 -08:00
utils [stable-2.7] Add env command to ansible-test and run in CI. (#50176) 2018-12-22 00:10:16 -08:00