You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
5 years ago
..
_vendor transparent downstream vendoring (#69850) 6 years ago
ansible_test Add Azure Pipelines support to ansible-test. 6 years ago
cli Add collection path in CLI version info (#68633) 6 years ago
compat Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
config Clean up unit test boilerplate. 6 years ago
errors Remove empty overridden unittest.setUp and unittest.tearDown methods. 6 years ago
executor fix internal cases of actions calling unqualified module names (#70818) 6 years ago
galaxy Improve ansible-galaxy STDOUT messages for collections (#70040) 6 years ago
inventory Clean up unit test boilerplate. 6 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 11 years ago
mock Clean up unit test boilerplate. 6 years ago
module_utils facts - fix incorrect time for some date_time_facts (#70665) 5 years ago
modules sanity: remove ansible-bad-function (#70431) 6 years ago
parsing Ensure single vaulted values aren't counted as sequences. Fixes #70784 (#70786) 6 years ago
playbook Update docs for --tags default, and add some tests (#70939) 5 years ago
plugins fix internal cases of actions calling unqualified module names (#70818) 6 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 7 years ago
template Do not treat AnsibleUndefined as being unsafe (#65202) 6 years ago
utils reset logging to INFO (#70878) 6 years ago
vars Remove empty setUp/tearDown/tearDownClass methods in test classes. 6 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
requirements.txt Remove unnecessary unit test requirements. 6 years ago
test_constants.py Remove some constants.py deprecated items (#70466) 6 years ago
test_context.py Clean up unit test boilerplate. 6 years ago