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/sanity
Pilou 016cd0691c alternatives: handle absent link, add integration tests ()
* alternatives: add integration tests

* alternatives: handle absent link (fix AttributeError)

Error occurred at least on Debian Stretch and OpenSuse 42.2:
Traceback (most recent call last):
  File "/tmp/ansible_RY6X41/ansible_module_alternatives.py", line 161, in <module>
    main()
  File "/tmp/ansible_RY6X41/ansible_module_alternatives.py", line 113, in main
    current_path = current_path_regex.search(display_output).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

update-alternatives stdout sample:
dummy - manual mode
  link best version is /usr/bin/dummy1
  link currently absent
  link dummy is /usr/bin/dummy

* alternatives: PEP 8 fixes

* alternatives: fix copyright in integration tests

* alternatives: nested loops handle more than 2 items

Thanks to Michael Scherer (@mscherer) for pointing that.

* alternatives: enable integration tests
2017-08-16 10:35:56 -04:00
..
ansible-doc Remove remnants of obsolete fireball mode. 2016-12-09 16:56:34 -07:00
code-smell Fix wildcard imports, remove get_exception, add boilerplate 2017-08-12 03:13:53 -07:00
import circonus_annotation: fix broken import, update requirements 2017-08-15 19:07:21 -07:00
pep8 alternatives: handle absent link, add integration tests () 2017-08-16 10:35:56 -04:00
pylint Add some features to the pylint sanity check 2017-07-29 14:13:30 -07:00
rstcheck Add rstcheck to ansible-test and correct issues. () 2017-04-13 10:28:52 -07:00
shellcheck Disable newer shellcheck tests which don't pass. 2017-02-27 22:31:47 -08:00
validate-modules metadata 1.1 2017-08-15 23:12:08 -07:00