Andrew Klychkov
54520c4685
mysql_user: priv parameter can also be a dictionary ( #66801 )
...
* mysql_user: add priv_dict parameter
* add changelog
* priv can be string or dictionary
* fix example
5 years ago
Mark Chappell
813091cf94
Migrate ec2_vol_info to AnsibleAWSModule ( #66979 )
...
* Migrate ec2_vol_info to AnsibleAWSModule
* Enable ec2_vol_info tests
* Add changelog
* Update lib/ansible/modules/cloud/amazon/ec2_vol_info.py
Co-Authored-By: Sloane Hertel <shertel@redhat.com>
5 years ago
John R Barker
7968271559
Add migrated_to: community.grafana ( #66981 )
5 years ago
Felix Fontein
f1a30164c5
Fix 'container_default_behavior: no_defaults'. ( #66601 )
5 years ago
Jordan Borean
2a9ec8975f
win_unzip - LiteralPath fix ( #66972 )
...
* win_unzip - LiteralPath fix
* Fix up Python sanity issues
5 years ago
Matt Clay
d584584474
Reorganize ansible-test coverage code.
...
This change moves all code for the `ansible-test coverage` command into the `coverage` directory.
Each subcommand is split into a separate file.
Only minor spelling changes were made aside from code relocation.
5 years ago
Gonéri Le Bouder
2ea159eefd
vmware_cluster_facts does not set hosts key
...
Since https://github.com/ansible/ansible/pull/61006 `vmware_cluster_info`
exposes a new key called `hosts`. The deprecated module
`vmware_cluster_facts` keeps the previous behaviour, and so we must keep
its test-suite unchanged.
5 years ago
Mark Chappell
5d4d9d40af
ansible-test - Add 'get' to the list of bad choices for state ( #66921 )
...
* ansible-test - Add 'get' to the list of bad choices for state
* Changelog fragment
5 years ago
Jordan Borean
811c54a7a4
validate-modules - support deprecated_aliases ( #66965 )
...
* validate-modules - support deprecated_aliases
* Removed changelog fragment
5 years ago
Matt Clay
4452f506a8
Split up filter integration tests. ( #66962 )
...
* Split out json_query filter tests.
* Split out urlsplit filter tests.
* Split out ipaddr filter tests.
* Split out urls filter tests.
* Split out mathstuff filter tests.
* Clean up core filter tests.
5 years ago
Sam Doran
5112feeace
Make get_bin_path() always raise an exception ( #56813 )
...
This makes it behave in a more idiomatic way
* Fix bug in Darwin facts for free memory
If the vm_stat command is not found, fact gathering would fail with an unhelpful
error message. Handle this gracefully and return a default value for free memory.
* Add unit tests
5 years ago
Andrew Klychkov
c9a34ae33e
mysql modules: fix the module's documentation ( #66848 )
5 years ago
Sam Doran
c8568a5c94
Add documentation about vars used in roles at the play level ( #66907 )
5 years ago
Paul Belanger
adf73d47ec
Remove unused imports from paramiko_ssh connection ( #66948 )
...
These were caught by flake8 testing for ansible.netcommon collection.
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
5 years ago
Toshio Kuratomi
4273e84962
Upstream jinja has decided not to rename from jinja2. ( #66880 )
...
So we're going to keep our intersphinx labels as jinja2 to match what
upstream is doing
5 years ago
Abhijeet Kasurde
2728c2476e
docs: Fixed "Edit on GitHub" link for plugin, cli ( #66745 )
...
Fixed sphinx theme to navigate "Edit on Github" link to locate correct
plugin, cli source in GitHub repo.
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Yanis Guenane
76809bbba2
testing: Enable AIX has a platform again
5 years ago
Nathaniel Case
bf65e7a3f6
nxos_facts: Don't fail if faninfo isn't reported ( #66866 )
5 years ago
sky-joker
72e1716f29
Fix to gather facts include macro and tag ( #66947 )
5 years ago
Dusan Matejka
e3190adcbb
zabbix_host - added support for usermacros and tags ( #66777 )
5 years ago
Felix Fontein
5fdc9a61f0
docker_container: pass volumes only for anonymous volumes ( #66600 )
...
* Simplify code.
* Only pass anonymous volumes.
* Add changelog and update porting guide.
* Add integration tests.
5 years ago
Dusan Matejka
57805b7def
zabbix_proxy interface option documentation and argspec fixes ( #66837 )
...
* zabbix_proxy interface option documentation and argspec fixes
* Update changelogs/fragments/66837-zabbix-proxy-interface.yml
Co-Authored-By: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
5 years ago
fraff
553997db25
Add new module cloud/ovh/ovh_monthly_billing.py ( #65730 )
...
remove useless 'state' parameter and update doc
remove useless module.params.get('state')
Update lib/ansible/modules/cloud/ovh/ovh_monthly_billing.py
Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com>
Update lib/ansible/modules/cloud/ovh/ovh_monthly_billing.py
Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com>
Update lib/ansible/modules/cloud/ovh/ovh_monthly_billing.py
Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com>
Update lib/ansible/modules/cloud/ovh/ovh_monthly_billing.py
Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com>
Update lib/ansible/modules/cloud/ovh/ovh_monthly_billing.py
Update lib/ansible/modules/cloud/ovh/ovh_monthly_billing.py
Update lib/ansible/modules/cloud/ovh/ovh_monthly_billing.py
Update lib/ansible/modules/cloud/ovh/ovh_monthly_billing.py
add application_key, application_secret and consumer_key optional parameters
Add some example concerning ovh auth.
5 years ago
Matt Clay
df1144ced7
Temporarily remove AIX from test matrix.
...
AIX provisioning is failing.
5 years ago
Matt Clay
49d8d5ae33
Fix ansible-test tar format handling.
5 years ago
Yanis Guenane
4fd2dce7f3
Testing: Add support for AIX platform ( #65802 )
5 years ago
Sviatoslav Sydorenko
eec6afd116
Explicitly set junit_family=xunit1 @ pytest config
...
This change hides the deprecation warning and protects from
failures in pytest==6.0.0
Ref:
* https://github.com/ansible/ansible/pull/66445#discussion_r372530176
Co-Authored-By: Matt Clay <matt@mystile.com>
5 years ago
Matt Clay
479845a05c
Expand Shippable test matrix. ( #66912 )
...
* Add 2 CI groups for AWS.
* Add 1 CI group for vmware.
* Add 1 CI group for CS.
* Add 1 CI group for posix.
5 years ago
rule88
6a1f82f174
url lookup - add options to match those in urls.py ( #64892 )
...
Add 'force_basic_auth' option
By default "force_basic_auth" option is set to False, with this adjustment it is up to the user if it wants to enforce basic authentication.
5 years ago
Rick Elrod
e2a57414f4
Remove `with` statement for pytest-mock unit tests
...
As per:
https://github.com/pytest-dev/pytest-mock#note-about-usage-as-context-manager
pytest-mock is not meant to be used within a `with` context or as a
decorator. Instead, pytest-mock will automatically unpatch the mocked
methods when each test is complete.
In newer pytest-mock, this use actually throws an exception and causes
the tests to fail.
This hasn't been hit in Ansible's CI yet, because the docker image
that the tests run in uses an older version of pytest-mock. However,
there is no constraint on the upper bound of pytest-mock in
test/lib/ansible_test/_data/requirements/constraints.txt which means
that when running the tests locally, outside of that docker image, the
tests never pass.
This patch removes the `with` context in each such case.
Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Mark Chappell
1156962cde
Forbid `state=(list|info)` in modules via ansible-test sanity check
...
PR #66898
This change introduces a new sanity check with code
`parameter-state-invalid-choice` in the `ansible-test sanity`
validator. It enforces modules not to support `list` or `info`
as their `state`.
Co-Authored-By: Sviatoslav Sydorenko <webknjaz@redhat.com>
Co-Authored-By: Felix Fontein <felix@fontein.de>
5 years ago
Gonéri Le Bouder
6e2fff1acc
vmware_vswitch/test: clean up vmswitch_0002
...
Ensure `vmswitch_0002` get removed from ESXi2 at the end of the test.
5 years ago
Matt Clay
e64b279ea1
Add CS smoketest group for CI.
5 years ago
Jiri Hnidek
6f1bb37feb
When no pool quantity is set, then do not set quantity to 1 ( #66807 )
...
* Fixes #66478
* When no quantity is set, then candlepin server usually uses
default value 1. When more quantities are required, then
candlepin server can automatically choose correct minimal
value.
5 years ago
Sam Doran
9276dd2007
file - change warning to error ( #66671 )
...
When 'src' is specified without 'state', raise an exception
5 years ago
René Moser
91063f40d6
tests: ipify_facts: retry on fail ( #66897 )
5 years ago
ngp-star
8ba324a33d
VMware: shares and io limits support while adding new disk ( #64087 )
...
Fixes : #25714
5 years ago
Joseph Hobbs
72fbbbeb34
Typo correction ( #66869 )
...
* Corrected typo in documentation
* Corrected typo in the log statement
5 years ago
Andrew Klychkov
308723c3ca
postgresql_idx: revert PR for 64138 ( #66889 )
5 years ago
René Moser
4752547d35
ecs_tag: remove state=list ( #66811 )
...
* ecs_tag: remove state=list
* adjust tests
5 years ago
Matt Clay
3c3cf50e7a
Fix ansible-test coverage of ansible-connection.
5 years ago
Matt Clay
21069c84d9
Fix ansible-test color `ls` logic.
5 years ago
Matt Clay
428aaf7e65
Keep SSH authorized keys in ansible-test setup.
5 years ago
Matt Clay
efd2dd8929
Add more ansible-test args to delegation config.
5 years ago
Matt Clay
ee50792416
Add a `--no-pip-check` option to ansible-test.
5 years ago
Matt Clay
0971a0e7bc
Consolidate remote Shippable scripts.
5 years ago
Eitan Adler
86663abf37
all: fix all the the duplicate words ( #66784 )
5 years ago
Geri Jennings
b482857fd3
Update conjur_variable.py ( #66763 )
...
Update the link in the Conjur documentation to point to the correct current URL
for information on Conjur machine identity.
5 years ago
Slawek Zachcial
9656811e7c
Fix virtual private gateway filters reference link ( #66772 )
5 years ago
Mark Chappell
35652ca788
Add tests to make sure that the documented 'elements' matches that defined in argument_spec ( #66385 )
...
* Add tests to make sure that the documented 'elements' matches that defined in argument_spec
* Mass-add test/sanity/ignore.txt
5 years ago