ansible/test/units
Sam Doran c4f442ed5a
facts - fix incorrect time for some date_time_facts (#70665)
The iso8601_micro and iso8601 facts incorrectly called now.utcnow(), resulting
in a new timestamp at the time it was called, not a conversion of the previously
stored timestamp.

Correct this by capturing the UTC timestamp once then calculating the local
time using the UTC offset of the current system.

* Use time.time() for getting the current time
* Convert from that stored epoch timestamp to local and UTC times
* Used existing timestamp for epoch time
* Add unit tests that validate the formate of the return value rather than an exact value since mocking time and timezone is non-trivial
2020-07-30 11:39:58 -04:00
..
_vendor transparent downstream vendoring (#69850) 2020-06-15 16:22:25 -07:00
ansible_test Add Azure Pipelines support to ansible-test. 2020-06-11 14:57:42 -07:00
cli Add collection path in CLI version info (#68633) 2020-06-25 01:58:56 -04:00
compat
config Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
errors
executor fix internal cases of actions calling unqualified module names (#70818) 2020-07-23 09:02:57 -07:00
galaxy Improve ansible-galaxy STDOUT messages for collections (#70040) 2020-06-29 15:18:30 -04:00
inventory Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
inventory_test_data/group_vars
mock Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
module_utils facts - fix incorrect time for some date_time_facts (#70665) 2020-07-30 11:39:58 -04:00
modules sanity: remove ansible-bad-function (#70431) 2020-07-07 11:46:28 -04:00
parsing Ensure single vaulted values aren't counted as sequences. Fixes #70784 (#70786) 2020-07-21 16:48:35 -05:00
playbook Update docs for --tags default, and add some tests (#70939) 2020-07-29 17:16:57 -05:00
plugins fix internal cases of actions calling unqualified module names (#70818) 2020-07-23 09:02:57 -07:00
regex
template Do not treat AnsibleUndefined as being unsafe (#65202) 2019-11-25 15:06:29 +01:00
utils reset logging to INFO (#70878) 2020-07-24 15:53:17 -04:00
vars
__init__.py
requirements.txt Remove unnecessary unit test requirements. 2020-03-23 11:14:21 -05:00
test_constants.py Remove some constants.py deprecated items (#70466) 2020-07-07 18:41:19 -05:00
test_context.py Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00