Brian Coca
3387d557bc
Revert "Add prefixing and suffixing fuctionality to assemble module" ( #16084 )
2016-06-01 09:17:10 -04:00
Matt Clay
e45b3b89a2
Skip some service tests for systemd.
2016-05-31 20:12:55 -07:00
Chris Houseknecht
ce34397cf8
Merge pull request #10399 from underyx/assemble-with-prefix-and-suffix
...
Add prefixing and suffixing fuctionality to assemble module
2016-05-31 18:16:23 -04:00
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
2016-05-31 14:47:36 -07:00
Bence Nagy
13210e346f
Add integration test for assemble with a header and a footer
2016-05-31 14:44:33 -07:00
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.
2016-05-31 11:29:04 -07:00
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
2016-05-26 14:47:11 -07:00
nitzmahone
42f6114b61
fix windows integration tests to run under kerberos users
2016-05-17 13:40:54 -07:00
Matt Martz
6ad8ec0919
Add integration tests for binary modules
2016-05-12 12:25:09 -05:00
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
2016-05-10 23:43:07 -04:00
Toshio Kuratomi
7ccb08cc7e
Switch to a different url for testing SNI right now. ( #15798 )
2016-05-10 07:08:47 -07:00
Rene Moser
5583027f99
tests, postgresql: add ubuntu 16.04 support
2016-05-04 00:11:19 +02:00
Rene Moser
39e4caafb2
tests, apt_repository: disable Ubuntu 16.04 as there is no package yet
2016-05-04 00:11:19 +02:00
Rene Moser
c20d1fced7
tests: fix tests on Debian 8
2016-05-04 00:11:19 +02:00
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
2016-05-04 00:09:26 +02:00
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.
2016-05-01 06:42:09 -07:00
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
2016-04-29 11:03:30 -07:00
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
2016-04-27 08:04:58 -07:00
=
bd74091ed9
win_regedit integration test to cover change to allow empty strings to be compared
2016-04-24 17:24:03 +01:00
jctanner
4d36b3f7b6
Extend the get_url integration tests to include file schemas. ( #15532 )
...
Addresses https://github.com/ansible/ansible-modules-core/issues/3511
2016-04-22 11:38:03 -07:00
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
2016-04-21 20:10:29 +02:00
Robin Roth
59bad647b6
Revert "Disable new git tests until a fix for rhel6/7 is merged."
...
This reverts commit 197d3dfe97
.
2016-04-20 09:52:02 +02:00
Toshio Kuratomi
197d3dfe97
Disable new git tests until a fix for rhel6/7 is merged.
2016-04-19 08:53:19 -07:00
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
2016-04-19 07:00:45 -07:00
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
2016-04-19 01:42:40 -04:00
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 )
2016-04-18 10:56:30 -07:00
James Cammarata
ed35e8bce2
Don't override the http status code when successful in urls.py
2016-04-18 13:20:24 -04:00
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
2016-04-18 18:00:02 +02:00
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
2016-04-15 16:10:54 -05:00
Robin Roth
b48e628429
test git version before running test on depth
2016-04-15 09:49:05 +02:00
=
157072a39f
Windows: win_regedit integration tests (following https://github.com/ansible/ansible-modules-extras/pull/2034 )
2016-04-14 21:47:17 +01:00
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
2016-04-14 09:41:10 -07:00
Matt Martz
dd39f57ae7
Merge pull request #15289 from sivel/sni-urllib3-contrib-try2
...
Optional Use of urllib3 for SNI verification
2016-04-08 11:26:49 -05:00
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.
2016-04-07 18:24:12 -07:00
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
2016-04-06 10:14:13 -05:00
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
2016-04-05 11:06:17 -07:00
James Cammarata
180a0a8e77
Fixing up the logic in the test_script tests removal portion
2016-03-31 15:59:19 -04:00
Michael Gruener
94806e1953
Add integration tests for the cloudflare_dns module
2016-03-25 21:22:29 +01:00
Brian Coca
1ebc2fda71
removes python requirement to script
...
mistakenly added when checksum was made to use stat module
fixed assertion in test
2016-03-24 16:17:58 -07:00
Brian Coca
9c6b49fd3d
Merge pull request #15004 from agx/zypper-repository-integration-tests
...
Integration tests for zypper repository
2016-03-21 11:00:50 -07:00
Toshio Kuratomi
6824f3a7cc
Change url so that we don't test https in the tests for file perms
2016-03-20 08:49:40 -07:00
Toshio Kuratomi
cbd93b6ad3
Add integration test for #11821
2016-03-20 07:59:00 -07:00
Matt Clay
9a922fcf0d
Update test to use mysql connect_timeout option.
2016-03-16 22:31:48 -07:00
Guido Günther
2095d1ab33
Integration tests for zypper repository
2016-03-16 19:56:56 +01:00
Rene Moser
5d5d905e36
cloudstack: new integration tests test_cs_resourcelimit
2016-03-15 21:41:08 +01:00
Rene Moser
4d6a15ebc3
cloudstack: new integration tests test_cluster
2016-03-15 21:41:08 +01:00
Rene Moser
d50026b108
cloudstack: new integration tests test_cs_pod
2016-03-15 21:41:08 +01:00
Rene Moser
ae6d2a5602
cloudstack: new integration tests test_cs_instance_facts
2016-03-15 21:40:45 +01:00
Rene Moser
d9f7589460
cloudstack: new integration tests test_cs_configuration
2016-03-15 21:39:09 +01:00
René Moser
7587c20d27
Merge pull request #13183 from resmo/for-ansible
...
[2.1] cloudstack: add tests for cs_volume
2016-03-15 21:30:01 +01:00
Matt Clay
20eee14a2c
Lower connect timeout for test_mysql_variables.
2016-03-10 12:18:00 -08:00
James Cammarata
c2441c15c3
Revert "corrected failed_when test"
...
This reverts commit 140df20504
.
2016-03-10 09:08:17 -05:00
James Cammarata
963178f392
Revert "complete correction of test, key exists but is false"
...
This reverts commit 7e6343213b
.
2016-03-10 09:06:08 -05:00
Brian Coca
7e6343213b
complete correction of test, key exists but is false
2016-03-10 00:24:27 -05:00
Brian Coca
140df20504
corrected failed_when test
2016-03-10 00:16:38 -05:00
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
2016-03-07 15:44:31 -06:00
James Cammarata
80b10bd669
Moving creating of testing work dir out of dep role and into Makefile
2016-03-03 15:26:08 -05:00
Matt Davis
3d58fd1402
Merge pull request #13481 from jhawkesworth/a21_reg_merge_tests
...
windows; adding integration tests for win_regmerge (extras module)
2016-03-01 00:42:09 +00:00
James Cammarata
9de24a3735
Assert things against the recursive copy result to make sure it did something
2016-02-23 16:29:08 -05:00
Matt Martz
cacb74aeeb
Merge pull request #14340 from sivel/uri-no-httplib2
...
Add RedirectHandler class for controlling redirects in urllib2
2016-02-23 11:53:16 -06:00
Matt Martz
3e9408e317
Add some additional integration tests that mix SSL verification and redirects
2016-02-23 11:48:09 -06:00
Brian Coca
bb155e1142
added test for cartesian lookup
2016-02-11 10:46:44 -05:00
Brian Coca
08b3dbcda3
corrected several usages of deprecated bare vars
2016-02-08 13:13:15 -05:00
Matt Martz
97e0f29a5b
Add/improve tests for the uri module
2016-02-05 12:14:57 -06:00
James Cammarata
b713f1ca53
Fix for copy test as ansible_ssh_user is not set by default now
2016-02-05 10:36:07 -05:00
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
2016-01-22 12:54:00 -05:00
Matt Davis
acf49cf837
Merge pull request #13569 from mattclay/apt-repository-filename
...
Test for filename option in apt_repository module.
2016-01-15 09:01:48 -08:00
Toshio Kuratomi
bcb22b0e1a
Integration tests for https://github.com/ansible/ansible-modules-core/pull/558
2016-01-11 17:16:40 -08:00
James Cammarata
749fbd43ef
Removing test for map filter until we can figure out how that's supposed to work
2016-01-08 16:41:56 -05:00
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
2016-01-08 16:25:57 -05:00
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
2015-12-21 14:10:23 -05:00
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.
2015-12-20 22:37:48 +01:00
Rene Moser
b0525da8c8
cloudstack: cs_volume: add tests for volume resize
...
See https://github.com/ansible/ansible-modules-extras/pull/1333
2015-12-20 22:33:53 +01:00
Rene Moser
8b5e553828
cloudstack: add tests for cs_volume
2015-12-20 22:33:53 +01:00
Toshio Kuratomi
6963955cb4
And change the task a little more since different shlex versions are handling the quotes differently
2015-12-20 11:51:32 -08:00
Toshio Kuratomi
21ca0ce1ce
Fix test playbook syntax
2015-12-20 11:46:49 -08:00
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
2015-12-20 11:34:57 -08:00
Toshio Kuratomi
8d7892cc7b
Done troubleshooting
...
Revert "Troubleshooting has reduced us to this"
This reverts commit 9abef1a1d7
.
2015-12-20 11:34:57 -08:00
Toshio Kuratomi
b90506341a
Fixes for tests that assumed yum as package manager for systems that
...
have dnf
2015-12-20 08:06:26 -08:00
Toshio Kuratomi
9abef1a1d7
Troubleshooting has reduced us to this
2015-12-19 12:39:48 -08:00
Toshio Kuratomi
1cc83dd0d9
Make tests that use kennethreitz retry.
2015-12-18 11:50:36 -08:00
Toshio Kuratomi
c5eda277ac
Fix get_url tests in light of distros backporting SNI support
2015-12-17 17:51:42 -08:00
Toshio Kuratomi
8c6f56f982
kennetreitz.org times out but www.kennethreitz.org is fine
2015-12-17 11:46:26 -08:00
Toshio Kuratomi
ce1febe28b
debug line needs var not msg
2015-12-17 11:25:45 -08:00
Brian Coca
8db4415e2e
changed test to use filter for accurate reporting
2015-12-17 12:28:32 -05:00
James Cammarata
857456ea5f
Fixing template integration test for python 2.6 versions
...
No longer immediately fallback to to_json if simplejson is not installed
2015-12-16 18:22:22 -05:00
Toshio Kuratomi
fffd29d1ab
Update mysql setup to handle installing mysql with dnf too.
2015-12-16 14:06:51 -08:00
Toshio Kuratomi
1116bc6ca6
Merge pull request #13191 from Jmainguy/mysql
...
Add shared connection code for mysql modules
2015-12-16 10:47:49 -08:00
Jonathan Mainguy
34e88e48a5
Add shared connection code for mysql modules
2015-12-16 13:36:18 -05:00
Toshio Kuratomi
375eb501b3
Update url to site that has an invalid certificate
2015-12-16 09:41:01 -08:00
Matt Clay
9942d71d34
Test for filename option in apt_repository module.
2015-12-16 01:37:02 -08:00
Toshio Kuratomi
457f86f61a
Minor: Correct type pyhton => python
2015-12-14 08:50:37 -08:00
Toshio Kuratomi
fc19ad21ef
Merge pull request #13494 from Jmainguy/msyql_hash_tests
...
add tests for encrypted hash mysql_user
2015-12-14 07:58:39 -08:00
Jonathan Mainguy
49dc9eea16
add tests for encrypted hash mysql_user
2015-12-14 10:12:06 -05:00
James Cammarata
97554fc222
Fixing filter test for extract to use proper group
2015-12-11 14:55:38 -05:00
James Cammarata
c402325085
Fixing up docker integration tests a bit
2015-12-10 13:10:59 -05:00
=
ea72fd6547
adding integration tests for win_regmerge module (extras)
2015-12-09 08:57:06 +00:00
Brian Coca
7d073bdd17
Merge pull request #13345 from amenonsen/extract
...
Add an 'extract' filter
2015-12-03 11:19:06 -08:00
Toshio Kuratomi
ac54ac618c
Something's strange... let's see if python2.6 is really the same now...
2015-12-02 14:49:28 -08:00
Toshio Kuratomi
eb7db067f9
Fix template test results on python2.6
2015-12-02 10:32:10 -08:00