mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-27 05:58:50 +00:00
* Vendor plugins/module_utils/mount.py from ansible.posix, and drop ansible.posix dependency (except for testing).
* Add ignore.txt entries.
* Install test requirements conditionally.
* Apply suggestions from code review
Co-authored-by: John R Barker <john@johnrbarker.com>
* Bump to major changes.
Co-authored-by: John R Barker <john@johnrbarker.com>
(cherry picked from commit 20f470cc64)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
88bd8fc7ea
commit
6708ee1afd
9 changed files with 111 additions and 6 deletions
|
|
@ -5,7 +5,6 @@ integration_tests_dependencies:
|
|||
- community.kubernetes
|
||||
unit_tests_dependencies:
|
||||
- ansible.netcommon
|
||||
- ansible.posix
|
||||
- community.internal_test_tools
|
||||
- community.kubernetes
|
||||
- google.cloud
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ plugins/callback/hipchat.py pylint:blacklisted-name
|
|||
plugins/connection/lxc.py pylint:blacklisted-name
|
||||
plugins/module_utils/compat/ipaddress.py no-assert
|
||||
plugins/module_utils/compat/ipaddress.py no-unicode-literals
|
||||
plugins/module_utils/_mount.py future-import-boilerplate
|
||||
plugins/module_utils/_mount.py metaclass-boilerplate
|
||||
plugins/modules/cloud/atomic/atomic_container.py validate-modules:doc-required-mismatch
|
||||
plugins/modules/cloud/centurylink/clc_aa_policy.py validate-modules:doc-missing-type
|
||||
plugins/modules/cloud/centurylink/clc_aa_policy.py yamllint:unparsable-with-libyaml
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ plugins/callback/hipchat.py pylint:blacklisted-name
|
|||
plugins/connection/lxc.py pylint:blacklisted-name
|
||||
plugins/module_utils/compat/ipaddress.py no-assert
|
||||
plugins/module_utils/compat/ipaddress.py no-unicode-literals
|
||||
plugins/module_utils/_mount.py future-import-boilerplate
|
||||
plugins/module_utils/_mount.py metaclass-boilerplate
|
||||
plugins/modules/cloud/atomic/atomic_container.py validate-modules:doc-required-mismatch
|
||||
plugins/modules/cloud/centurylink/clc_aa_policy.py validate-modules:doc-missing-type
|
||||
plugins/modules/cloud/centurylink/clc_aa_policy.py yamllint:unparsable-with-libyaml
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ plugins/callback/hipchat.py pylint:blacklisted-name
|
|||
plugins/connection/lxc.py pylint:blacklisted-name
|
||||
plugins/module_utils/compat/ipaddress.py no-assert
|
||||
plugins/module_utils/compat/ipaddress.py no-unicode-literals
|
||||
plugins/module_utils/_mount.py future-import-boilerplate
|
||||
plugins/module_utils/_mount.py metaclass-boilerplate
|
||||
plugins/modules/cloud/centurylink/clc_aa_policy.py validate-modules:doc-missing-type
|
||||
plugins/modules/cloud/centurylink/clc_alert_policy.py validate-modules:doc-missing-type
|
||||
plugins/modules/cloud/centurylink/clc_alert_policy.py validate-modules:no-default-for-required-parameter
|
||||
|
|
|
|||
|
|
@ -68,12 +68,21 @@ cd "${TEST_DIR}"
|
|||
|
||||
# START: HACK install dependencies
|
||||
retry ansible-galaxy -vvv collection install ansible.netcommon
|
||||
retry ansible-galaxy -vvv collection install ansible.posix
|
||||
retry ansible-galaxy -vvv collection install community.crypto
|
||||
retry ansible-galaxy -vvv collection install community.internal_test_tools
|
||||
retry ansible-galaxy -vvv collection install community.kubernetes
|
||||
retry ansible-galaxy -vvv collection install google.cloud
|
||||
|
||||
if [ "${script}" != "sanity" ] || [ "${test}" == "sanity/extra" ]; then
|
||||
# Nothing further should be added to this list.
|
||||
# This is to prevent modules or plugins in this collection having a runtime dependency on other collections.
|
||||
retry ansible-galaxy -vvv collection install community.internal_test_tools
|
||||
fi
|
||||
|
||||
if [ "${script}" != "sanity" ] && [ "${script}" != "units" ]; then
|
||||
# To prevent Python dependencies on other collections only install other collections for integration tests
|
||||
retry ansible-galaxy -vvv collection install ansible.posix
|
||||
retry ansible-galaxy -vvv collection install community.crypto
|
||||
fi
|
||||
|
||||
# END: HACK
|
||||
|
||||
export PYTHONIOENCODING='utf-8'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue