ansible/test/units/module_utils
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
..
basic basic: Add name of aliases in error message (#69427) 2020-07-23 16:02:18 +05:30
common Add intentional unit tests for basic._set_cwd and common.dict_merge (#70283) 2020-06-25 14:45:13 -05:00
facts facts - fix incorrect time for some date_time_facts (#70665) 2020-07-30 11:39:58 -04:00
json_utils Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
parsing Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
urls Add multipart/form-data functionality (#69376) 2020-05-20 15:44:01 -05:00
__init__.py
conftest.py Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
test_api.py api: time.clock compatible code (#70650) 2020-07-16 12:24:22 +05:30
test_distro.py Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00