Toshio Kuratomi
ccbcb4b5e9
Update grep for six to not falsely trigger when six is only a substring of a different library
9 years ago
Toshio Kuratomi
4304574c00
Fix unarchive failures when the destination is a symlink to a directory ( #15999 )
...
Also add integration tests for this problem and unicode filenames inside
a tarball.
Fixes #3725
9 years ago
Toshio Kuratomi
6b964a1594
Update test off make_become for ssh pty race mitigation ( #15931 )
9 years ago
nitzmahone
ff346a199c
fix windows integration tests to run under kerberos users
9 years ago
Robin Roth
03e7f54071
Don't use 'from ansible.module_utils import foo' style here as it breaks ( #15756 )
...
py.test"
9 years ago
Toshio Kuratomi
cae6240e5e
Ship constants to the modules via internal module params rather than a secondary dict.
9 years ago
Toshio Kuratomi
90fb1fb3fa
If we can't squash for any reason, then simply do not optimize the items loop.
...
Also add more squashing testcases
Fixes #15649
9 years ago
Toshio Kuratomi
8a84ef80e2
Strip junk after JSON return. ( #15822 )
...
Fixes #15601
9 years ago
Toshio Kuratomi
b7cab0533e
Remove reload from arg related tests. Changes to how ziploader passes args mean we don't need reload anymore. ( #15782 )
9 years ago
Toshio Kuratomi
d2e8e8d6a7
Switch to a different url for testing SNI right now. ( #15798 )
9 years ago
nitzmahone
761cdc794e
add jimi-c's unit test for squashed skip results, tweaked is_skipped() logic to pass
9 years ago
Yannig
40c0f34c41
When var name is the same as var content, try to template it before reporting that var is not defined. ( #13629 )
...
* When var name is the same as var content, try to template it before reporting that var is not defined.
Add asserts in test_var_blending to check this special corner case.
* Fix integration tests when using debug with list or dict.
9 years ago
Toshio Kuratomi
1e5708514b
Fix ziploader for the cornercase of ansible invoking ansible.
...
* Make ziploader's ansible and ansible.module_utils libraries into
namespace packages.
* Move __version__ and __author__ from ansible/__init__ to
ansible/release.py. This is because namespace packages only load one
__init__.py. If that is not the __init__.py with the author and
version info then those won't be available.
* In ziploader, move the version ito ANSIBLE_CONSTANTS.
* Change PluginLoader to properly construct the path to the plugins even
when namespace packages are present.
9 years ago
Toshio Kuratomi
430bef907a
Fix for unittests on python2.6 or less
9 years ago
Robin Roth
1c447016c3
extend zypper integration tests ( #15596 )
...
* extend zypper integration tests
* fix caching issue of local RPMS on openSUSE 42.1 Leap
* add tests for simultaneous install/remove via prefixes +-
* test fail cases (rm patch or URL)
* test patch install (succes, unchanged second run, fail on wrong name)
* add test for pattern install
9 years ago
Toshio Kuratomi
41f5ce80fa
Some algorithmic unittests for the apt and docker modules
9 years ago
Toshio Kuratomi
e4a1622f53
Do not check docker or azure module_utils code for py2.4 compat (the libs require py2.6+)
9 years ago
Toshio Kuratomi
85bef402b1
Merge pull request #14614 from gundalow/test_binary
...
non-destructive says we should run test_binary at v2
9 years ago
Tegan Snyder
bf0da4aa3c
add centrify dzdo escalation ( #15219 )
...
add dzdo context, and test
9 years ago
Toshio Kuratomi
44e21f7062
Allow AnsibleModules to be instantiated more than once in a module
...
Fix SELINUX monkeypatch in test_basic
9 years ago
jctanner
4d36b3f7b6
Extend the get_url integration tests to include file schemas. ( #15532 )
...
Addresses https://github.com/ansible/ansible-modules-core/issues/3511
9 years ago
Toshio Kuratomi
e893b65a9b
Don't pick up whole commented lines in the urlopen code-smell tests
9 years ago
Robin Roth
7a4e4c2b02
extend integration test for zypper_repository ( #15387 )
...
* include options refresh and priority introduced in ansible/ansible-modules-extras#1990
* test repo update both based on name and URL
* run on all suse flavors
* test overwriting repos by url or name
9 years ago
Robin Roth
59bad647b6
Revert "Disable new git tests until a fix for rhel6/7 is merged."
...
This reverts commit 197d3dfe97
.
9 years ago
Toshio Kuratomi
03126f7097
Fix cut and paste error of test code
9 years ago
Toshio Kuratomi
197d3dfe97
Disable new git tests until a fix for rhel6/7 is merged.
9 years ago
Toshio Kuratomi
0a31c24938
Merge pull request #15419 from nitzmahone/module_debug_arg_override
...
add _load_params debug overrides for module args/file passed on cmdline
9 years ago
Brian Coca
33761efd19
Merge pull request #15417 from bcoca/copy_vaulted
...
Copy vaulted
9 years ago
Robin Roth
e8b1c4e14a
add test for git with both depth and version arguments ( #15471 )
...
* add test for ansible/ansible-modules-core#3456
combination of options version and depth
* add test of switching to older branch
9 years ago
Matt Davis
822f904aa6
Merge pull request #14813 from mattclay/lxd-plugin
...
Add lxd connection plugin.
9 years ago
James Cammarata
6eefc11c39
Make the loop variable (item by default) settable per task
...
Required for include+with* tasks which may include files that also
have tasks containing a with* loop.
Fixes #12736
9 years ago
nitzmahone
5b336832af
add _load_params debug overrides for module args/file passed on cmdline
...
Updated python module wrapper explode method to drop 'args' file next to module.
Both execute() and excommunicate() debug methods now pass the module args via file to enable debuggers that are picky about stdin.
Updated unit tests to use a context manager for masking/restoring default streams and argv.
9 years ago
Matt Davis
6322ed833e
Merge pull request #15422 from jhawkesworth/win_regedit_binary_tests
...
Windows: add win_regedit integration tests (needs https://github.com/ansible/ansible-modules-extras/pull/2034 )
9 years ago
James Cammarata
ed35e8bce2
Don't override the http status code when successful in urls.py
9 years ago
Toshio Kuratomi
7833b5bec4
Merge pull request #15420 from robinro/distribution_version_tests
...
Distribution version tests
9 years ago
Robin Roth
9bb069f873
Apache2 module integration test ( #15380 )
...
* add integration test for apache2_module
* fix assert syntax
* check os_family for this test
* add comment why only debian and suse are tested
* move apache2 test to destructive
* install apache2 package
9 years ago
Matt Clay
5fc76df18b
Add lxd connection plugin.
9 years ago
Matt Martz
a985bf6a31
Don't pass context to urlopen, instead add it to the handlers. Fixes https://github.com/ansible/ansible-modules-core/issues/3437
9 years ago
Robin Roth
49cdc565c5
remove nose.tools use
9 years ago
Robin Roth
4088aa2b4c
get rid of assert_in
9 years ago
Robin Roth
692bf51fde
move gen_testcase to hacking/tests
...
* also use json instead of pprint
9 years ago
Robin Roth
37188ea336
cleanup tests
...
* use nose test generator
* more comments
* move facts import inside the skipped function, fix python3 warning
9 years ago
Robin Roth
2b104fe6ad
fix tests for SLES and CoreOS
...
* include #15230
9 years ago
Robin Roth
b48e628429
test git version before running test on depth
9 years ago
=
157072a39f
Windows: win_regedit integration tests (following https://github.com/ansible/ansible-modules-extras/pull/2034 )
9 years ago
Cambell
cdf6e3e4bf
feature/copy-vault-dataloader: Add method get_real_file(file_path) to dataloader
...
- get_real_file will decrypt vault encrypted files and return a path to
a temporary file.
- cleanup_real_file will remove a temporary file created previously with
get_real_file
9 years ago
Robin Roth
776bffb52b
Expand git integration test ( #15391 )
...
* add testcases to git for depth
* also in combination with refspec, which gets more tricky
* add testcase for ansible/ansible-modules-core#527
9 years ago
Robin Roth
3c883d8a6d
add testcases from refactor PR
9 years ago
Matt Clay
af8258cdf2
Revert "Increase verbosity of connection tests." ( #15305 )
9 years ago
Toshio Kuratomi
208ad36ce4
Merge pull request #15344 from abadger/ziploader
...
Ziploader "recursive imports" and caching
9 years ago