Felix Fontein
801b1edcbe
Move unit test to right place. ( #365 )
2020-05-19 11:15:43 +02:00
Felix Fontein
edfbb40731
Moved to google.cloud in ansible-collections/google.cloud#228. ( #364 )
2020-05-19 11:15:11 +02:00
Pavlo Bashynskyi
80d41583d1
Add info command to redis module ( #286 )
...
* Add info command to redis module
* Fix sanity test
* Create a separate redis_info module
* Type of arguments in documentation was determined
* Add redis_info test
* Fix sanity test
* Add integration test
* Add integration platforms (centos7/8,fedora30/31,opensuse15+py2,ubuntu1604/1804)
* Add centos6 support
* Fix suggestions
* Add contact email
2020-05-12 20:18:24 +03:00
Felix Fontein
d2b6857cd1
Update tests/unit/requirements.txt for maven_artifact ( #314 )
2020-05-09 11:03:33 +02:00
Andrea Scarpino
c2e37d202a
parted: support fs_type ( #221 )
...
* parted: support fs_type
Closes #135
* Update plugins/modules/system/parted.py
Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru>
* Update plugins/modules/system/parted.py
Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru>
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-04-27 18:30:48 +03:00
Eric Belhomme
695eed943b
add etcd3 lookup plugin ( #127 )
...
* add etcd3 lookup plugin
* retire version_added tag
Co-Authored-By: Felix Fontein <felix@fontein.de>
* typo fixes
Co-Authored-By: Felix Fontein <felix@fontein.de>
* fix YAML syntax in example
Co-Authored-By: Felix Fontein <felix@fontein.de>
* typo fixes
Co-Authored-By: Felix Fontein <felix@fontein.de>
* remove python shebang as it is useless in Ansible lookup module
Co-Authored-By: Felix Fontein <felix@fontein.de>
* Update plugins/lookup/etcd3.py typo
Co-Authored-By: Felix Fontein <felix@fontein.de>
* fixes:
- replaced LookupBase._display by ansible.utils.display.Display
- add regex to retrieve host and port from ETCDCTL_ENDPOINTS env
- add env support for user, password, timeout
* fixes:
- use short form for types
- update doc section with envs
- catch exceptions between etcd3 api calls
* etcd3 lookup pass ansible sanity checks
introduce ansible integration tests for etcd3 lookup
* extract etcd3 setup from existing etcd3 module integration test
* fix etcd3 module/lookup integration tests
* fixes:
- fix port option in docstring
- raise connecttion error
- fix display format issues
- fix ETCDCTL_ENDPOINTS regex
adds:
- basic unit tests
* fix sanity issues
* add etcd3 lookup plugin
* retire version_added tag
Co-Authored-By: Felix Fontein <felix@fontein.de>
* typo fixes
Co-Authored-By: Felix Fontein <felix@fontein.de>
* fix YAML syntax in example
Co-Authored-By: Felix Fontein <felix@fontein.de>
* typo fixes
Co-Authored-By: Felix Fontein <felix@fontein.de>
* remove python shebang as it is useless in Ansible lookup module
Co-Authored-By: Felix Fontein <felix@fontein.de>
* Update plugins/lookup/etcd3.py typo
Co-Authored-By: Felix Fontein <felix@fontein.de>
* fixes:
- replaced LookupBase._display by ansible.utils.display.Display
- add regex to retrieve host and port from ETCDCTL_ENDPOINTS env
- add env support for user, password, timeout
* fixes:
- use short form for types
- update doc section with envs
- catch exceptions between etcd3 api calls
* etcd3 lookup pass ansible sanity checks
introduce ansible integration tests for etcd3 lookup
* extract etcd3 setup from existing etcd3 module integration test
* fix etcd3 module/lookup integration tests
* fixes:
- fix port option in docstring
- raise connecttion error
- fix display format issues
- fix ETCDCTL_ENDPOINTS regex
adds:
- basic unit tests
* fix sanity issues
* changes:
- replace kwargs lookups with get_option()
- add 'entpoint' option for correct handling of ETCDCTL_ENDPOINTS env
- code simplification
* fix etcd3 lookup unit test:
replace LookupModule instanciation with lookup_loader
* fix sanity checks
* etcd3 changes:
- docstring documentation fixes/updates
- create etcd3 cnx object with a get_option() loop instead of copying 'private' class object
- set 'endpoints' option mutually exclusive with 'host' and 'port' (raises an AnsibleError exception)
* etcd3 changes:
- added ANSIBLE_METADATA,
- added default value for 'endpoints' option,
- removed defaults for options 'host' and 'port',
- fixed docstring links,
- added 'notes' and 'seealso' sections in doctring
- updated options code handling to reflect docstring's updates
* etcd3 changes:
- fix descriptions for endpoints, host, and port options
- update notes sections
- fix reference to etcd lookup plugin in seealso section
- fix return docstring
- remove useless logging
- obfuscates password in connection logging
* more pythonic lookup on dict keys
Co-Authored-By: Felix Fontein <felix@fontein.de>
* Update password obfuscation
Co-Authored-By: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-04-25 10:58:06 +02:00
Felix Fontein
703daa9500
Add small unit test framework for testing fetch_url() based modules ( #171 )
...
* Convert integrated simple fetch_url() checking framework from hetzner_firewall tests to proper framework which can also be used by other modules.
* Linting.
* One more.
* Use community.internal_test_tools collection.
2020-04-23 14:50:44 +02:00
Andrew Klychkov
bb459cb014
postgresql_user: add scram-sha-256 password support ( #100 )
...
* postgresql_user: add support for scram-sha-256 passwords
* postgresql_user: add support for scram-sha-256 passwords
* add changelog fragment
* fix
2020-04-22 12:45:14 +01:00
Michal Middleton
0c0490298f
Slack: Add bot/user token support, correct thread_ts support ( #123 )
...
* Slack: Add bot/user token support, correct thread_ts support
Add support for user/bot/application tokens (and Slack WebAPI).
Fix input type for thread_id, which needs to be string.
Return thread_ts/thread_id when user/bot tokens are used, so they can be reused later
* Slack: Add changelog fragment, fix YAML syntax
Co-authored-by: Middleton, Michal <Michal.Middleton@concur.com>
2020-04-17 12:44:55 +01:00
René Moser
ec52007c8d
cloudstack migrated to dedicated collection ngine_io.cloudstack ( #173 )
...
* cloudstack migrated to dedicated collection ngine_io.cloudstack
* remove leftovers
* remove more leftovers
2020-04-14 07:33:10 +02:00
Andrew Klychkov
6d7f66539c
postgresql_user: add trust_input parameter ( #116 )
...
* postgresql: add input checks for potentially dangerous substrings
* postgresql_user: add trust_input parameter
* add CI, add changelog fragment
* fix CI
* moved input patterns outside is_input_dangerous function
* Update plugins/module_utils/database.py
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
* Update plugins/module_utils/database.py
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
* fix
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2020-04-12 13:16:44 +02:00
John R Barker
c313c825f4
[wip] Remove network content ( #84 )
...
* rebase
* remove broken symlinks
* more deletes
* restore cs_* integration tests
* More deletes - from Felix
* cs_common
* Remove some more ignores
2020-04-01 21:34:05 +02:00
Felix Fontein
be191cce6c
Move modules and module_utils unit tests to correct place ( #81 )
...
* Move modules and module_utils unit tests to correct place.
* Update ignore.txt
* Fix imports.
* Fix typos.
* Fix more typos.
2020-03-31 10:42:38 +02:00
Felix Fontein
6172e56b62
Fix netapp modules ( #76 )
...
* Replace missing netapp parts with own copy.
* Localize final fragment.
* Mark netapps docs fragment as deprecated.
* Drop dependency on netapp.ontap.
* Remove all netapp_e_* modules.
* Remove docs fragment.
2020-03-31 09:41:29 +02:00
Felix Fontein
0026c9f5b2
Fix become plugins ( #50 )
...
* Fix become plugins.
* Fix become unit tests to avoid play_context.make_become_cmd.
* Remove hack.
* Remove explicit defaults. Adjust tests to be more like Ansible itself.
* Forgot two lines.
* Rewrite tests (again).
* Rename play_context -> task, add possibility to pass var_options.
* Add var_options variants.
* Properly test overwriting.
2020-03-30 19:09:45 +02:00
Felix Fontein
14731bf485
Fix even more tests ( #69 )
...
* Remove meraki unit tests.
* Reenable disabled tests.
* Re-disable xfs_quota tests - depend on ansible/ansible#68223 .
* Fix FQCNs.
* More FQCNs.
* Fix typo.
2020-03-30 08:24:27 +01:00
Egor Zaitsev
4fba692c1b
routeros_facts: fix crash when ipv6 is disabled ( #39 )
...
* routeros_facts: fix crash when ipv6 is disabled
* chore: rename fixture file
2020-03-27 07:10:42 +00:00
Felix Fontein
76880e2403
Fix more plugin unit tests. ( #51 )
2020-03-25 22:37:34 +00:00
Felix Fontein
07ecfc940c
Fix imports, part 2 ( #42 )
...
* Recover missing netapp.ontap module doc fragments from ansible/ansible@pre-ansible-base.
* Fix PEP8 issues.
* Remove netbox empty files, and test which shouldn't be here.
* Add forgotten file for kubevirt tests.
* Fix unit test imports.
* ansible/ansible#68415 has been fixed.
* Clean up/rearrange imports.
* Update ignore.txt, fix boilerplate.
* Netapp docs fragment: fix spacing
* Forgot to adjust kubevirt tests.
2020-03-25 11:43:51 +00:00
Felix Fontein
25394eeafb
Fix imports and installing dependencies in CI, part 1 ( #41 )
...
* Fix ovirt collection name (ovirt.ovirt_collection, not ovirt.ovirt).
* Fix kubernetes module_utils references.
* Fix broken f5 imports on community.general side. The imports in that collection are still broken and will still cause failures.
* Fix Cisco ACI and MSO modules imports.
* Fix check_point.mgmt dependency, fix imports.
* Fix fortimanager imports.
* Fix cisco intersight imports.
* Fix ovirt module docs fragments.
* Fix usage of _ in unit tests to avoid sanity failures.
* Fix Cisco module docs fragments.
* Fix netapp.ontap module docs fragment name.
* Fix documentation.
* Fix some boilerplate (the ones not mentioned in ignore.txt).
2020-03-24 22:14:53 +00:00
Felix Fontein
c012d0fba7
Fix unit test relative imports, and permissions for included collection requirements ( #29 )
...
* Fix Hetzner firewall unit test imports.
* Make sure tests can actually access collections.
* Fix more relative imports.
* Fix more relative imports.
* Fix more includes.
* Fix more tests.
* One more.
* Fix syntax error in sanity import tests (invalid escape sequence "\$" caused by non-raw docs block)
* Fix permissions of ansible-test parts for sanity tests.
* Revert "Fix permissions of ansible-test parts for sanity tests."
This reverts commit c2713f0a12
.
2020-03-24 08:27:28 +00:00
Felix Fontein
7e60763ab3
Fix unit test imports. ( #27 )
2020-03-22 18:59:18 +00:00
John R Barker
d21e7bd81c
Add interfaces_file unit tests ( #21 )
2020-03-17 17:15:18 +00:00
Jesse Pretorius
5d47ab7096
Remove rabbitmq content ( #13 )
...
This content has been moved to:
https://github.com/ansible-collections/rabbitmq
2020-03-17 09:01:39 +00:00
Jesse Pretorius
0ffe9fa6c4
Remove libvirt/virt content ( #14 )
...
This content has been moved to:
https://github.com/ansible-collections/libvirt
2020-03-13 15:50:53 +00:00
Ansible Core Team
aebc1b03fd
Initial commit
2020-03-09 09:11:07 +00:00