Matt Clay
9788daf13b
Split up more lookup integration tests. ( #67328 )
5 years ago
Matt Clay
cad0110228
Rename kubevirt inventory plugin test. ( #67326 )
...
* Rename kubevirt inventory plugin test.
This maintains association of the test with the plugin.
* Update ignores.
5 years ago
Matt Clay
274417d424
Improve test compatibility with ansible-base. ( #67325 )
...
* Remove shells from test that will be migrated.
* Fix binary_modules test to work without win_ping.
5 years ago
Matt Clay
efc5d62c49
Use a custom test module for module_defaults test.
...
This avoids a dependency on a module which will not remain in the repo after migration.
5 years ago
Matt Clay
8774b2f697
Use `package` for `pkgng` and `zypper` in tests.
...
This allows tests to run on other platforms when `pkgng` or `zypper` are not present.
5 years ago
Rick Elrod
236773bfea
Improve distribution unit tests ( #67300 )
...
* Include distro.{os,lsb}_release_info() in distro fixture generation script
* Add distro release information to existing fixtures
* Add some new fixtures for newer distribution versions
* Add fixture for Arch Linux with lsb-release
5 years ago
Matt Clay
a3b7d67fb0
Split up platform cleanup in tests. ( #67320 )
...
* Split up platform cleanup for git test.
* Split up platform cleanup for ansible-galaxy test.
5 years ago
Mario Lenz
808bf02588
Remove options from some vmware modules that are not used in the code ( #67282 )
5 years ago
Nilashish Chakraborty
88f0c85228
Remove deprecated attributes from nxos_igmp_interface ( #67186 )
...
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
5 years ago
Matt Clay
11eee1181a
Split out platform specific cleanup in pip test.
5 years ago
Matt Clay
89c8eb5a08
Split up lookup integration tests. ( #67294 )
...
* Split up lookup integration tests.
* Rename lookup_paths integration test.
This will avoid confusing it for a test of the `paths` lookup plugin, which does not exist.
* Fix lookup_pipe integration test.
The test now verifies it receives the correct output.
Adding a second task also causes code coverage to be properly registered for the lookup plugin.
* Rename ini lookup test to match plugin name.
* Update sanity ignore path.
5 years ago
Sam Doran
8f296a6533
ansible-test - add constraint for virtualenv ( #67289 )
...
* ansible-test - add constraint for virtualenv
* Limit virtualenv only on macOS.
Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
Matt Clay
c32348088a
Remove conflicting integration test aliases.
...
Modules and plugins can only have one integration test target associated with them.
When there is a conflict between alias(es) and/or the target name, only one target will trigger on changes to the module or plugin.
5 years ago
Gonéri Le Bouder
b65fc3527f
vmware_guest_tools_wait: disable the function test
...
The test fails randomly in the CI with a timeout.
5 years ago
Matt Clay
1110e9d80d
Test AIX with smaller volumes.
5 years ago
Sloane Hertel
3f5aed056b
Integration tests for notify with variable list ( #66423 )
...
Co-authored-by: Luca Berruti <nadirio@gmail.com>
Co-authored-by: lberruti <nadirio@gmail.com>
5 years ago
Matt Clay
88efb24ff8
Rename aci_switch_leaf_policy_profile test.
5 years ago
Matt Clay
d86dcedef1
Rename scaleway_ssh test.
5 years ago
Matt Clay
c2f7c4ae47
Rename rabbitmq lookup test.
5 years ago
Matt Clay
a42a76190e
Renamed meraki_webhooks test.
5 years ago
Matt Clay
a68a8ef2f1
Rename netapp_eseries_* tests to match modules.
...
This will allow the ansible-base migration script to recognize the tests as being associated with their respective modules.
5 years ago
Matt Clay
0d430c2ccc
Rename digital_ocean_ssh_key test.
5 years ago
Matt Clay
f02ceaf66a
Fix AWS test names and aliases. ( #67232 )
...
* Fix AWS test names and aliases.
* Add missing alias.
* Rename ec2_vpc_vpn_facts test.
5 years ago
Matt Clay
6a79bb2b91
Simplify package install in unarchive test.
...
This will enable the test to work on supported platforms when modules for other platforms are not present.
5 years ago
Matt Clay
c92697acec
Move tower_common tests with tower_organization.
5 years ago
Matt Clay
c10f4a8156
Rename azure_rm_workspace test.
5 years ago
Matt Clay
415409c6e3
Rename azure_rm_virtualmachineimage_facts test.
5 years ago
Matt Clay
64567cf4f6
Split tasks for prepare_http_tests.
...
This allows setup of a platform to run even when modules for another platform are not present.
5 years ago
Matt Clay
80561ccef0
Improve sanity test handling in CI after migration.
5 years ago
Matt Clay
7724fb8f33
Split handler tasks for setup_remote_tmp_dir.
...
This allows a platform handler to run even when the module required for the other platform is not present.
5 years ago
Matt Clay
a0242b2173
Improve unit test handling in CI after migration. ( #67217 )
...
* Improve unit test handling in CI after migration.
* Fix undefined var in bash 4.3 and earlier.
See https://git.savannah.gnu.org/cgit/bash.git/tree/CHANGES?id=3ba697465bc74fab513a26dea700cc82e9f4724e#n878
5 years ago
Felix Fontein
f725dce936
Clean up FILE_COMMON_ARGUMENTS ( #66389 )
...
* Clean up FILE_COMMON_ARGUMENTS.
* postgresql_pg_hba doesn't declare the backup option.
* uri doesn't declare the remote_src option.
* Add documentation.
* maven_artifact seems to use directory_mode, which it doesn't declare.
* Update changelogs/fragments/66389-file-common-arguments.yml
Update docs/docsite/rst/porting_guides/porting_guide_2.10.rst
ci_complete
Co-Authored-By: Jill R <4121322+jillr@users.noreply.github.com>
5 years ago
Gonéri Le Bouder
802cc60242
vmware_guest_tools_wait: add timeout parameter
...
Add a new `timeout` parameter to `vmware_guest_tools_wait`.
Also, a functional test to cover the module.
5 years ago
Paul Belanger
4863efd0df
Remove yaml stdout_callback plugin from network-integration tests ( #67203 )
...
With the move to collections, yaml is no longer in ansible base. Switch
back to default stdout.
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
5 years ago
Gonéri Le Bouder
4a1115785f
vmware_guest_network/test: disable the test
...
The test fails in the CI with a timeout of vmware_guest_tools_wait. It's
still unclear if this comes from:
- the ESXi environment
- the VM configuration, e.g: the amount of the RAM
- the ISO image itself
Ideally, we should have a light VM with the vmware-tools.
5 years ago
Paul Belanger
bf4dac10fa
Revert "WIP: testing ansible-base ( #67149 )" ( #67175 )
...
I didn't properly update the commit message via github UI. Revert, to
open a new PR.
This reverts commit 2794142eb3
.
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
5 years ago
Paul Belanger
2794142eb3
WIP: testing ansible-base ( #67149 )
...
Currently, yaml stdout_callback is not in base.
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
5 years ago
Todd Lewis
640bf31f87
user - allow 'groups', 'append' with 'local' ( #62134 )
5 years ago
Paul Belanger
c3635532d3
Revert "Allow httpapi for EOS resource modules ( #66871 )" ( #67131 )
...
This looks to be causing issues for our new ansible.netcommon
collection. Revert for now, until we can properly address.
This reverts commit 53c7f8cbde
.
5 years ago
Andrew Klychkov
637eed5a5c
postgresql modules: fix sanity issues ( #67046 )
...
* postgresql modules: fix sanity issues
* add changelog
* fix changelog
5 years ago
Matt Clay
5e68bb3d93
Add code coverage target analysis to ansible-test. ( #67141 )
...
* Refactor coverage file enumeration.
* Relocate sanitize_filename function.
* Support sets when writing JSON files.
* Generalize setting of info_stderr mode.
* Split out coverage path checking.
* Split out collection regex logic.
* Improve sanitize_filename type hints and docs.
* Clean up coverage erase command.
* Fix docs and type hints for initialize_coverage.
* Update type hints on CoverageConfig.
* Split out logic for finding modules.
* Split out arc enumeration.
* Split out powershell coverage enumeration.
* Raise verbosity level of empty coverage warnings.
* Add code coverage target analysis to ansible-test.
5 years ago
Matt Martz
0e46af17a5
Nuke all removed_module stubs ( #67139 )
...
* Nuke all removed_module stubs
* Remove ignores and botmeta entry
5 years ago
Ruediger Pluem
80c4b86abe
group - correctly determine if a local group exists. ( #59772 )
...
Fixes #58619
Add integration test
5 years ago
Markus Bergholz
822077fefd
Asg mixed instance types ( #67045 )
...
* merge from origin pr 55067
* handle update existing asg with mixed-instance-policy
* fix documentation and append output
* update output documentation
* update documentation version added
* add integration test for mixed instance policy using launch template
* add changelog fragment
* Update lib/ansible/modules/cloud/amazon/ec2_asg.py
Co-Authored-By: Mark Chappell <mchappel@redhat.com>
* Update lib/ansible/modules/cloud/amazon/ec2_asg.py
Co-Authored-By: Mark Chappell <mchappel@redhat.com>
* Update lib/ansible/modules/cloud/amazon/ec2_asg.py
Co-Authored-By: Jill R <4121322+jillr@users.noreply.github.com>
* add warning about botocore version and add expand example documentation
* Update changelogs/fragments/67045-ec2_asg_mixed_instance_policy.yml
Co-Authored-By: Mark Chappell <mchappel@redhat.com>
* Update lib/ansible/modules/cloud/amazon/ec2_asg.py
Co-Authored-By: Mark Chappell <mchappel@redhat.com>
* Update lib/ansible/modules/cloud/amazon/ec2_asg.py
Co-Authored-By: Mark Chappell <mchappel@redhat.com>
* remove useless line
Co-authored-by: Yi-Tse Hong <yitse.hong@soocii.me>
Co-authored-by: Mark Chappell <mchappel@redhat.com>
Co-authored-by: Jill R <4121322+jillr@users.noreply.github.com>
5 years ago
Jordan Borean
78470c43c2
Removed deprecated items in Windows modules ( #67105 )
5 years ago
GomathiselviS
4ac89b8ac7
Added Fix - Allow nxos_l2_interfaces to append the allowed vlans list ( #66517 )
...
* Added Integration tests
* Corrected lint errors
* Added fix for bug # 54400
* Revert "Added fix for bug # 54400"
This reverts commit bf42db4269
.
* Revert "Adding files for RM static_routes"
This reverts commit dafdd92d43
.
* Revert "Added Integration tests"
This reverts commit 129dc87682
.
* Bug Fix 65332
* Added testcase for #66517
* Removed unnecessary commit
* fixing conflicts
* fixing conflicts
* addressed mikeweibe's comments
* Corrected lint errors
* Added idempotent tc for add vlans
* Added replaced and overridded tcs for trunk vlan add
5 years ago
Matt Clay
f4a80bb600
Code cleanup and refactoring in ansible-test. ( #67063 )
...
* Code cleanup in ansible-test.
* Split out encoding functions.
* Consoldate loading of JSON files.
* Split out disk IO functions.
* Simplify file access.
* Add functions for opening files.
* Replace open calls with appropriate functions.
* Expose more types from typing module.
* Support writing compact JSON.
* Add verbosity argument to display.warning.
* Add changelog entry.
* Update files overlooked during rebase.
* Use `io.open` instead of `open`.
* Fix file opening for imp.load_module.
* Remove use of `r+` mode to access files.
* Add missing import.
* Fix httptester on Python 2.x.
* Clarify changelog fragment.
* Consolidate imports. Remove extra newlines.
* Fix indirect imports.
5 years ago
Erwin Oegema
3b32f95fb3
user - warn if "append" is set but not "groups" ( #65795 )
...
This fixes people unknowingly changing the primary group rather than adding a secondary group.
* Add integration test
5 years ago
Felix Fontein
fe454d27a1
Fix removed_in_version to support honor suboptions ( #66918 )
...
* Add unit tests.
* Fix reporting for removed_in_version.
* Add changelog.
5 years ago
Brian Scholer
fc7980af9a
Fix UNC path support in the powershell shell plugin ( #66604 )
...
* Fix UNC path joining in the powershell shell plugin, add test
* Remove testy bits and a redundant line
* Fix style nits
* Update to use os.ntpath
* Add changelog for #66604
5 years ago