=
9857af2b6e
added further tests for win_regedit to cover the changes made
...
under https://github.com/ansible/ansible-modules-extras/pull/2436
2016-06-16 06:37:49 +01:00
jctanner
587d3c368b
Fix synchronize+vagrant dest assertions that were incorrect. ( #16291 )
...
Addresses #16284
2016-06-14 19:56:50 -04:00
Matt Clay
cabbafb650
Update Fedora and CentOS docker images.
...
- Reduce image size by skipping weak package references.
- Consolidate and sort packages to install.
- Improve consistency between versions.
- Combine yum/dnf install and clean to avoid unwanted caching.
- Don't update existing packages from base image unnecessarily.
2016-06-14 16:15:49 -07:00
Matt Clay
82b978e186
Add curl to Ubuntu docker images.
2016-06-13 20:06:26 -07:00
Matt Clay
349b06974e
Update Ubuntu docker images.
...
- Reduce image size by skipping recommended packages.
- Consolidate and sort packages to install.
- Improve consistency between Ubuntu versions.
- Combine apt-get update and install to avoid caching stale updates.
2016-06-13 19:13:44 -07:00
Matt Clay
2f1fc5a324
Update integration test runner on shippable.
2016-06-13 18:06:55 -07:00
Matt Clay
62e6f6b885
Add junit-xml to docker images.
2016-06-13 15:06:51 -07:00
jctanner
3b3ab605f6
Add a get_url test for www.google.com ( #16212 )
...
Add a get_url test for www.google.com
Addresses #16191
2016-06-13 10:59:42 -07:00
Dag Wieers
d91df20620
Fix unit tests for module_name commit #16087
2016-06-10 21:13:34 +02:00
Brian Coca
a529a60478
raw should not use default executable ( #16085 )
...
also removed unused cruft in script
2016-06-10 11:37:58 -04:00
Toshio Kuratomi
872f3c5503
Revert "Add git shallow fetch test ( #16055 )" -- Broke integration tests:
...
https://app.shippable.com/runs/57599a7897ae890c00c2898d
This reverts commit e81f14ab48
.
2016-06-09 14:49:42 -07:00
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.
2016-06-09 09:33:57 -07:00
James Cammarata
fbec2d9692
Expand return code values returned by TQM and strategies
...
This allows the PlaybookExecutor to receive more information regarding
what happened internal to the TaskQueueManager and strategy, to determine
things like whether or not the play iteration should stop.
Fixes #15523
2016-06-08 10:21:57 -05:00
Matt Clay
03597143d0
Detect use of Travis tests on Shippable.
...
This can occur when building pre-Shippable branches or PRs.
2016-06-06 13:36:21 -07:00
James Cammarata
61f132a609
Adding unit tests for playbook group/host vars
2016-06-06 10:52:39 -05:00
Toshio Kuratomi
5a3493be5f
Port urls.py to python3 and other byte vs text fixes ( #16124 )
...
* Port urls.py to python3
Fixes (largely normalizing byte vs text strings) for python3
* Rework what we do with attributes that aren't set already.
* Comments
2016-06-04 16:19:57 -07:00
Matt Clay
6e1e86028f
Split integration tests into multiple groups.
...
This will allow tests to complete much faster.
2016-06-04 12:02:11 -07:00
Toshio Kuratomi
73bb06ae84
Fix the code-smell tests for six again
2016-06-04 11:05:21 -07:00
Adrien Vergé
4d48711242
Fix YAML source and check it on Shippable ( #15678 )
...
Fix YAML source and check it on Shippable
2016-06-04 10:58:17 -07:00
Matt Clay
643a7ec01d
Merge pull request #16126 from mattclay/shippable-fix
...
Update how shippable scripts are called.
2016-06-03 10:13:01 -07:00
Matt Clay
7a533406f9
Merge pull request #13145 from Mic92/devel
...
lxc connection plugin
2016-06-03 10:09:04 -07:00
Matt Clay
6d74f43eff
Update how shippable scripts are called.
2016-06-03 09:20:33 -07:00
Saran Ahluwalia
fda927a14b
added failing test for testing if executable is not empty string
2016-06-02 16:04:15 -07:00
Matt Clay
b0e1efbd62
Add full support for Shippable CI.
2016-06-01 22:33:38 -07:00
Toshio Kuratomi
08fd017d99
Test file needed to be renamed
2016-06-01 13:50:57 -07:00
Toshio Kuratomi
2a5ef4496a
Workaround test failures on OSX controllers for now -- will have to look
...
more heavily into normailizing the unicode later.
2016-06-01 13:35:11 -07:00
Toshio Kuratomi
f86df7c88b
Test that task.args are also set properly ( #15950 )
2016-06-01 13:28:57 -07:00
Adrian Likins
644f0fb190
Merge pull request #15178 from alikins/galaxy_info_output
...
galaxy info displayed 'galaxy_info' section wrong [fix for #15177 ]
2016-06-01 10:27:15 -04:00
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
jctanner
c52cea8db3
Add a framework, fixtures and test for common synchronize scenarios. ( #15983 )
...
* Add a framework, fixtures and test for common synchronize scenarios.
Addresses #15905
2016-05-31 22:35:59 -04: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
jctanner
373b23cc24
Fix mock loader for osx /etc symlinks ( #16074 )
...
Fix role based unit tests for osx via mock.patch
2016-05-31 18:02:39 -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
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.
2016-05-31 14:35:24 -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
Adrian Likins
1468538414
galaxy info displayed 'galaxy_info' section wrong
...
The output of 'ansible-galaxy info' was formatting the
'galaxy_info' key with one char per line.
Previously, when building the output string, items in
role_info that had a dict for value, the label for
it's key ('galaxy_info' for ex) was being added to
the text list in addition to being appended. Only
the append is needed.
Also added a unit test in test/units/cli/test_galaxy.py,
but skip it on py3 until galaxy is py3 compatible.
fixes #15177
2016-05-31 13:28:15 -04:00
jctanner
018d3c3118
Add a new vmware inventory script backed by pyvmomi ( #15967 )
...
Add a new dynamic vmware inventory script backed by pyvmomi
2016-05-30 20:41:48 -04:00
Jörg Thalheim
88482234e6
lxc connection plugin
2016-05-28 00:15:09 +02: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
Matt Clay
b755bcd875
Corrected reference to httptester container.
2016-05-26 12:39:57 -07:00
Matt Martz
164f247ec8
Add httptester docker container files and update run_tests.sh to use ansible/httptester
2016-05-26 13:09:28 -05:00
Brian Coca
329c62e914
docker was deprecated, test now reflects new name
2016-05-26 09:12:23 -04:00
Toshio Kuratomi
650bfdce8f
Update grep for six to not falsely trigger when six is only a substring of a different library
2016-05-24 13:49:37 -07:00
Robin Roth
0edec45c3d
install packages for tests ( #15979 )
...
* curl is needed for test_binary_modules
* glibc-i18ndata is needed for postgresql (localedef)
2016-05-24 08:22:34 -07:00
John R Barker
1861151fa4
[WIP] Extra test and build dependencies in Docker images ( #15692 )
...
* Merge conflicts:
* [skip ci] Revert changes to run_tests.sh
gundalow will update this in a different PR
* [skip ci] Add in ubuntu1604 and opensuseleap
NOTE: We are not configuring anything to use these new images yet.
Therefore no impact on Travis performance
* python-mysql for opensuse
* It's mysql-server on centos6
2016-05-20 07:37:06 -07:00
Toshio Kuratomi
b41b6b2ec5
Update test off make_become for ssh pty race mitigation ( #15931 )
2016-05-19 15:17:28 -07:00
nitzmahone
42f6114b61
fix windows integration tests to run under kerberos users
2016-05-17 13:40:54 -07:00
Michael Scherer
376fc21f92
Add a exception for module_utils/six.py regarding code smell ( #15878 )
...
Since six replace urlopen, it is normal to trigger the test,
hence the exception
2016-05-16 17:00:21 -07:00
Michael Scherer
cc61531a74
Do not test vca and vmware.py for py2.4 ( #15887 )
...
Since both of them depend on libraries not
working on python 2.4, we shouldn't restrict
ourself on 2.4, cf https://github.com/ansible/ansible/pull/15870
2016-05-16 10:51:48 -04:00
Robin Roth
85477fa215
Don't use 'from ansible.module_utils import foo' style here as it breaks ( #15756 )
...
py.test"
2016-05-13 21:09:13 -07:00
Toshio Kuratomi
c1cc9f1f23
Merge pull request #15845 from abadger/ziploader-constants
...
Ship constants to the modules via internal module params rather than a secondary dict
2016-05-13 10:03:16 -07:00
Toshio Kuratomi
186337db28
Ship constants to the modules via internal module params rather than a secondary dict.
2016-05-12 20:30:05 -07:00
Matt Davis
bc7405efc9
Merge pull request #15797 from robinro/patch-1
...
reduce async timeout in unittests
2016-05-12 17:19:10 -07:00
Matt Martz
196453b9b2
Merge pull request #13771 from sivel/binary-modules
...
First pass at allowing binary modules
2016-05-12 18:36:34 -05:00
Matt Martz
651b83d8be
Run test_binary_modules
2016-05-12 12:53:44 -05:00
Matt Martz
0faddfa168
Move binary module detection into executor/module_common.py
2016-05-12 12:25:09 -05:00
Matt Martz
3466e73c50
Resolve test failures
2016-05-12 12:25:09 -05:00
Matt Martz
2d18607f1e
Add GPL3 header to helloworld.go
2016-05-12 12:25:09 -05:00
Matt Martz
6ad8ec0919
Add integration tests for binary modules
2016-05-12 12:25:09 -05:00
Toshio Kuratomi
292f0ed0d6
If we can't squash for any reason, then simply do not optimize the items loop.
...
Also add more squashing testcases
Fixes #15649
2016-05-12 10:06:18 -07:00
Toshio Kuratomi
8a184381af
Strip junk after JSON return. ( #15822 )
...
Fixes #15601
2016-05-11 17:54:01 -07:00
James Cammarata
67c32ac30a
Merge branch 'samples-to-test' of https://github.com/dagwieers/ansible into dagwieers-samples-to-test
2016-05-11 09:57:21 -04: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
c730af5dc2
Remove reload from arg related tests. Changes to how ziploader passes args mean we don't need reload anymore. ( #15782 )
2016-05-10 08:13:48 -07:00
Toshio Kuratomi
7ccb08cc7e
Switch to a different url for testing SNI right now. ( #15798 )
2016-05-10 07:08:47 -07:00
Robin Roth
254cf9ea68
reduce async timeout
...
reduce from 3 sec to 0.1 sec; the 3 sec sleep was about half of the total unittest time on my development machine...
2016-05-10 08:09:28 +02:00
Toshio Kuratomi
5c7ad654db
Add some more tests for item squashing
2016-05-05 20:33:44 -07:00
nitzmahone
133395db30
add jimi-c's unit test for squashed skip results, tweaked is_skipped() logic to pass
2016-05-05 15:29:10 -07:00
Brian Coca
2af8e3b9d8
fix default for removing images
2016-05-05 16:00:02 -04:00
Brian Coca
27a1ae4732
added ability to also subset make tests
2016-05-05 11:50:39 -04: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
Brian Coca
47d58c30e4
another var 'defaulted' in run_tests
2016-05-03 11:25:21 -04:00
Brian Coca
3669ab2456
added defaults for 'optional' vars
2016-05-03 10:38:54 -04:00
Brian Coca
52a714143f
fine tuned shell switches for run_tests.sh
2016-05-03 09:39:19 -04: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
Robin Roth
1d6608e84f
Dist version fix for Red Hat and more tests ( #15663 )
...
* add tests for centos6, rhel6 and rhel7
* gen_distribution_version_testcase with python2.6
* remove unused imports
* fix redhat/vmware/... parsing
* add centos7 test case
2016-04-29 13:18:50 -07:00
Toshio Kuratomi
1b78fd57b1
Merge pull request #15656 from abadger/ziploader-namespace
...
Fix ziploader for the cornercase of ansible invoking ansible.
2016-04-29 11:12:11 -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
Toshio Kuratomi
487e6562ca
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 ziplaoder, move the version ito ANSIBLE_CONSTANTS.
* Change PluginLoader to properly construct the path to the plugins even
when namespace packages are present.
2016-04-29 08:47:49 -07:00
Toshio Kuratomi
d652b2edc0
Fix for unittests on python2.6 or less
2016-04-27 10:45:39 -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
Toshio Kuratomi
7e1fbe2e03
Some algorithmic unittests for the apt and docker modules
2016-04-27 07:23:31 -07:00
Toshio Kuratomi
e4a1622f53
Do not check docker or azure module_utils code for py2.4 compat (the libs require py2.6+)
2016-04-26 07:21:36 -07:00
Toshio Kuratomi
85bef402b1
Merge pull request #14614 from gundalow/test_binary
...
non-destructive says we should run test_binary at v2
2016-04-25 09:45:00 -07:00
Tegan Snyder
bf0da4aa3c
add centrify dzdo escalation ( #15219 )
...
add dzdo context, and test
2016-04-25 11:24:26 -04:00
=
bd74091ed9
win_regedit integration test to cover change to allow empty strings to be compared
2016-04-24 17:24:03 +01:00
Toshio Kuratomi
44e21f7062
Allow AnsibleModules to be instantiated more than once in a module
...
Fix SELINUX monkeypatch in test_basic
2016-04-23 14:04:45 -07: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
Toshio Kuratomi
e893b65a9b
Don't pick up whole commented lines in the urlopen code-smell tests
2016-04-22 08:24:56 -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
03126f7097
Fix cut and paste error of test code
2016-04-19 10:38:44 -07:00
Toshio Kuratomi
197d3dfe97
Disable new git tests until a fix for rhel6/7 is merged.
2016-04-19 08:53:19 -07:00
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
2016-04-19 07:49:05 -07:00
Brian Coca
33761efd19
Merge pull request #15417 from bcoca/copy_vaulted
...
Copy vaulted
2016-04-19 10:22:30 -04:00