Matt Davis
30c63a41e9
Merge pull request #16555 from matsu-chara/fix-error-msg-default-to-defaults
...
fix default/main.yml to defaults/main.yml
8 years ago
Matt Clay
9a6b8ab271
Add more tags to test_async role.
8 years ago
Robin Roth
d0ccedc617
Fix git shallow update ( #16224 )
...
* add git shallow fetch test
covers https://github.com/ansible/ansible-modules-core/issues/3782
updating a repo with depth=1 fails silently if version==HEAD
* raise git version support supporting depth to 1.9.1
8 years ago
Robin Roth
8021adfe97
use git-core ppa instead of menulibre
...
menulibre is no longer actively maintained and does not support 16.04
8 years ago
Robin Roth
a5e394d23a
reenable apt_repository tests in ubuntu 16.04
...
fixes #15718
8 years ago
matsu-chara
9f8b0cabcd
fix default/main.yml to defaults/main.yml
8 years ago
Matt Clay
4e369a31db
Fix test_async. ( #16552 )
...
* Conditionally run test_async in docker containers.
* Revise test_async test.
8 years ago
Matt Clay
292785ff2b
Parse async response in async action. ( #16534 )
...
* Parse async response in async action.
* Add async test for non-JSON data before module output.
* Fix existing async unit test.
Resolves #16156
8 years ago
Abhijit Menon-Sen
950cc26aab
Use loop_control.loop_var directly
...
6eefc11c
converted task.loop_control into an object, but while the other
callers were updated to use .loop_var instead of .get('loop_var'), this
site was overlooked.
This can be reproduced by including with loop_control a file that does
set_fact; a simple regression test along these lines is included.
8 years ago
Matt Clay
394430a61e
Switch test_lookups to badssl/local testing. ( #16466 )
...
* Switch test_lookups to badssl/local testing.
* Use var for checking badssl host content.
8 years ago
Pilou
b361bf90d7
Lookup password omit salt ( #16361 )
...
* Lookup unencrypted password must not include salt
* Integration test lookup: remove previous directory
* Test that lookup password doesn't return salt
* Lookup password: test behavior with empty encrypt parameter
Closes #16189
8 years ago
nitzmahone
1f92ade584
add integration test to assert included tasks run in proper order
8 years ago
jctanner
b7f9037b5b
Add test for multi-options in authorized_key ( #16375 )
...
Addresses https://github.com/ansible/ansible-modules-core/issues/1715
9 years ago
nitzmahone
7bc3be64ae
fix win_setup integration test to match fact name
9 years ago
=
9857af2b6e
added further tests for win_regedit to cover the changes made
...
under https://github.com/ansible/ansible-modules-extras/pull/2436
9 years ago
jctanner
3b3ab605f6
Add a get_url test for www.google.com ( #16212 )
...
Add a get_url test for www.google.com
Addresses #16191
9 years ago
Toshio Kuratomi
872f3c5503
Revert "Add git shallow fetch test ( #16055 )" -- Broke integration tests:
...
https://app.shippable.com/runs/57599a7897ae890c00c2898d
This reverts commit e81f14ab48
.
9 years ago
Robin Roth
e81f14ab48
Add git shallow fetch test ( #16055 )
...
* add git shallow fetch test
covers https://github.com/ansible/ansible-modules-core/issues/3782
updating a repo with depth=1 fails silently if version==HEAD
* disable git shallow tests for old git versions
Older git versions don't treat the --depth option correctly.
While the git module tried to work around this and introduced subtle
bugs, ansible/ansible-modules-core#3794 falls back to full checkouts.
Don't run the tests then.
9 years ago
Matt Clay
6e1e86028f
Split integration tests into multiple groups.
...
This will allow tests to complete much faster.
9 years ago
Adrien Vergé
4d48711242
Fix YAML source and check it on Shippable ( #15678 )
...
Fix YAML source and check it on Shippable
9 years ago
Matt Clay
7a533406f9
Merge pull request #13145 from Mic92/devel
...
lxc connection plugin
9 years ago
Toshio Kuratomi
08fd017d99
Test file needed to be renamed
9 years ago
Toshio Kuratomi
2a5ef4496a
Workaround test failures on OSX controllers for now -- will have to look
...
more heavily into normailizing the unicode later.
9 years ago
Brian Coca
3387d557bc
Revert "Add prefixing and suffixing fuctionality to assemble module" ( #16084 )
9 years ago
Matt Clay
e45b3b89a2
Skip some service tests for systemd.
9 years ago
Chris Houseknecht
ce34397cf8
Merge pull request #10399 from underyx/assemble-with-prefix-and-suffix
...
Add prefixing and suffixing fuctionality to assemble module
9 years ago
Robin Roth
c06884eff0
Run tests on ubuntu1604 and opensuseleap ( #15936 )
...
* reduce async sleep time in test
* make zypper test less destructive (don't break following uses of zypper)
* fix ca cert on suse
* fix/enable postgres/mysql on opensuseleap
* fix mysql test for mysql versions 5.7.6 and newer
* skip sni_host check on ubuntu1604
* add HTTPTESTER flag for test_uri
ubuntu 16.04 uses dash which drops env variables containing a dot
we work around this by adding an explicit env variable to enable httptester
9 years ago
Bence Nagy
13210e346f
Add integration test for assemble with a header and a footer
9 years ago
Matt Clay
027006b846
Don't use TEST_FLAGS for the test_tags target.
...
This allows use of --skip-tag in TEST_FLAGS without conflicting with the test.
9 years ago
Matt Clay
844b415066
Mark tasks expected to fail with EXPECTED FAILURE.
...
This allows for automated identification of tasks which are
expected to fail, but which cannot use ignore_errors because
they need to fail.
9 years ago
Jörg Thalheim
88482234e6
lxc connection plugin
9 years ago
Toshio Kuratomi
c03555b650
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
nitzmahone
42f6114b61
fix windows integration tests to run under kerberos users
9 years ago
Matt Martz
651b83d8be
Run test_binary_modules
9 years ago
Matt Martz
2d18607f1e
Add GPL3 header to helloworld.go
9 years ago
Matt Martz
6ad8ec0919
Add integration tests for binary modules
9 years ago
Matt Martz
accf40d8a8
Use httptester docker image for http tests ( #15811 )
...
* Use httptester docker image for http tests
* When not running with an httptester linked container, use public test sites
9 years ago
Toshio Kuratomi
7ccb08cc7e
Switch to a different url for testing SNI right now. ( #15798 )
9 years ago
Rene Moser
5583027f99
tests, postgresql: add ubuntu 16.04 support
9 years ago
Rene Moser
39e4caafb2
tests, apt_repository: disable Ubuntu 16.04 as there is no package yet
9 years ago
Rene Moser
c20d1fced7
tests: fix tests on Debian 8
9 years ago
Robin Roth
cf62a62b83
use userdir module as example instead of alias ( #15540 )
...
* alias module is very basic and removing it leads to the suse default
config failing
* future improvements might test different modules and the effect of
them being removed
9 years ago
Yannig
3901556b35
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
Matt Davis
ca5080d56b
Merge pull request #15570 from jhawkesworth/regedit_fix_str_compare_tests
...
win_regedit integration test to cover change to allow empty string comparison
9 years ago
Robin Roth
12f7f50f31
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
85bef402b1
Merge pull request #14614 from gundalow/test_binary
...
non-destructive says we should run test_binary at v2
9 years ago
=
bd74091ed9
win_regedit integration test to cover change to allow empty strings to be compared
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
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
197d3dfe97
Disable new git tests until a fix for rhel6/7 is merged.
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
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
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
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
Matt Clay
af8258cdf2
Revert "Increase verbosity of connection tests." ( #15305 )
9 years ago
Matt Martz
dd39f57ae7
Merge pull request #15289 from sivel/sni-urllib3-contrib-try2
...
Optional Use of urllib3 for SNI verification
9 years ago
nitzmahone
698ae7c383
ensure test_win_user fails on bogus error
...
We weren't previously checking the error message- it failed as expected, but for the wrong reason.
9 years ago
Matt Martz
6e9c09d7f7
Utilize urllib3.contrib.pyopenssl functionality for SNI capability in python versions lacking SNI support
...
Also add SNI tests, move test_uri to destructive since we are messing with packages for SNI testing
9 years ago
Toshio Kuratomi
4b0aa1214c
Ziploader
...
* Ziploader proof of concept (jimi-c)
* Cleanups to proof of concept ziploader branch:
* python3 compatible base64 encoding
* zipfile compression (still need to enable toggling this off for
systems without zlib support in python)
* Allow non-wildcard imports (still need to make this recusrsive so that
we can have module_utils code that imports other module_utils code.)
* Better tracebacks: module filename is kept and module_utils directory
is kept so that tracebacks show the real filenames that the errors
appear in.
* Make sure we import modules that are used into the module_utils files that they are used in.
* Set ansible version in a more pythonic way for ziploader than we were doing in module replacer
* Make it possible to set the module compression as an inventory var
This may be necessary on systems where python has been compiled without
zlib compression.
* Refactoring of module_common code:
* module replacer only replaces values that make sense for that type of
file (example: don't attempt to replace python imports if we're in
a powershell module).
* Implement configurable shebang support for ziploader wrapper
* Implement client-side constants (for SELINUX_SPECIAL_FS and SYSLOG)
via environment variable.
* Remove strip_comments param as we're never going to use it (ruins line
numbering)
* Don't repeat ourselves about detecting REPLACER
* Add an easy way to debug
* Port test-module to the ziploader-aware modify_module()
* strip comments and blank lines from the wrapper so we send less over the wire.
* Comments cleanup
* Remember to output write the module line itself in powershell modules
* for line in lines strips the newlines so we have to add them back in
9 years ago
Toshio Kuratomi
4b0f65a3e5
Merge pull request #15207 from mattclay/verbose-test
...
Increase verbosity of connection tests.
9 years ago
Matt Davis
3f70d7a70d
Merge pull request #15144 from mattclay/winrm-test
...
Add winrm tests and fix exposed unicode errors.
9 years ago
James Cammarata
180a0a8e77
Fixing up the logic in the test_script tests removal portion
9 years ago
Matt Clay
262c341cda
Add connection tests for winrm connection plugin.
...
These are the same tests used for the other connection plugins,
adapted to use winrm modules and Windows friendly paths.
9 years ago
Matt Clay
a0361626c9
Increase verbosity of connection tests.
9 years ago
Michael Gruener
94806e1953
Add integration tests for the cloudflare_dns module
9 years ago
Brian Coca
1ebc2fda71
removes python requirement to script
...
mistakenly added when checksum was made to use stat module
fixed assertion in test
9 years ago
Matt Clay
943e4d37f5
Run more connection tests in Docker.
...
Connection tests are now run before non_destructive to make sure
that the known_hosts file in our Docker image has not been removed.
9 years ago
Toshio Kuratomi
c3548677de
Add TEST_FLAGS to test_hash
9 years ago
Brian Coca
9c6b49fd3d
Merge pull request #15004 from agx/zypper-repository-integration-tests
...
Integration tests for zypper repository
9 years ago
Toshio Kuratomi
6824f3a7cc
Change url so that we don't test https in the tests for file perms
9 years ago
Toshio Kuratomi
cbd93b6ad3
Add integration test for #11821
9 years ago
nitzmahone
b95286c88e
re-integrate test_test_infra output checking
...
added secondary run with overridden inventory/test args per bcoca request
9 years ago
nitzmahone
6578e63e63
improve test_test_infra debug messaging, rc check
9 years ago
Matt Clay
9a922fcf0d
Update test to use mysql connect_timeout option.
9 years ago
Guido Günther
2095d1ab33
Integration tests for zypper repository
9 years ago
Rene Moser
5d5d905e36
cloudstack: new integration tests test_cs_resourcelimit
9 years ago
Rene Moser
4d6a15ebc3
cloudstack: new integration tests test_cluster
9 years ago
Rene Moser
d50026b108
cloudstack: new integration tests test_cs_pod
9 years ago
Rene Moser
ae6d2a5602
cloudstack: new integration tests test_cs_instance_facts
9 years ago
Rene Moser
d9f7589460
cloudstack: new integration tests test_cs_configuration
9 years ago
René Moser
7587c20d27
Merge pull request #13183 from resmo/for-ansible
...
[2.1] cloudstack: add tests for cs_volume
9 years ago
Toshio Kuratomi
ea58ccfd5e
Make the fact gathering give a little more information on failure
9 years ago
Toshio Kuratomi
9a6a5a5516
add a fact gathering check for the default of all
9 years ago
Toshio Kuratomi
f0e6d28815
Make integration tests for fact gathering assert on failure
9 years ago
Toshio Kuratomi
512825455e
Make ohai and facter work via module_utils Fact classes rather than in the setup module
9 years ago
Yannig Perré
88772b6003
Add a way to restrict gathered facts in Ansible:
...
- Using gather_subset options
- By ignoring ohai/chef or facter/puppet facts
9 years ago
Matt Clay
a44b88936b
Add unicode dir to connection tests.
9 years ago
Matt Clay
20eee14a2c
Lower connect timeout for test_mysql_variables.
9 years ago
Matt Clay
5c206eaf0b
Add additional plugins to connection tests.
...
- docker
- libvirt_lxc
- jail
These tests will not run as part of the build, but can be run manually.
9 years ago
Brian Coca
a07495e4c8
allow tests to run with parameters
...
also fixed test_test_infra to allow tags
9 years ago
James Cammarata
c2441c15c3
Revert "corrected failed_when test"
...
This reverts commit 140df20504
.
9 years ago
James Cammarata
963178f392
Revert "complete correction of test, key exists but is false"
...
This reverts commit 7e6343213b
.
9 years ago
Brian Coca
923548f6d5
removed test_infra from setup as it fails when using --tags
9 years ago
Brian Coca
7e6343213b
complete correction of test, key exists but is false
9 years ago
Brian Coca
140df20504
corrected failed_when test
9 years ago
nitzmahone
6c835b2600
ensure assert and fail work before we test anything else
9 years ago
James Cammarata
9d61a6cba8
Fixing PlayIterator bugs
...
* Unit tests exposed a problem where nested blocks did not correctly
hit rescue/always portions of parent blocks
* Cleaned up logic in PlayIterator
* Unfortunately fixing the above exposed a potential problem in the
block integration tests, where a failure in an "always" section may
always lead to a failed state and the termination of execution
beyond that point, so certain parts of the block integration test
were disabled.
9 years ago
Matt Davis
22344c5320
Merge pull request #14812 from mattclay/test-connection
...
Add tests for connection plugins.
9 years ago
Matt Martz
8aee648bc9
Add as dependency of the parsing make target
9 years ago
Matt Martz
098333b2ec
Fix redirects for get_url
...
* fetch_url shouldn't both accept follow_redirects and support follow_redircts via module.params
* Default follow_redirects for open_url should be 'urllib2'
* Add redirect test for get_url
9 years ago
Matt Clay
49892b287b
Use vars to eliminate redundant test commands.
9 years ago
Matt Clay
ca62bc5db3
Add tests for connection plugins.
9 years ago
James Cammarata
80b10bd669
Moving creating of testing work dir out of dep role and into Makefile
9 years ago
Toshio Kuratomi
7160b40ab1
Fix the Makefile to run under dash (POSIX /bin/test syntax)
9 years ago
Matt Davis
3d58fd1402
Merge pull request #13481 from jhawkesworth/a21_reg_merge_tests
...
windows; adding integration tests for win_regmerge (extras module)
9 years ago
James Cammarata
9de24a3735
Assert things against the recursive copy result to make sure it did something
9 years ago
Matt Martz
cacb74aeeb
Merge pull request #14340 from sivel/uri-no-httplib2
...
Add RedirectHandler class for controlling redirects in urllib2
9 years ago
Matt Martz
3e9408e317
Add some additional integration tests that mix SSL verification and redirects
9 years ago
John Barker
4fb1839ebe
non-destructive says we should run test_binary at v2
...
We are now using Ansible v2 and these tests pass, so run them.
9 years ago
James Cammarata
58a6cf822a
Merge pull request #13203 from willthames/galaxy_10620
...
Allow tree-ish versions for ansible-galaxy
9 years ago
Brian Coca
bb155e1142
added test for cartesian lookup
9 years ago
Brian Coca
08b3dbcda3
corrected several usages of deprecated bare vars
9 years ago
Matt Martz
97e0f29a5b
Add/improve tests for the uri module
9 years ago
James Cammarata
b713f1ca53
Fix for copy test as ansible_ssh_user is not set by default now
9 years ago
James Cammarata
8039ceee0f
Tweak block integration tests to also test the free strategy
9 years ago
James Cammarata
5466510edb
Removing .out file for integration tests and adding to .gitignore
9 years ago
James Cammarata
f4bd3be71f
Adding block integration tests
9 years ago
Robin Roth
ed059ffca9
add integration test for ansible-pull
...
* this test includes the behavior described in #13688 and #13681
* it runs a minimal playbook and checks for correct use of inventory and limit
9 years ago
Brian Coca
46fde754af
Merge pull request #14044 from skorochkin/devel
...
Adding support for scm-based role source urls (ansible-galaxy)
9 years ago
James Cammarata
fb797a9e77
Fixing role dependency chain creation
...
The dep chain for roles created during the compile step had bugs, in
which the dep chain was overwriten and the original tasks in the role
were not assigned a dep chain. This lead to problems in determining
whether roles had already run when in a "diamond" structure, and in
some cases roles were not correctly getting variables from parents.
Fixes #14046
9 years ago
Sergii Korochkin
13e8732598
[hotfix] add missed playbook file
9 years ago
Sergii Korochkin
1325c21ca0
Adding support for scm-based role source urls (incl. integration test to cover it)
9 years ago
Matt Davis
acf49cf837
Merge pull request #13569 from mattclay/apt-repository-filename
...
Test for filename option in apt_repository module.
9 years ago
Toshio Kuratomi
bcb22b0e1a
Integration tests for https://github.com/ansible/ansible-modules-core/pull/558
9 years ago
James Cammarata
749fbd43ef
Removing test for map filter until we can figure out how that's supposed to work
9 years ago
Brian Coca
e7804a6fdd
fixed test to use hostvars and not expect vars sub
...
vars is at the same level as hostvars and was only included in hostvars
temporarily as a bug
9 years ago
Toshio Kuratomi
46903c80fa
More fixes for unicode handling in the connection plugins.
...
Tested that ssh, docker, local, lxc-libvirt, chroot all work with the
updated unicode integration test.
9 years ago
Toshio Kuratomi
c0a8cd950b
Fix problems with non-ascii values passed as part of the command to connection plugins
...
@drybjed discovered this with non-ascii environment variables and
command line arguments to script and raw module.
9 years ago
James Cammarata
08b580decc
Parallelize make command for integration test runner
...
Also adds a new var, used by the prepare_tests role, to prevent it from
deleting the temp test directory at the start of each play to avoid any
potential race conditions
9 years ago
Brian Coca
2281c455db
Merge pull request #13616 from resmo/for-ansible-stable-2.0
...
[stable-2.0] cloudstack: test_cs_instance: more integration tests
9 years ago
James Cammarata
54455a06e5
Disable docker test for Fedora, due to broken packaging
9 years ago
Rene Moser
b85b92ecdd
cloudstack: test_cs_instance: more integration tests
...
cloudstack: extend test_cs_instance addressing recovering
cloudstack: test_cs_instance: add tests for using display_name as indentifier.
9 years ago
Rene Moser
b0525da8c8
cloudstack: cs_volume: add tests for volume resize
...
See https://github.com/ansible/ansible-modules-extras/pull/1333
9 years ago
Rene Moser
8b5e553828
cloudstack: add tests for cs_volume
9 years ago
Toshio Kuratomi
6963955cb4
And change the task a little more since different shlex versions are handling the quotes differently
9 years ago
Toshio Kuratomi
21ca0ce1ce
Fix test playbook syntax
9 years ago
Toshio Kuratomi
3792a586b5
Since the velox test server seems to be dropping using iptables to drop requests from aws, test via a different website instead
9 years ago
Toshio Kuratomi
8d7892cc7b
Done troubleshooting
...
Revert "Troubleshooting has reduced us to this"
This reverts commit 9abef1a1d7
.
9 years ago
Toshio Kuratomi
b90506341a
Fixes for tests that assumed yum as package manager for systems that
...
have dnf
9 years ago
Toshio Kuratomi
9abef1a1d7
Troubleshooting has reduced us to this
9 years ago