1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test
Sam Doran 4d9218cec4 Add reboot action plugin (#35205)
* Update docs

* Add reboot action plugin

Refactor win_reboot so it is subclassed from reboot

* Use new connection methods

* Test fixes

* Use better uptime command for Linux

Use who -b to get the last time the system was booted rather than uptime, which changes every second.

* Use distribution specefic commands and flags

Query the managed node to determien its distribution, then set the appropriate command and flags.

* Tune debug messages a bit

* Update module docs with details about pre_reboot_delay

s docs

* Ensure that post_reboot_delay is a positive number

* Remove the stringification

* Add integration tests

* Make sure aliases are honored

* Handle systems that have an incorrect last boot time

SystemD and fakehw-clock do not properly set the
last boot time and instead always set it to epoch.
Use a different command if that is the case.

* Copyright and encoding fixes

* Minor fixes based on feedback

* Add exponential backoff to sucess check method

* Update integration test

Skip the integration test if it would try to reboot the control node. We need a new mechanism to account for this scenario in ansible-test, so tests must currently be run manually for this plugin.

* Update integration test

Skip the integration test if it would try to reboot the control node. We need a new mechanism to account for this scenario in ansible-test, so tests must currently be run manually for this plugin.

* Fail early with running with local connection

* Update docs based on feedback

* minor refactoring, state mgmt changes
2018-08-23 18:12:12 -07:00
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 00:21:46 -07:00
integration Add reboot action plugin (#35205) 2018-08-23 18:12:12 -07:00
legacy Vultr: Introducing vultr_network_facts module (#43600) 2018-08-20 00:29:05 +02:00
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner Includes support for Reverse-Mapping zone in nios_zone module (#44525) 2018-08-23 03:07:30 +00:00
sanity Adding module which allows to complete certificate chains (#44169) 2018-08-23 23:18:36 +02:00
units Unit tests for ansible.playbook.become (#38541) 2018-08-23 13:47:20 -05:00
utils Use runtime instead of datetime for test output. 2018-08-23 12:05:10 -07:00