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
James Cammarata
81788e627d
Adding unit tests for TaskResult
9 years ago
James Cammarata
2fa1936ff9
Adding python-dev to the list of packages for ubuntu1204 docker
...
[ci skip]
9 years ago
James Cammarata
9d459386ce
Also adding an upgrade of pycrypto to ubuntu1204 config
9 years ago
James Cammarata
90afc5e7d2
Adding rubygems to the ubuntu1204 docker config
...
[no ci]
9 years ago
James Cammarata
af282eb979
Fixing typo in ubuntu1204 docker config
9 years ago
James Cammarata
ff5584a349
Updating jinja2 in ubuntu1204 docker image
9 years ago
James Cammarata
1222830155
Initial commit for Ubuntu 12.04 docker config for testing
9 years ago
Matt Clay
a44b88936b
Add unicode dir to connection tests.
9 years ago
Dag Wieers
5775739437
Moving samples/ out of the root into test/
...
Since samples/ is used for v2 testing, it fits better into the existing test/ structure.
9 years ago
James Cammarata
286d91d722
Reorganizing tox stuff and making py3-specific requirements
9 years ago
James Cammarata
ab682b2917
Moving docker tests to pre-compiled images
9 years ago
James Cammarata
adc9a25a06
Merge pull request #14904 from mattclay/mysql-test-timeout
...
Lower connect timeout for test_mysql_variables.
9 years ago
James Cammarata
c6af811573
Fixing equality check in run_tests.sh for sanity
9 years ago
Matt Clay
20eee14a2c
Lower connect timeout for test_mysql_variables.
9 years ago
Brian Coca
7e3c92e909
predictable docker names and autoremove if no fail
9 years ago
James Cammarata
f700a7e3ce
Removing forced pull from build step in run_tests.sh
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
Toshio Kuratomi
2b8a0cdddc
Fix ssh connection unittests for python3.4
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
James Cammarata
f0d3284ead
Adding more unit tests for ssh connection plugin
9 years ago
James Cammarata
2f472fd4e9
Adding start of ssh connection unit tests
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
James Cammarata
299d93f6e9
Updating unit tests for PlayIterator
...
This knowingly introduces a broken test, planning to fix that later.
9 years ago
James Cammarata
8cfdaa16f4
Fixing error in localedef usage for f23 docker image
9 years ago
James Cammarata
0e17a6f036
Another attempt at fixing random f23 locale failures in docker image
9 years ago
James Cammarata
2ee0c1b175
Fixing centos6 docker image for pycrytpo too
9 years ago
James Cammarata
762c99f77c
Fixing centos6 docker image to upgrade jinja2
9 years ago
James Cammarata
56670bd150
More tweaks for fedora on docker
9 years ago
James Cammarata
b97a98f69e
Trying to fix up the fedora23 docker image
9 years ago
James Cammarata
b72cd3a6d2
Adding fedora rawhide to the travis mix
9 years ago
James Cammarata
c632873936
Adding centos 6 to the travis mix
9 years ago
James Cammarata
e5844ee03d
Revert "Testing adding -j2 to the run_tests.sh script to speed up docker tests"
...
This reverts commit db2a0ae255
, as it does not
add any speed to the tests on Travis.
9 years ago
James Cammarata
db2a0ae255
Testing adding -j2 to the run_tests.sh script to speed up docker tests
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
981f451f0e
Adding fedora 23 to the Docker tests on travis
9 years ago
James Cammarata
7f34705b0c
Fixing up Dockerfiles some more to get tests passing fully
9 years ago
James Cammarata
fa630872d9
Minor update to the Dockerfiles
9 years ago
James Cammarata
069e597aaa
Fixing locale stuff in ubuntu 14.04 Dockerfile
9 years ago
James Cammarata
f56af2ec3f
Updating docker files for tests
9 years ago
James Cammarata
e4acd44e23
Make sure test script fails on any error
9 years ago
Matt Martz
d8876b5c03
Run /sbin/init in the ubuntu docker image, as we do with centos
9 years ago
James Cammarata
92dcad8e99
Adding docker container capabilities to Travis
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
James Cammarata
b853e932d1
Adding unit tests for symbolic mode conversion stuff in basic.py
9 years ago
James Cammarata
18240d350c
Adding a skip for the literal_eval test on py3
9 years ago
James Cammarata
0ea3a9d08d
Removing tabs from test_basic.py
9 years ago
James Cammarata
1de9357c2f
Attempt at cleaning up issues introduced by new basic.py unit tests
9 years ago
James Cammarata
e011f52557
Expanding unit tests for module_utils/basic.py
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
c56e3aabfb
Clean up jsonify unit test with format to remove json lib differences
9 years ago
James Cammarata
7c049c3200
Fixing up jsonify and adding unit tests
9 years ago
James Cammarata
a9d25f455c
More unit tests for ActionBase
9 years ago
James Cammarata
e588437067
Adding some unicode params to the ActionBase module formatting test
9 years ago
Toshio Kuratomi
7cb29cdbec
Workaround py2.6's StringIO
9 years ago
Toshio Kuratomi
b70bf3b056
Use io.StringIO and io.BytesIO instead of StringIO.StringIO for compat with py3
9 years ago
Toshio Kuratomi
c29f51804b
Fix mixing of bytes and str in module replacer (caused traceback on python3)
9 years ago
James Cammarata
01d835700b
Cleaning up some py version problems with ActionBase unit tests
9 years ago
James Cammarata
3518a05db6
Starting to expand unit tests for ActionBase plugin class
9 years ago
James Cammarata
9de24a3735
Assert things against the recursive copy result to make sure it did something
9 years ago
James Cammarata
e02b98274b
issue callbacks per item and retry fails
...
- now workers passes queue to task_executor so it can send back events per item and on retry attempt
- updated result class to pass along events to strategy
- base strategy updated to forward new events to callback
- callbacks now remove 'items' on final result but process them directly when invoked per item
- new callback method to deal with retry attempt messages (also now obeys nolog)
- updated tests to match new signature of task_executor
fixes #14558
fixes #14072
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
Brian Coca
3b3709e715
Merge pull request #14488 from bcoca/become_shell_fixes
...
shell + become fixes
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
6dc910c13a
shell + become fixes
...
1 less level of shell + quoting
simplified become commands, less quote and shell
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
Brian Coca
ba51ed06cf
changed from deprecated implicit bare var
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
Toshio Kuratomi
0e410bbc8a
Squashing was occuring even though pkgs didn't have a template that would be affected by squash
...
This broke other uses of looping (looping for delegate_to in the
reported bug)
Fixes #13980
9 years ago
Brian Coca
fad6eb1844
fixed unit test to match new output of become/su
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
Toshio Kuratomi
d97d28ecb0
Merge pull request #14025 from ansible/run_command-env-rework
...
rework run_command's env setting to not change os.environ for the res…
9 years ago
Toshio Kuratomi
a68d90a71a
rework run_command's env setting to not change os.environ for the rest of the module.
...
New param to run_command to modify the environment for just this invocation.
Documentation and comment adjustments.
9 years ago
Brian Coca
c09c01a1f5
go back to defaulting wrapping commands in shell
...
this was taken out in an effort to default to the user's shell but creates issues as this is not known ahead of time
and its painful to set executable and shell_type for all servers, it should only be needed for those that restrict the user
to specific shells and when /bin/sh is not available. raw and command may still bypass this by explicitly passing None.
fixes #13882
still conditional
9 years ago
James Cammarata
b1223746cd
Relocate use of ERROR to display class, to avoid doubling up
9 years ago
Brian Coca
27f4730c29
correctly deals with non serializable type
...
combine_vars shoudl really be data types, but some just get in
in test, add dict to mock and avoid combine_vars using object
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
Toshio Kuratomi
1ed3a018eb
Revert "Fix make tests-py3 on devel. Fix for https://github.com/ansible/ansible/issues/13638 ."
...
This reverts commit e70061334a
.
Going to do this in the connection plugins
9 years ago
James Cammarata
2d11cfab92
Squashed commit of the following:
...
commit 24efa310b58c431b4d888a6315d1285da918f670
Author: James Cammarata <jimi@sngx.net>
Date: Tue Dec 29 11:23:52 2015 -0500
Adding an additional test for copy exclusion
Adds a negative test for the situation when an exclusion doesn't
exist in the target to be copied.
commit 643ba054877cf042177d65e6e2958178bdd2fe88
Merge: e6ee59f
66a8f7e
Author: James Cammarata <jimi@sngx.net>
Date: Tue Dec 29 10:59:18 2015 -0500
Merge branch 'speedup' of https://github.com/chrismeyersfsu/ansible into chrismeyersfsu-speedup
commit 66a8f7e873
Author: Chris Meyers <chris.meyers.fsu@gmail.com>
Date: Mon Dec 28 09:47:00 2015 -0500
better api and tests added
* _copy_results = deepcopy for better performance
* _copy_results_exclude to deepcopy but exclude certain fields. Pop
fields that do not need to be deep copied. Re-assign popped fields
after deep copy so we don't modify the original, to be copied, object.
* _copy_results_exclude unit tests
commit 93490960ff
Author: Chris Meyers <chris.meyers.fsu@gmail.com>
Date: Fri Dec 25 23:17:26 2015 -0600
remove uneeded deepcopy fields
9 years ago
Brian Coca
d89d7951e6
fixed tests to follow new invocation structure
...
also added maxdiff setting to see issues clearly when they happen
9 years ago
Yannig Perré
b22d998d1d
Fix make tests-py3 on devel. Fix for https://github.com/ansible/ansible/issues/13638 .
9 years ago
James Cammarata
d22bbbf52c
Actually disable parallel makes for integration runner
9 years ago
James Cammarata
8119ea37af
Dropping instance size back down since we're not doing parallel builds
9 years ago
James Cammarata
45afa642c3
Integration test runner tweaks
9 years ago
James Cammarata
6d6822e66e
Kick up the integration runner test image size
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
Brian Coca
75e94e0cba
allow for non standard hostnames
...
* Changed parse_addresses to throw exceptions instead of passing None
* Switched callers to trap and pass through the original values.
* Added very verbose notice
* Look at deprecating this and possibly validate at plugin instead
fixes #13608
9 years ago
Brian Coca
e957335b0d
Merge pull request #13607 from mattclay/test-cache-typo
...
Fixed import typo for memcache module in tests.
9 years ago
James Cammarata
54455a06e5
Disable docker test for Fedora, due to broken packaging
9 years ago
James Cammarata
3a57d9472c
Save output of integration test results to files we can archive
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
5fef2c4297
Try updating the centos7 image to a newer version (trying to resolve issue being unable to connect to some webservers)
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
3da312da9c
Switch from yum to package when installing sudo so that dnf is handled as well
9 years ago
James Cammarata
3ec0104128
Fixing bugs in conditional testing with until and some integration runner tweaks
9 years ago
Toshio Kuratomi
e2d9f4e2f2
Fix unittests for return of invocation from fail_json and exit_json
9 years ago
Toshio Kuratomi
9abef1a1d7
Troubleshooting has reduced us to this
9 years ago
Toshio Kuratomi
51cca87d67
Also need redhat-rpm-config to compile pycrypto
9 years ago
Toshio Kuratomi
c63ae99485
Make sure that yum is present on redhat family systems (makes things also work on fedora systems where dnf is the default)
9 years ago
Matt Clay
d2ad17e88f
Fixed import typo for memcache module in tests.
...
The typo caused the test for the memcached cache plugin to be skipped
even when the necessary memcache python module was installed.
9 years ago
Toshio Kuratomi
f7ed33378e
Fix the fedora host detection
9 years ago
Toshio Kuratomi
78dde62710
What is going on here
9 years ago
Toshio Kuratomi
26e5bcdb39
Bugfix the fedora 23 install task
9 years ago
Toshio Kuratomi
ec60bfbb3f
Ubuntu images with hvm ssd
9 years ago
Toshio Kuratomi
68fe3d856f
Fedora 23 needs to have python2 packages installed
9 years ago
James Cammarata
0823a2c16f
Removing update all for test deps, it didn't fix the problem
9 years ago
James Cammarata
02f65eaa80
Make integration runner ec2 add_hosts use valid host names
9 years ago
Toshio Kuratomi
1cc83dd0d9
Make tests that use kennethreitz retry.
9 years ago
James Cammarata
73a0153b8e
Fix typo in integration test runner role
9 years ago
James Cammarata
0c154e81f0
Make integration tests run in parallel with async
9 years ago
Toshio Kuratomi
f2364ecf5f
Add a Fedora latest host into the mix
9 years ago
James Cammarata
1debc2da44
Do a full yum update to make sure packages are latest version
...
For the deps setup of integration tests, as we sometimes see odd
errors we can't reproduce, which may be related to slightly out of
date package dependencies.
9 years ago
James Cammarata
44e30e49dd
Add awk to integration test deps list
9 years ago
Toshio Kuratomi
a391d6f89a
Add state=latest to pip install of pycrypto
9 years ago
James Cammarata
3143b352c5
Add ca-certificates update to the integration deps playbook
9 years ago
Toshio Kuratomi
1f3eec293b
Install an updated version of pycrypto on Ubuntu12 from pip
9 years ago
James Cammarata
12c0bb9414
Use --source instead of -e for awk in integration Makefile
9 years ago
Toshio Kuratomi
c5eda277ac
Fix get_url tests in light of distros backporting SNI support
9 years ago
Toshio Kuratomi
8c6f56f982
kennetreitz.org times out but www.kennethreitz.org is fine
9 years ago
Toshio Kuratomi
ce1febe28b
debug line needs var not msg
9 years ago
Brian Coca
8db4415e2e
changed test to use filter for accurate reporting
9 years ago
James Cammarata
26bbabcfba
Consolidating package lines for virtualenv install in test deps integration
9 years ago
James Cammarata
cf3d503f79
Moving apt cache update to top to ensure cache is updated before deps installed
9 years ago
James Cammarata
0b1ad8d490
Switch virtualenv dep installation from pip to package manager
9 years ago
James Cammarata
dd3d04e96a
Adding pip install of virtualenv to test deps integration role
9 years ago
James Cammarata
5fa93ef8fc
Merge pull request #13477 from chrismeyersfsu/jenkins-playbooks
...
Jenkins playbooks
9 years ago
James Cammarata
d7f2f606e1
Add has_hostkey to mock objects to fix broken unit tests
9 years ago
James Cammarata
857456ea5f
Fixing template integration test for python 2.6 versions
...
No longer immediately fallback to to_json if simplejson is not installed
9 years ago
Toshio Kuratomi
fffd29d1ab
Update mysql setup to handle installing mysql with dnf too.
9 years ago
James Cammarata
6109f70397
Attempt at fixing strategy unit test failures on py2.6 and py3
9 years ago
Toshio Kuratomi
1116bc6ca6
Merge pull request #13191 from Jmainguy/mysql
...
Add shared connection code for mysql modules
9 years ago
Jonathan Mainguy
34e88e48a5
Add shared connection code for mysql modules
9 years ago
Toshio Kuratomi
375eb501b3
Update url to site that has an invalid certificate
9 years ago
Matt Clay
9942d71d34
Test for filename option in apt_repository module.
9 years ago
Michael Scherer
a7ac98262d
Make module_utils.known_hosts.get_fqdn work on ipv6
9 years ago
Toshio Kuratomi
457f86f61a
Minor: Correct type pyhton => python
9 years ago
Toshio Kuratomi
fc19ad21ef
Merge pull request #13494 from Jmainguy/msyql_hash_tests
...
add tests for encrypted hash mysql_user
9 years ago
Jonathan Mainguy
49dc9eea16
add tests for encrypted hash mysql_user
9 years ago
James Cammarata
35015aaa4a
Merge pull request #13529 from mscherer/add_tests_known_hosts
...
Add tests for ansible.module_utils.known_hosts
9 years ago
James Cammarata
279c5a3596
Cleanup strategy tests broken by new forking strategy
9 years ago
Michael Scherer
3c4d2fc6f2
Add tests for ansible.module_utils.known_hosts
9 years ago
James Cammarata
97554fc222
Fixing filter test for extract to use proper group
9 years ago
James Cammarata
c402325085
Fixing up docker integration tests a bit
9 years ago
Toshio Kuratomi
04fc3f118f
Code smell test for specifying both required and default in FieldAttributes
9 years ago
Chris Meyers
8d66dcda21
remove .gitignore
9 years ago
Chris Meyers
f16628ffec
symbolic link role for testing
9 years ago
Chris Meyers
57391f49ba
removed ansible_python_interpreter
...
* added missed renames of ansible_deps to ansible_test_deps
* removed acidential inventory.dynamic file
* modified README for ansible_test_deps role
9 years ago
=
ea72fd6547
adding integration tests for win_regmerge module (extras)
9 years ago
Chris Meyers
822624d061
rename role ansible_deps to ansible_test_deps
9 years ago
Chris Meyers
05c8bb79f8
playbook that Ansible jenkins runs moved into core
...
The playbook is already running in jenkins and works. This moves the
assets into core for ease of maintenance going forward.
9 years ago
James Cammarata
750adbaa27
Changing up how host (in)equality is checked
...
Fixes #13397
9 years ago
Toshio Kuratomi
cfeef81303
For now, skip tests of module_utils/basic functions that are failing on
...
py3 (these are only run on the target hosts, not on the controller).
9 years ago
Brian Coca
7d073bdd17
Merge pull request #13345 from amenonsen/extract
...
Add an 'extract' filter
9 years ago
Toshio Kuratomi
e00012994e
Also some unicode tests for return_values()
9 years ago
Toshio Kuratomi
5fdfe6a0f2
Add some test data that has unicode values
9 years ago
Toshio Kuratomi
ac54ac618c
Something's strange... let's see if python2.6 is really the same now...
9 years ago
Toshio Kuratomi
eb7db067f9
Fix template test results on python2.6
9 years ago
Abhijit Menon-Sen
8cf1815867
Add an 'extract' filter
...
At its most basic, this is nothing more than an array or hash lookup,
but when used in conjunction with map, it is very useful. For example,
while constructing an "ssh-keyscan …" command to update known_hosts on
all hosts in a group, one can get a list of IP addresses with:
groups['x']|map('extract', hostvars, 'ec2_ip_address')|list
This returns hostvars[a].ec2_ip_address, hostvars[b].ec2_ip_address, and
so on. You can even specify an array of keys for a recursive lookup, and
mix string and integer keys depending on what you're looking up:
['localhost']|map('extract', hostvars, ['vars','group_names',0])|first
== hostvars['localhost']['vars']['group_names'][0]
== 'ungrouped'
Includes documentation and tests.
9 years ago
Brian Coca
c03afccc05
reformated test, changed big assert to with_items
...
much easier to see the individual condition that causes the failure
when using with_items and evaluating each part of the assert individually
9 years ago
James Cammarata
dc0fae1af7
Also make sure remote_user is defaulted correctly for delegated hosts
...
Fixes #13323
9 years ago
Chris Church
f3476b556d
Add assertions for ansible_date_time in setup result.
9 years ago
James Cammarata
3c8c2fb090
Merge pull request #13208 from agx/zypper-integration-test
...
Add integration tests for zypper
9 years ago
James Cammarata
e62fb04a2e
Merge pull request #13229 from zarnovican/bza_fix_test_hg
...
test_hg fix: remove reference to "head"
9 years ago
James Cammarata
138068c56e
Merge pull request #13230 from zarnovican/bza_fix_test_svn
...
test_svn fix: remove hardcoded "~/ansible_testing/svn" path
9 years ago
Chris Church
272778f732
Modify task executor to reuse connection inside a loop. Fix WinRM connection to set _connected properly and display when remote shell is opened/closed. Add integration test using raw + with_items.
9 years ago
Brano Zarnovican
a30a52ef52
test_svn fix: remove hardcoded "~/ansible_testing/svn" path
9 years ago
Brano Zarnovican
5fc64deffe
test_hg fix: remove reference to "head"
...
ERROR! error while evaluating conditional: head.stat.isreg
This is remnant from earlier change 50e5d81777
which removed stat on head file..
9 years ago
James Cammarata
91500f8f5f
Fix include param precedence in variable manager
9 years ago
Guido Günther
0821d251c8
Add integration tests for zypper
...
Modeled after the yum tests but also tests local package installations
as fixed with PR#1256.
This depends on PRs #1256 , #1261 and #1262 in ansible-modules-extra.
9 years ago
Will Thames
ff19233ad3
Add tests for #10620
9 years ago
Brano Zarnovican
90f99f29ae
unittest cover for 'run_command'
...
All os.*, subprocess.* is mocked to avoid side-effects.
Tests are skipped in Py3, since 'run_command' is not Py3-ready, yet.
9 years ago
Brian Coca
e61882ca19
Merge pull request #13170 from robinro/integration_test_git_ansible-modules-core_pull_721
...
add test for changing git remote url
9 years ago
nitzmahone
349e072a74
fix for dynamic (add_host) hosts not available in hostvars
...
Looks like there are two pattern caches that need to be cleared for this to work- added the second one.
Added integration tests for add_host to prevent future regressions.
9 years ago
Will Thames
4f3430ebeb
Handle unexpected database presence
...
Check for database presence in a nice way, rather than
dropping the database.
Thankfully there was a syntax error in the previous
version, so no database would have been dropped.
There was no check for whether it succeeded or not.
9 years ago
Robin Roth
6cefdfe148
add test for changing git remote url
...
integration test for https://github.com/ansible/ansible-modules-core/pull/721
clone a repo from one url
clone an updated version of that repo from a new url
make sure the remote url and the working copy are updated
9 years ago
Brian Coca
5d645f3a8b
Merge pull request #13127 from willthames/test_become
...
Elevate privileges when checking for file existence
9 years ago
Toshio Kuratomi
318bfbb207
Migrate cli and dependencies to use global display
9 years ago
Brian Coca
206cc50bd9
breaks testing in non virtual envs, since env var can be used in those
...
cases removing it from here
9 years ago
Will Thames
5bb759e7ab
Elevate privileges when checking for file existence
...
Certain OSs default to home directories as 0700
Without elevating privileges, checking for file existence
fails.
9 years ago
Toshio Kuratomi
74fe9d236a
Add a disabled test for accessing private attributes of other objects
...
Need to cleanup the code before we can enable this test.
9 years ago
Toshio Kuratomi
aa034f4fcf
Add unit tests for issue #12976
9 years ago
Toshio Kuratomi
37052a983a
Fix unittest dailure with the new squash items code
9 years ago
James Cammarata
23ff08ee6b
Merge pull request #13016 from dvarrazzo/pip-vcs-changed
...
Added tests to verify pip installation with VCS urls
9 years ago
Will Thames
91b6004149
Allow blank lines and comments/spaces in galaxy spec files
...
Fixes #10641 again. (Regression)
Added test to discourage future such regression.
9 years ago
Scott Miller
98b694f5ca
Update README.md
9 years ago
Daniele Varrazzo
542a430e84
Added tests to verify pip installation with VCS urls
...
The test reproduces:
- bug ansible/ansible#1705
- bug ansible/ansible-modules-core#1645
9 years ago
Brian Coca
c267e1906e
removed invocation from tests as it is only available on very very verbose mode
9 years ago
Chris Meyers
4b88cce6a1
update ansible_test_service checksum
9 years ago
Brian Coca
174de1161b
fixed removing -n in password sudo tests
9 years ago
Brian Coca
b2fc5142eb
moved sudo -S and -n into configurable flags as they might be absent in much older systems
...
if password is supplied exsiting -n would get remove from flags
9 years ago
James Cammarata
1910f23144
Merge pull request #12801 from chrismeyersfsu/fix-test_destructive_init
...
run correct init system tests
9 years ago
James Cammarata
9b22004540
Merge pull request #12795 from chrismeyersfsu/fix-test_destructive_mysql_user
...
remove module param quotes
9 years ago
Toshio Kuratomi
4203850d1a
Break apart a looped dependency to show a warning when parsing playbooks
...
Display a warning when a dict key is overwritten by pyyaml
Fixes #12888
9 years ago
Brian Coca
f78c82b9ee
don't set user to current user
...
also remove condition to bypass setting user if user matches current user
this enables forcing user when set to the same user as current user and ignoring .ssh/config
while keeping .ssh/config with current user if nothing is specified.
9 years ago
Toshio Kuratomi
ce2b18174e
Merge pull request #12878 from ansible/invocation-fix
...
Invocation fix
9 years ago
Toshio Kuratomi
2e87c1f74e
Two fixes to action plugins
...
* Fix the task_vars parameter to not default to a mutable type (dict)
* Implement invocation in the base class's run() method have each action
module call the run() method's implemention in the base class.
* Return values from the action plugins' run() method takes the return
value from the base class run() method into account so that invocation
makes its way to the output.
Fixes #12869
9 years ago
James Cammarata
86de1429e5
Cleaning up FIXMEs
9 years ago
Toshio Kuratomi
ed6aa75d63
Add parsing test to travis to catch that invocation is missing
9 years ago
Toshio Kuratomi
6b6d03290a
Restore the automatic addition of invocation to the output
...
Revert "Remove auto-added invocation return value as it is not used by v2 and could leak sensitive data."
This reverts commit 6ce6b20268
.
Remove the note that invocation was removed as we've now restored it.
Revert "keyword not in ubuntu 14.04"
This reverts commit 5c01622457
.
Revert "remove invocation keyword check"
This reverts commit 5177cb3f74
.
9 years ago
Will Thames
002972c6cf
Allow meta/main.yml to include roles through spec file
...
ansible-playbook now works when run with a playbook
that includes a role that includes another role
specified using csv format
Updated one of the roles used in the tests to fix
broken tests - `make test_galaxy` now works
Fixes #11486 . Also addresses the problem alluded to in #10620 .
9 years ago
Toshio Kuratomi
5a0e63af1e
Workaround seeming bug in python-2.6's sys.exit()
9 years ago
Toshio Kuratomi
6e5055e786
Update the use of no_log values to cover everything that heuristic_log_sanitize does.
...
Fixes #12792
9 years ago
Chris Meyers
6c265cde49
invoke systemd test for ubuntu >= 15.04 else invoke upstart test
9 years ago
Toshio Kuratomi
c2d188baff
Hide values in json returns which were given in parameters marked no_log.
9 years ago
Toshio Kuratomi
a22cf8ffc1
Properly add the new test and limit six test to lib
9 years ago
Chris Meyers
f864fa8727
run systemd tests for fedora
9 years ago
Brian Coca
c1a404e6ec
Merge pull request #12799 from resmo/for-ansible
...
cloudstack: add tests for cs_loadbalancer_rule and _member
9 years ago
James Cammarata
2346a7f170
Merge pull request #12800 from chrismeyersfsu/fix-test_destructive_yum
...
remove invocation keyword check
9 years ago
James Cammarata
549bdb2503
Merge pull request #12804 from chrismeyersfsu/fix-test_non_destructive_makefile
...
allow env variable override of creds file
9 years ago
Chris Meyers
1b2d17b844
allow env variable override of creds file
...
This is important because there is an integration test, test_git, that
require an ssh key to clone a privileged github repo.
9 years ago
James Cammarata
8baea3cba8
Merge pull request #12796 from chrismeyersfsu/fix-test_destructive_mysql_variables
...
fix up mysql variable assertion logic
9 years ago
Chris Meyers
d6dfd9f502
run correct init system tests
9 years ago
Chris Meyers
5177cb3f74
remove invocation keyword check
9 years ago
Rene Moser
bb5dcc00b6
cloudstack: add tests for cs_loadbalancer_rule and _member
9 years ago
James Cammarata
450c8d45c6
Merge pull request #12787 from chrismeyersfsu/fix-test_destructive_apt
...
keyword not in ubuntu 14.04
9 years ago
Chris Meyers
75833c248e
fix up mysql variable assertion logic
9 years ago
Chris Meyers
ce4e98a6d0
remove module param quotes
9 years ago
Toshio Kuratomi
eebd3cc336
Merge pull request #12788 from chrismeyersfsu/fix-test_destructive_state
...
remove non-existant state var
9 years ago
Chris Meyers
a0264983ad
remove non-existant state var
9 years ago
Chris Meyers
5c01622457
keyword not in ubuntu 14.04
9 years ago
Brian Coca
6d87bd405d
Merge pull request #12765 from bcoca/lookup_inventory_hostname
...
implemented inventory_hostname lookup in v2
9 years ago
Toshio Kuratomi
49f2b84253
Add a code smell test to make sure we're not using the raw system six
...
(So we know we have a recent enough version)
9 years ago
Toshio Kuratomi
baa309309d
Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version.
9 years ago
Marius Gedminas
04a7ef416e
Python 3: print function in a shell oneliner in Makefile
...
Fixes
File "<string>", line 1
import string,random; print 'ansible-testing-' + ''.join(random.choice(string.ascii_letters + string.digits) for _ in xrange(8));
^
SyntaxError: invalid syntax
when running integration tests with
. hacking/env-setup
. .tox/py35/bin/activate
make -C test/integration test_var_precedence
9 years ago
Marius Gedminas
ec3ada1cda
Fix test on Python 3: vault code expects bytes
...
(All tests now succeed on Python 3.5)
9 years ago
Marius Gedminas
5c70f932bd
Fix test on Python 3: vault code expects bytes
...
(Third failing test out of four.)
9 years ago
Marius Gedminas
a1d95536f9
Fix test on Python 3: vault code expects bytes
...
(Different test than the last commit.)
9 years ago
Marius Gedminas
f58f0c62e1
Fix test on Python 3: vault code expects bytes
9 years ago
Brian Coca
9b088a1e40
implemented inventory_hostname lookup in v2
9 years ago
Chris Church
cb9f350c8f
Merge pull request #12720 from jhawkesworth/test_amc_2147
...
integration tests for ansible modules core 2147
9 years ago
Marius Gedminas
225fe85530
Skip test_module_utils_basic_ansible_module_creation on Python 3
...
This reverts commit 073f10a52a
and instead
disables the failing test.
We're focusing on Python 3 support on the controller first; modules will
come later.
9 years ago
James Cammarata
e6d3c6745f
Revert to using local file/dir tests in inventory instead of loader's
...
Fixes #12719
9 years ago
=
e141101314
integration tests for ansible modules core 2147
9 years ago
Toshio Kuratomi
15d7f53846
AnsibleModules.log() fix for python3
...
Also add unittests for AnsibleModules.log()
Fixes #12586
9 years ago
James Cammarata
0e1a5919c8
Adding unit tests for PlaybookExecutor _get_serialized_batches
9 years ago
Brian Coca
abf2e13955
Revert "Track local_action internally to prevent it from being overridden"
...
This reverts commit 49ca0eb797
.
9 years ago
James Cammarata
de792ba3c2
Improve handling of unicode errors
...
Fixes #12669
9 years ago
James Cammarata
9c9897805f
More ansible-galaxy fixes for the old spec file format
9 years ago
Brian Coca
f73329401b
galaxy updates
...
better error reporting on fetching errors
use scm if it exists over src
unified functions in requirements
simplified logic
added verbose to tests
cleanup code refs, unused options and dead code
moved get_opt to base class
fixes #11920
fixes #12612
fixes #10454
9 years ago
Brian Coca
5680a9fa32
removed redundant tests, adjusted makefile expected count
9 years ago
Brian Coca
e2ae3215f6
corrected no_log for items and skipped tasks
...
corrected output from default callback
added new tests for no_log loops
updated makefile test to check for both positive and negative occurrences of no_log
9 years ago
Brian Coca
5c39538a73
added no_log tests as per #12214
9 years ago
James Cammarata
775486c9d6
Merge pull request #12589 from jemmyw/consul-http-checks
...
Update consul integration test with http checks
9 years ago
Marius Gedminas
0371b14567
Fix test: selinux gets passed byte strings
...
(I don't have a system with selinux to test if the module still wants
byte strings even on Python 3.)
9 years ago
Marius Gedminas
500e7a1263
Fix test: _to_filesystem_str produces byte strings
9 years ago
Marius Gedminas
f7571cb37f
Python 3: there's no __builtin__ module
...
This caused an ImportError in a test module and showed up as one test
failure. Now the test module can get imported and many more tests fail
(on Python 3). Such is life. ;-)
9 years ago
Brian Coca
ddafed4403
Merge pull request #12528 from bcoca/task_logging
...
task logging revamp
9 years ago
James Cammarata
6339bf8a82
Merge branch 'tests' of https://github.com/amenonsen/ansible into amenonsen-tests
9 years ago
James Cammarata
dfa33d0f23
Tweak variable manager use in role includes to avoid test failures
9 years ago
Abhijit Menon-Sen
d100db837b
Add basic tests for expand_hostname_range
9 years ago
Abhijit Menon-Sen
838e71edb7
Add more exhaustive tests for various IPv6 address notations
9 years ago
Brian Coca
8d024c3747
Merge pull request #12472 from resmo/for_ansible
...
cloudstack: improvements and tests
9 years ago
Brian Coca
37a918438b
task logging revamp
...
* allow global no_log setting, no need to set at play or task level, but can be overriden by them
* allow turning off syslog only on task execution from target host (manage_syslog), overlaps with no_log functionality
* created log function for task modules to use, now we can remove all syslog references, will use systemd journal if present
* added debug flag to modules, so they can make it call new log function conditionally
* added debug logging in module's run_command
9 years ago
James Cammarata
ccddda1ebc
Merge pull request #12502 from mgedmin/py3k
...
Python 3: make test_variable_manager_precedence pass
9 years ago
James Cammarata
31d5f88a1d
Use the task loop to calculate multiple delegated hosts
...
Due to the way we're now calculating delegate_to, if that value is based
on a loop variable ('item') we need to calculate all of the possible
delegated_to variables for that loop.
Fixes #12499
9 years ago
Toshio Kuratomi
a1428d6bed
Remove tmp as a parameter to the connection plugins
...
There doesn't appear to be anything that actually uses tmp_path in the
connection plugins so we don't need to pass that in to exec_command.
That change also means that we don't need to pass tmp_path around in
many places in the action plugins any more. there may be more cleanup
that can be done there as well (the action plugin's public run() method
takes tmp as a keyword arg but that may not be necessary).
As a sideeffect of this patch, some potential problems with chmod and
the patch, assemble, copy, and template modules has been fixed (those
modules called _remote_chmod() with the wrong order for their
parameters. Removing the tmp parameter fixed them.)
9 years ago
Toshio Kuratomi
03127dcfae
remove the stdin return value from connection plugin exec_command() methods
...
The value was useless -- unused by the callers and always hardcoded to
the empty string.
9 years ago
Marius Gedminas
0624797375
Bugfix: if you define a custom __eq__, you must define a __hash__ too
...
Also, on Python 3 the stock object.__hash__ raises an error ("unhashable
type"), and we have code that uses Host instances as dict keys.
9 years ago
Marius Gedminas
a2bc6b4b26
Bugfix: if you define __eq__, you should define __ne__ too
9 years ago
Marius Gedminas
5d29a2eabd
Python 3: shlex.split() wants unicode
...
On Python 2, shlex.split() raises if you pass it a unicode object with
non-ASCII characters in it. The Ansible codebase copes by explicitly
converting the string using to_bytes() before passing it to
shlex.split().
On Python 3, shlex.split() raises ('bytes' object has no attribute 'read')
if you pass a bytes object. Oops.
This commit introduces a new wrapper function, shlex_split, that
transparently performs the to_bytes/to_unicode conversions only on
Python 2.
Currently I've only converted one call site (the one that was causing a
unit test to fail on Python 3). If this approach is deemed suitable,
I'll convert them all.
9 years ago
Rene Moser
9514ac860d
cloudstack: more integration tests
9 years ago
Abhijit Menon-Sen
2fcdb37e7b
Support «hosts: groupname[1:]» notation (~= 'the rest of the group')
9 years ago
Abhijit Menon-Sen
21142f5723
Add some tests for split/apply_subscript
9 years ago
Abhijit Menon-Sen
2d420a9bb7
Allow hexadecimal ranges in IPv6 addresses, not only 0-9
9 years ago
James Cammarata
951128d7a6
Merge branch 'hostpatterns' of https://github.com/amenonsen/ansible into amenonsen-hostpatterns
9 years ago
Victor Salgado
01ae60d524
Add more tests for _split_pattern for when the input is a list
9 years ago
Abhijit Menon-Sen
abd006657b
Add test/units/inventory with a few _split_pattern tests
...
There were no inventory-specific unit tests earlier, so we add a new
directory for them with some initial low-level tests of _split_pattern
with various valid and deprecated pattern strings.
9 years ago
Florian Apolloner
d9f873495e
Ported over #7158 to support SELinux context switches.
9 years ago
Florian Apolloner
8548690ca3
Added a test to ensure that sudo is only used if remote and become user difer.
9 years ago
Toshio Kuratomi
3db8070aa3
Fix urlopen usage to use open_url instead
...
Add a travis test for urlopen usage
9 years ago
Chris Church
43b15ab9a4
Merge pull request #12385 from cchurch/winrm_put_empty_file
...
Enable winrm put_file to upload an empty file.
9 years ago
Chris Church
93af0b327f
Merge pull request #12384 from cchurch/powershell_strict_mode
...
Add PowerShell exception handling and turn on strict mode.
9 years ago
Chris Church
1d15e8f37a
Pass windows command as-is without splitting/rejoining parameters.
...
* Fixes extra spaces added between parameters from https://github.com/ansible/ansible-modules-core/issues/1929
* Correctly decode PowerShell command encoded as UTF-16-LE so that it displays correctly in debug messages, fixes the other issue from https://github.com/ansible/ansible-modules-core/issues/1929
* Add test to verify that script parameters are passed as-is, so $true is interpreted as a boolean, fixes https://github.com/ansible/ansible/issues/10947
9 years ago
Chris Church
87db5119ea
Merge pull request #12049 from cchurch/win_group_tests
...
Add integration tests for win_group module.
9 years ago
Chris Church
b44e02143a
Merge pull request #12050 from cchurch/test_win_msi_creates
...
Add tests for creates parameter to win_msi module.
9 years ago
James Cammarata
3f8e12d1f7
Merge pull request #12359 from cchurch/fetch_no_fail_on_missing
...
Fix fetch to not fail for missing file when fail_if_missing=False
9 years ago
Chris Church
6ab4cff7db
Enable winrm put_file to upload an empty file.
9 years ago
Chris Church
5c65ee7f0c
Add PowerShell exception handling and turn on strict mode.
...
* Add exception handling when running PowerShell modules to provide exception message and stack trace.
* Enable strict mode for all PowerShell modules and internal commands.
* Update common PowerShell code to fix strict mode errors.
* Fix an issue with Set-Attr where it would not replace an existing property if already set.
* Add tests for exception handling using modified win_ping modules.
9 years ago
James Cammarata
d818a72375
Merge branch 'normalize_plugin_paths' of https://github.com/bcoca/ansible into bcoca-normalize_plugin_paths
9 years ago
Chris Church
15070e2af8
Merge pull request #11790 from brianlloyd/win_lineinfile
...
Integration tests for windows implementation of lineinfile
9 years ago
Brian Coca
b6d6c2e4db
corrected all missing paths changes
9 years ago
Chris Church
904b8ca27b
Update win_msi tests to specify msi url and paths via variables.
9 years ago
Chris Church
0300294f6e
Add tests for creates parameter to win_msi module.
9 years ago
Chris Church
260b9f648c
Fix fetch action plugin to not fail if file is missing and fail_if_missing=False (the default). Add tests to test_fetch role to verify it works as expected.
9 years ago
James Cammarata
36b5858f51
Fix unit tests for change related to local_action
9 years ago
James Cammarata
49ca0eb797
Track local_action internally to prevent it from being overridden
...
Fixes #12053
9 years ago
Abhijit Menon-Sen
88a20e7a20
Fix broken integration test with unicode hostnames
...
1. The test did "name: '{{hostnames}}.{{item}}'" inside a with_sequence
loop, which didn't do what was intended: it expanded hostnames into
an array, appended ".1", and set name to the resulting string. This
can be converted to a simple with_items loop.
2. Some of the entries in hostnames contained punctuation characters,
which I see no reason to support in inventory hostnames anyway.
3. Once the add_host failures are fixed, the playbook later fails when
the unicode hostnames are interpolated into debug output in ssh.py
due to an encoding error. This is only one of the many places that
may fail when using unicode inventory hostnames; we work around it
by providing an ansible_ssh_host setting.
9 years ago
Abhijit Menon-Sen
7479ab47e0
Be stricter about parsing hostname labels
...
Labels must start with an alphanumeric character, may contain
alphanumeric characters or hyphens, but must not end with a hyphen.
We enforce those rules, but allow underscores wherever hyphens are
accepted, and allow alphanumeric ranges anywhere.
We relax the definition of "alphanumeric" to include Unicode characters
even though such inventory hostnames cannot be used in practice unless
an ansible_ssh_host is set for each of them.
We still don't enforce length restrictions—the fact that we have to
accept ranges makes it more complex, and it doesn't seem especially
worthwhile.
9 years ago
Abhijit Menon-Sen
065bb52109
Be systematic about parsing and validating hostnames and addresses
...
This adds a parse_address(pattern) utility function that returns
(host,port), and uses it wherever where we accept IPv4 and IPv6
addresses and hostnames (or host patterns): the inventory parser
the the add_host action plugin.
It also introduces a more extensive set of unit tests that supersedes
the old add_host unit tests (which didn't actually test add_host, but
only the parsing function).
9 years ago
Marius Gedminas
f91b28ef23
Fix safe_eval() of set literals
...
There was code to support set literals (on Python 2.7 and newer), but it
was buggy: SAFE_NODES.union() doesn't modify SAFE_NODES in place,
instead it returns a new set object that is then silently discarded.
I added a unit test and fixed the code. I also changed the version
check to use sys.version_tuple instead of a string comparison, for
consistency with the subsequent Python 3.4 version check that I added in
the previous commit.
9 years ago
Brian Coca
5809a2e81d
Merge pull request #12299 from resmo/feature/test_cs_user
...
cloudstack: new integration test role test_cs_user
9 years ago
James Cammarata
444987cde6
Fix unit test for plugins after basedir/push_basedir removal
9 years ago
Rene Moser
f6382a160d
cloudstack: new integration test role test_cs_user
9 years ago
Toshio Kuratomi
e2c49b4ef4
Fix problem with "=" in the initial file path.
9 years ago
Toshio Kuratomi
3a50393cf7
Merge pull request #12269 from mgedmin/py3k
...
Python 3: fix TypeError: unorderable types in test
9 years ago
Toshio Kuratomi
c1039de70c
Compatibility with six-1.3.0
9 years ago
James Cammarata
ac6f61ec7f
Properly handle group/host_var files with dots in them
...
Fixes #12245
9 years ago
Marius Gedminas
c22f4ee697
Add a comment explaining why async = 1 in the test
9 years ago
Marius Gedminas
1a1c9203e2
Python 3: fix TypeError: unorderable types in test
...
The full error was
======================================================================
ERROR: test_task_executor_execute (units.executor.test_task_executor.TestTaskExecutor)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mg/src/ansible/test/units/executor/test_task_executor.py", line 252, in test_task_executor_execute
mock_action.run.return_value = dict(ansible_facts=dict())
File "/home/mg/src/ansible/lib/ansible/executor/task_executor.py", line 317, in _execute
if self._task.async > 0:
TypeError: unorderable types: MagicMock() > int()
----------------------------------------------------------------------
Experiments show that Python 2 MagicMock() > 0 is true, so I'm setting
the async property on mock_task to 1. (If I set it to 0, the test fails
anyway.)
9 years ago
James Cammarata
ff9f5d7dc8
Starting to add additional unit tests for VariableManager
...
Required some rewiring in inventory code to make sure we're using
the DataLoader class for some data file operations, which makes mocking
them much easier.
Also identified two corner cases not currently handled by the code, related
to inventory variable sources and which one "wins". Also noticed we weren't
properly merging variables from multiple group/host_var file locations
(inventory directory vs. playbook directory locations) so fixed as well.
9 years ago
Brian Coca
c17fbf2f12
simplify become testing and handling, we had drifted and were doulbe checking prompt, become and become_pass
...
fixed tests to conform to new signature and now tests both with and w/o password
now we are more explicit about self.prompt
9 years ago
Toshio Kuratomi
e218bf8da9
Do not escape backslashes when processing a template file.
...
Fixes #12198
Fixes #12241
9 years ago
James Cammarata
b2cb3153f1
Fix unit tests for PlayIterator changes regarding fact gathering
9 years ago
Marius Gedminas
a32bf1ec18
Simplify FactCache.copy()
...
Also fix the bug (missing from six import iteritems) I introduced in
823677b490
.
9 years ago
Marius Gedminas
823677b490
Replace .iteritems() with six.iteritems()
...
Replace .iteritems() with six.iteritems() everywhere except in
module_utils (because there's no 'six' on the remote host). And except
in lib/ansible/galaxy/data/metadata_template.j2, because I'm not sure
six is available there.
9 years ago
Toshio Kuratomi
1b64702b9a
Fix templar unittests for change in preserve_trailing_newline parameter's default value
9 years ago
James Cammarata
45aac6a739
Adding unit tests for safe_eval
9 years ago
James Cammarata
843138e7d9
Merge pull request #12202 from mgedmin/py3k
...
Use rich comparisons for Attribute and FieldAttribute
9 years ago
Toshio Kuratomi
9ecfc30f9a
* Mark all strings as unicode -- shouldn't matter for this dataset but
...
ansible is passing unicode arond internally so we should test the same
data.
* Add a zero length test for _count_newlines and fix the zero newlines
test to have no newlines.
9 years ago
Toshio Kuratomi
417bf1c805
Unittest the _count_trailing_newlines function
9 years ago
Brian Coca
a7231c2203
actually implemented flags correctly for all priv escalation methods
9 years ago
Brian Coca
14f061d5ea
fixed become tests
9 years ago
Marius Gedminas
33a374edde
Use rich comparisons for Attribute and FieldAttribute
...
Because __cmp__ is not supported on Python 3.
9 years ago
Toshio Kuratomi
aeff960d02
Cleanup combine_vars
...
* Dedupe combine_vars() code (removed from VariableManager)
* Fix merge_hash algorithm to preserve the type
* unittest combine_vars and merge_hash
9 years ago
Toshio Kuratomi
7f5080f64a
Fix backslash escaping inside of jinja2 expressions
...
Fixes #11891
9 years ago
James Cammarata
ccaf47bd97
Fix unit tests broken by 057712c1
9 years ago
Brian Coca
514fa73fcd
galaxy fixes
9 years ago
Marius Gedminas
c846bab69b
Fix assert statement syntax
...
`assert (condition, message)` gets parsed by Python as `assert
a_two_tuple`, and a 2-element tuple is never False.
Discovered by compileall on Python 3.4, which emits a SyntaxWarning for
this common mistake.
9 years ago
Marius Gedminas
709dbbc7db
Use 0oNNN octal syntax in test/
9 years ago
Marius Gedminas
727cb8a917
Support print() function in test/
9 years ago
Marius Gedminas
9ae66a7f5c
Use 'except ... as' syntax in contrib/ and test/ too
9 years ago
Abhijit Menon-Sen
4f3a98eff6
Update Vault tests to make sure AES decryption works
...
Note that this test was broken in devel because it was really just
duplicating the AES256 test because setting v.cipher_name to 'AES'
no longer selected AES after it was de-write-whitelisted.
Now that we've removed the VaultAES encryption code, we embed static
output from an earlier version and test that we can decrypt it.
9 years ago
Abhijit Menon-Sen
b84053019a
Make the filename the first argument to rekey_file
9 years ago
Abhijit Menon-Sen
c4b2540ecc
Update tests for VaultEditor API changes
9 years ago
James Cammarata
601a1cc6d9
Multiple fixes for include statements and blocks in general
...
Fixes #11981
Fixes #11995
Fixes #12039
Fixes #12077
9 years ago
Toshio Kuratomi
9f9891df2c
Add unicode characters to the data that we're testing that ansible-vault can decrypt
9 years ago
Toshio Kuratomi
56ae3a032f
Merge pull request #12075 from ansible/fix-vault-unicode
...
Unicode and other fixes for vault
9 years ago
Toshio Kuratomi
a3fd4817ef
Unicode and other fixes for vault
9 years ago
Brian Coca
846f0b0510
changed no_log expected type to new value
9 years ago
Brian Coca
3e13dfd7e8
used stdoutlines list to avoid string mismatches
...
added block environment test
9 years ago
Brian Coca
efa005c228
added names to assert tasks for easier debugging
9 years ago
Brian Coca
d6a1cbeefb
corrected varname that started with number and broke templating
9 years ago
Brian Coca
104b8a9a7b
avoid hostvars which is not a dict
9 years ago
Brian Coca
857d74a274
made diff ignore whitespace
9 years ago
Brian Coca
6da2587c36
Merge pull request #12058 from resmo/for-ansible
...
cloudstack: more integration tests and updates
9 years ago
James Cammarata
db65503778
Revert "Add PowerShell exception handling and turn on strict mode."
9 years ago
Rene Moser
69d5e62083
cloudstack: test_cs_account: account_state was renamed, fixes tests
9 years ago
Rene Moser
eb44f85dc8
cloudstack: test_cs_instance: make it more configurable
9 years ago
Rene Moser
15a7f818e1
cloudstack: add more integration tests
9 years ago
Brian Coca
3ccfebc9f7
Merge pull request #12047 from cchurch/powershell_common_cleanup
...
Add PowerShell exception handling and turn on strict mode.
9 years ago
Ryan Petrello
1886307845
Fix a parsing bug that prevents IPv6 addresses from being used with `add_host`
...
Closes #8682
9 years ago
Chris Church
af9200c2de
Add integration tests for win_group module.
9 years ago
Chris Church
4b2cdadc98
Add PowerShell exception handling and turn on strict mode.
...
* Add exception handling when running PowerShell modules to provide exception message and stack trace.
* Enable strict mode for all PowerShell modules and internal commands.
* Update common PowerShell code to fix strict mode errors.
* Fix an issue with Set-Attr where it would not replace an existing property if already set.
* Add tests for exception handling using modified win_ping modules.
9 years ago
Brian Coca
01708cc824
added test for environment directive
9 years ago
Feanil Patel
892e230514
Don't convert nulls to strings.
...
This change is similar to https://github.com/ansible/ansible/pull/10465
It extends the logic there to also support none types. Right now if you have
a '!!null' in yaml, and that var gets passed around, it will get converted to
a string.
eg. defaults/main.yml
```
ENABLE_AWESOME_FEATURE: !!null # Yaml Null
OTHER_CONFIG:
secret1: "so_secret"
secret2: "even_more_secret"
CONFIG:
hostname: "some_hostname"
features:
awesame_feature: "{{ ENABLE_AWESOME_FEATURE}}"
secrets: "{{ OTHER_CONFIG }}"
```
If you output `CONFIG` to json or yaml, the feature flag would get represented in the output
as a string instead of as a null, but secrets would get represented as a dictionary. This is
a mis-match in behaviour where some "types" are retained and others are not. This change
should fix the issue.
I also updated the template test to test for this and made the changes to v2.
Added a changelog entry specifically for the change from empty string to null as the default.
Made the null representation configurable.
It still defaults to the python NoneType but can be overriden to be an emptystring by updating
the DEFAULT_NULL_REPRESENTATION config.
9 years ago
Rene Moser
9d3577a74a
cloudstack: fix tests unhashable type: 'dict'
9 years ago
Rene Moser
8f3c181d90
cloudstack: tests: use resource_prefix
9 years ago
Brian Coca
69f380da3a
changed mod_args test to match connection
9 years ago
Jeremy Wells
9f9f476b6e
Update consul integration test with http checks
9 years ago
Brian Coca
ab355218a0
fixed test to new parser options
9 years ago
Brian Coca
1acb29ff9b
sequence will now run once for start=end, added test to suite
...
fixes #11979
9 years ago
Brian Coca
ee21ebaffc
Merge pull request #11975 from mutemule/become_doas
...
Add become support for OpenBSD doas
9 years ago
Damian Gerow
1c5611100e
Add become support for OpenBSD doas
9 years ago
Brian Coca
43bf9c86d8
fixed typo
9 years ago
Brian Coca
d38bb4152d
fixed test to match new exception class used
9 years ago
Brian Coca
2eb5333b50
fixed test to match new become output
9 years ago
Brian Coca
43cc27084d
corrected on delete also
9 years ago
Brian Coca
089687140d
corrected role path
9 years ago
Brian Coca
033c77a13b
now creates/removes files/ dir
9 years ago
Brian Coca
464a436f8f
fixed testplay host, included lookup path tests in all, added stage for easier debugging
9 years ago
Brian Coca
60803a1d3c
added lookup paths testing
9 years ago
Brian Coca
8f106c9a58
Merge pull request #11078 from Yannig/devel
...
New lookup plugin : ini
9 years ago
Toshio Kuratomi
e8452c864e
Restore the relative path handling portion of #11865
9 years ago
Brian Coca
b9433650d1
Revert "Path of group_vars and host_vars were getting the basedir added twice."
...
in view of simpler solution incomming from james
This reverts commit bae7a02be5
.
9 years ago
Toshio Kuratomi
bae7a02be5
Path of group_vars and host_vars were getting the basedir added twice.
...
Fix inventory so this won't happen and fix DataLoader so that it will
test relative paths relative to self._basedir
Fixes #11789
9 years ago
Yannig Perré
47db352725
Merge remote-tracking branch 'ansible/devel' into devel
9 years ago
Yannig Perré
c0bd140959
Add documentation for the ini lookup plugin.
9 years ago
Yannig Perré
733d40a77c
When value does not exist, return default value instead of stopping ansible with an exception.
9 years ago
James Cammarata
9891bcbcae
Fix unit tests broken by previous commit
9 years ago
Brian Coca
aefca24616
Merge pull request #10857 from jeffb-stell/devel
...
Add test for https://github.com/ansible/ansible/issues/9851
9 years ago
James Cammarata
6b244ed61e
update unit tests for role templating changes
9 years ago
James Cammarata
a586c74967
Merge pull request #11838 from cchurch/stringify_powershell_unquote_value
...
Fix for PowerShell unquote method when passed None.
9 years ago
Chris Church
cafc35fd5b
Fix for PowerShell unquote method when passed None.
9 years ago
Chris Church
6969b5ac8b
Make sure raw doesn't eat key=value arguments.
9 years ago
Chris Church
2154212491
Merge pull request #11094 from cchurch/test_win_feature_has_servermanager
...
Only run win_feature tests when the host has the ServerManager module.
9 years ago
Chris Church
e87cf4a3cc
Fixes for WinRM/PowerShell support in v2.
...
- Add support for inserting module args into PowerShell modules. Fixes #11661 .
- Support Windows paths containing spaces. Applies changes from #10727 to v2. Fixes #9999 . Should also fix ansible/ansible-modules-core#944 and ansible/ansible-modules-core#1007 .
- Change how execution policy is set for running remote scripts. Applies changes from #11092 to v2. Also fixes ansible/ansible-modules-core#1776 .
- Use codepage 65001 (UTF-8) for WinRM connection instead of default (CP437), convert command to UTF-8 and results from UTF-8. Replaces changes from #10024 . Fixes #11198 .
- Close WinRM connection when task completes.
- Use win_stat, win_file and win_copy modules instead of stat, file and copy when called from within other action plugins (only when using WinRM+PowerShell).
- Unquote Windows path arguments before passing to win_stat, win_file, win_copy and slurp modules (only when using WinRM/PowerShell).
- Check for win_ping module to determine if core modules are missing (only when using WinRM/PowerShell).
- Add stdout_lines to result from running low level commands (so stdout_lines is available when using raw/script).
- Update copy action plugin to use shell functions for joining paths and checking for trailing slash.
- Update fetch action plugin to unquote source path when using Windows paths.
- Add win_copy and win_template action plugins that inherit from copy and template.
- Support running .bat and .cmd scripts using default system encoding instead of UTF-8.
- Always send PowerShell commands as base64-encoded blobs to allow for running simple PowerShell commands via raw.
- Support running modules on Windows with interpreters other than PowerShell.
- Update integration tests to support above changes and test unicode fixes.
- Add test for win_user error from ansible/ansible-modules-core#1241 (fixed by ansible/ansible-modules-core#1774 ).
- Add test for additional win_stat output values (implemented by ansible/ansible-modules-core#1473 ).
- Add test for OS architecture and name from setup.ps1 (implemented by ansible/ansible-modules-core#1100 ).
All WinRM integration tests pass for me with these changes.
9 years ago
Brian Coca
c2d8ca4bf7
fixed test to expected output
9 years ago
Brian Lloyd
07b14b9731
integration tests for windows implementation of lineinfile
9 years ago
James Cammarata
ba56beda90
Fix include task using a potentially undefined variable
9 years ago
James Cammarata
71867f9480
Remove vars attribute from base
...
Fixes #11779
9 years ago
James Cammarata
42cfacf83b
Switch up the task/host overrides for PlayContext to use the compiled vars dict
...
Fixes #11436
9 years ago
James Cammarata
e505a1b7c4
Fix variable precedence integrationt test
9 years ago
Brian Coca
c76a66694f
fixed typo
9 years ago
Michael Scherer
106e942faa
Document and test 'is undefined' rather than 'is not defined'
...
According to https://github.com/ansible/ansible/issues/10273 ,
this syntax should work better for nested dicts.
9 years ago
James Cammarata
8146a193eb
Fix strategy base unit tests after 88e1ef8
9 years ago
Toshio Kuratomi
b06353791c
Don't pass mode from synchronize action plugin to the ansible module
...
Fixes https://github.com/ansible/ansible-modules-core/issues/1783
9 years ago
James Cammarata
993ce592b1
Update unit tests for flush_handlers fix
9 years ago
James Cammarata
66a8864ae9
Fix environment setting and inheritence
...
Fixes #11401
9 years ago
James Cammarata
46f74a0d69
Re-adding --start-at-task test to unicode integration test
9 years ago
James Cammarata
e64989beb4
Moving ConnectionInformation -> PlayContext
...
Also making PlayContext a child class of the Playbook Base class,
which gives it access to all of the FieldAttribute code to ensure
field values are correctly typed after post_validation
Fixes #11381
9 years ago
James Cammarata
b09eed3353
Merge branch 'test_notify_with_loops' of https://github.com/pilou-/ansible into pilou--test_notify_with_loops
9 years ago
James Cammarata
fadd8f23f1
Fix broken strategy unit test from earlier change
9 years ago
James Cammarata
dca36c1d16
Reestablishing the use of tags/when for role duplication detection
...
Not figuring these in can cause problems with "diamond" pattern relationships,
even though this is still not quite optimal.
9 years ago
Pierre-Louis Bonicoli
aa23ea8462
tests: checks that handlers work with loops
9 years ago
Pierre-Louis Bonicoli
8c392a94b7
Play.get_name: remove prefix, return name only
9 years ago
James Cammarata
3d77723e3d
Cleaning up some stuff related to the connection info/become/executable change
9 years ago
Brian Coca
9dc5607730
Merge pull request #11519 from bcoca/human_readable
...
new human_readable filter to transform bits and bytes into cake
9 years ago
James Cammarata
d6b058eaae
Removing invocation from async test, as it's pointless
9 years ago
Brian Coca
323362e23a
added stdout to test result
9 years ago
Toshio Kuratomi
327b1676a8
Add support for SNI and TLS-1.1 and TLS-1.2 to the fetch_url() helper
...
Fixes #1716
Fixes #1695
9 years ago
Brian Coca
f6c64a8c00
fixed var file loading
9 years ago
Brian Coca
5eb25a48ee
added empty include test
9 years ago
Brian Coca
22165dd046
fixed bad parsing tests
9 years ago
James Cammarata
3b913943b2
Updating base strategy unit test regarding bad file loads based on earlier change
9 years ago
Brian Coca
44aef347cb
enabled good parsing tests in parsing target
...
fixed test_good_parsing role
added raw duplicate parameters to test_good_parsing
9 years ago
James Cammarata
6971e92f39
Fixing up some output stuff
9 years ago
Brian Coca
b4de103bb2
Merge pull request #11555 from cchurch/test_win_get_url_updates
...
Update tests for win_get_url module to test force parameter
9 years ago
Chris Church
1aa2191fd5
Update tests for win_get_url module to test force parameter and invalid URLs/paths.
9 years ago
Brian Coca
c6dde19a5e
Merge pull request #11537 from chrismeyersfsu/azure-test
...
assert password or ssh key provided on new image creation
9 years ago
Brian Coca
9c5a6d7b5a
fixed all references to old plugins/inventory to point at contrib/inventory
9 years ago
James Cammarata
5430169b77
Cleaning up includes test to match 2.0 behavior
...
* Perhaps the only precedence change, in 2.0+ variables from set_fact
will not override params to an include file, as params are expected
to be more specific than host-based variables.
* Uncommented long-form include example.
9 years ago
James Cammarata
1163e38d39
Fix unit tests for new magic variable addition 'ansible_version'
9 years ago
James Cammarata
bbe8f48a46
Update role unit tests for changes made to require a play during loading
9 years ago
James Cammarata
b520d5bc60
Lots of fixes for integration test bugs
9 years ago
Chris Meyers
32685f9648
assert password or ssh key provided on new image creation
9 years ago
James Cammarata
27fcf1a4b5
Fix bug in registered variables related to delegate_to changes
9 years ago
James Cammarata
f5baad4fb2
Removing unicode --start-at-task test for now as we haven't added that back into devel
9 years ago
James Cammarata
64a1b1e043
Fix first_available_file: support for copy and template actions
9 years ago
marconius
79394f5c8f
Added tests for `taggable` module
9 years ago
Brian Coca
48827a31bc
added minimal testing for special template vars
9 years ago
James Cammarata
bfbb88b4a9
Fix strategy plugin unit tests related to earlier changes
9 years ago
Brian Coca
688088547b
new human_readable filter to transform bits and bytes into cake (not really)
9 years ago
Toshio Kuratomi
f44f9569e1
Test unquote works as expected and fix two bugs:
...
* escaped end quote
* a single quote character
9 years ago
Brian Coca
aa6486778f
fixed become test to match new expected output
9 years ago
James Cammarata
53cd96befe
Updating unit tests to account for new magic variable 'vars'
10 years ago
Brian Coca
5122455db8
ported missing sequence updates from 1.9
10 years ago
Matt Martz
2cd3a1be00
assertRaises should be given an exception type. Fixes 11441
10 years ago
Matt Martz
43f81c7c01
Fix YAML formatting issue for rax integration tests
10 years ago
Brian Coca
200706d5ab
Merge pull request #9812 from fgsch/fix_1904
...
Allow globbing in creates= and removes= directives
10 years ago
Matt Martz
c440762b61
Make the wait_timeout for rax tests a configurable default
10 years ago
James Cammarata
4fbd4ae18b
Update VariableManager test for additional magic variable playbook_dir
10 years ago
Matt Martz
b370f6efce
Add tests for rax_scaling_group
10 years ago
Toshio Kuratomi
605ddad37e
Add test that url lookup checks tls certificates
10 years ago
James Cammarata
d913f169a8
Update failed_when integration test to be more thorough
10 years ago
Brian Coca
5ed2e44026
adjusted with_dict test to now work
10 years ago
Brian Coca
dc31086a17
added with_dict test
10 years ago
Brian Coca
5bac17de51
fixed pfexec test
10 years ago
Brian Coca
11f1d99a5b
added test for first_available and copy
10 years ago
Brian Coca
b9bb3e83b7
added new test that allows for listed bare strings
...
now with_times: barestring, will error out in test
10 years ago
Brian Coca
091caf6279
added missing error class import
10 years ago
Brian Coca
e9cf67004b
updated fail_on_undefined test to new function signatures
10 years ago
Brian Coca
aa6e204b6e
Merge pull request #11115 from jhawkesworth/second_go_at_fixing_1404
...
Part fix for https://github.com/ansible/ansible-modules-core/issues/1404 (replaces #11086 )
10 years ago
Matt Martz
230be812ba
Don't test for play.become_pass any longer
10 years ago
Matt Martz
49d19e82ab
Get tests passing
...
The largest failure in the tests was due to selinux not being installed.
The tests don't require it to be installed, so mock the import.
10 years ago
James Cammarata
9ac624d2c9
Fix mock DictDataLoader _get_file_contents to match real code
10 years ago
James Cammarata
e547e1f9ba
Merge branch 'devel' into devel_switch_v2
10 years ago
James Cammarata
fe41f109a9
Merge branch 'v2_final' into devel_switch_v2
10 years ago
James Cammarata
4bc7703db3
Fixing some small bugs related to integration tests (v2)
10 years ago
Jon Hawkesworth
30b92a6f4c
Get-FileChecksum allways returns a string now,
...
and the test_win_copy integration tests that depend on the checksum
have been updated in this change too.
10 years ago
Chris Church
d2ba0de6aa
When running winrm tests against multiple hosts, fail the play when any host has a failure.
10 years ago
Chris Church
8d742df1de
Allow prepare_win_tests role to run multiple times, before each role that depends on it.
10 years ago
Chris Church
1e418fe56a
Only run win_feature tests when the host has the ServerManager module.
10 years ago
James Cammarata
0828028c71
Fixing unit test for included file changes
10 years ago
Toshio Kuratomi
ac14ad1419
Test on fields that are actually set
10 years ago
Toshio Kuratomi
73b7d96501
Test on fields that exist
10 years ago
Toshio Kuratomi
1bda7cc200
Test that uri module validates certs
10 years ago
Toshio Kuratomi
0f4a3409d8
Add test that validate_certs=no works
10 years ago
James Cammarata
60bea844b3
Merge branch 'v2_final' into devel_switch_v2
10 years ago
James Cammarata
2bad888f28
Merge branch 'v2_final' into devel_switch_v2
...
Conflicts:
lib/ansible/inventory/__init__.py
lib/ansible/modules/core
lib/ansible/utils/__init__.py
lib/ansible/utils/module_docs.py
10 years ago
Toshio Kuratomi
afc19894e1
Make fetch_url check the server's certificate on https connections
10 years ago
Toshio Kuratomi
1ccf2a4685
Make fetch_url check the server's certificate on https connections
10 years ago
James Cammarata
e59d4f3b51
More module_utils/basic.py unit tests for v2
10 years ago
Toshio Kuratomi
b91532aff3
Drop the mysql test db first so that we test with a clean slate.
10 years ago
Yannig Perre
c2968d6d84
New lookup plugin : ini. Can handle ini file and java properties file.
...
Can also read a list of value in a section using regexp.
10 years ago
James Cammarata
339a02c384
Started reworking module_utils/basic unit tests (v2)
10 years ago
James Cammarata
d4a31e8d26
Adding unit tests for TaskExecutor (v2)
10 years ago
Serge van Ginderachter
b92d70c5b6
tests files extensions in group/host_vars dir
...
only files with extensions as per
C.YAML_FILENAME_EXTENSIONS should be parsed
10 years ago
James Cammarata
838ff32001
Fix unit test for conn_info (v2)
...
The default user expected in the connection information is the current
user, not root
10 years ago
James Cammarata
ecd5eb902d
Adding unit tests for ConnectionInformation (v2)
10 years ago
Toshio Kuratomi
a8d52e3e94
Have to setup the proper mime-types before importing SImpleHttpServer
10 years ago
Toshio Kuratomi
7af2632c87
Forgot to invoke wrapper instead of SimpleHttpServer
10 years ago
Toshio Kuratomi
b312e97a30
Think that integration tests are failing in json due to lack of json mimetype. Make a short wrapper to fix that.
10 years ago
Toshio Kuratomi
13253f9c68
Merge pull request #10565 from bcoca/with_sequence_expand
...
made sequence more flexible
10 years ago
James Cammarata
9921a1d2be
Unit tests for base strategy class (v2)
10 years ago
Toshio Kuratomi
13578738bf
Merge pull request #11014 from ansible/uri-integration
...
Uri integration tests
10 years ago
Brian Coca
78985e5c33
Merge pull request #11030 from resmo/feature/cloudstack_tests_cs_portforward
...
cloudstack: add tests for cs_portforward
10 years ago
Rene Moser
3916dc8f9e
cloudstack: add tests for cs_portforward
10 years ago
Rene Moser
3d816402ba
cloudstack: add tests for cs_firewall
10 years ago
James Cammarata
21fa385ce7
Reorganizing plugin unit tests and adding start of strategy tests (v2)
10 years ago
James Cammarata
a960fcd569
Adding module_utils tests from v1 to v2
10 years ago
James Cammarata
398b1d3e60
Cleaning up template test syntax a bit
10 years ago
James Cammarata
9aa8676bdd
More template unit tests for v2
10 years ago
James Cammarata
23cd3294d0
Starting to add v2 tests for template
10 years ago
James Cammarata
48d62fd934
Cleaning up VariableManager tests (v2)
10 years ago
Toshio Kuratomi
0f9ad9dad2
Update integration tests from @darkk to work with the current uri module code
10 years ago
Leonid Evdokimov
3383a7b37a
tests: replace start-stop-daemon with async action
10 years ago
Leonid Evdokimov
ae9ba4afa1
uri: provide raw_content, parse json without double-decoding. Fixes #7586
...
Regression potential:
- `raw_content` is written to `dest` file instead of decoded `content`
- `raw_content` doubles module reply
10 years ago
James Cammarata
a0509cda1e
Fix test_role unit tests to use unique role names to avoid role caching errors
10 years ago
Toshio Kuratomi
bbda86ad0a
Fix parsing tests so that they all run
10 years ago
James Cammarata
b94e2a1f4e
Fixing bugs related to parsing and fixing up parsing integration tests (v2)
10 years ago
James Cammarata
830225d9c1
Fix errors in subelements lookup plugin and associated tests (v2)
10 years ago
Jan Losinski
dcb54d9657
Add integration test to verify #10073
...
In issue #10073 a misbehaviour in literal handling for inline lookup
arguments that can cause unexpected behaviur was reported. This
integration testcase reproduce the problem.
After applying pull request #10991 the issue is fixed and the test
passes.
Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
10 years ago
Serge van Ginderachter
9b646dea41
Add optional 'skip_missing' flag to subelements
10 years ago
James Cammarata
1ca8cb8553
Fixing up v2 unit tests
10 years ago
Rene Moser
9180ede6e0
cloudstack: add test for cs_account
10 years ago
Toshio Kuratomi
f9f8af06fc
Change asserts to assertIsInstance for better error messages
10 years ago
Matt Martz
a0fc8bb0bd
Testing additions and fixes
...
* Fix import pathing for units.mock
* Add some additional requirements
* Use compileall to test compatiblity with different python versions
10 years ago
Chris Meyers
cf300da02c
azure changes to Makefile
10 years ago
Chris Meyers
efb190d5a5
add azure integration tests
10 years ago
James Cammarata
8f504dacdd
Merge branch 'devel' into v2_final
...
Conflicts:
lib/ansible/modules/core
v2/ansible/modules/core
v2/ansible/modules/extras
10 years ago
Brian Coca
1071fa12ca
Merge pull request #10908 from resmo/feature/cloudstack-tests
...
cloudstack: integration tests
10 years ago
Brian Coca
4d357a73f6
Merge pull request #10868 from jaypei/devel
...
Add lineinfile integration tests for quoted string
10 years ago
James Cammarata
ce3ef7f4c1
Making the switch to v2
10 years ago
Rene Moser
0588a0fdd9
cloudstack: integration tests
10 years ago
Toshio Kuratomi
da5e201b07
Change python-q into sharutils as the epel repo for centos6 is being funky.
10 years ago
Toshio Kuratomi
6a985b9c6b
Add Fedora mysql vars so we get mariadb rather than mariadb-galera
10 years ago
Toshio Kuratomi
3ccc2ae299
Fix include test to keep type
10 years ago
Toshio Kuratomi
974731bec0
Fix filename of output file
10 years ago
Toshio Kuratomi
8d0ceeca91
Make template test work with both py2.6 and 2.7+
10 years ago
Toshio Kuratomi
fb96173d10
to_nice_json filter no longer has a trailing space when formatting dicts
10 years ago
jaypei
288fe1179a
Add lineinfile integration tests for quoted string
...
Reference #10864
10 years ago
Jeff Bachtel
47c3d75c3c
Add test for https://github.com/ansible/ansible/issues/9851
10 years ago
Carlos E. Garcia
cfbfd38723
just a few spelling error changes
10 years ago
Toshio Kuratomi
6935d467eb
Add tests for yum module taking lists of packages in various formats
10 years ago
Toshio Kuratomi
a0def30c34
Add integration test for unarchive filelist feature
10 years ago
Toshio Kuratomi
aab681bc2b
Update core and extras module refs and add tests for an unarchive
...
problem that the update fixes:
https://github.com/ansible/ansible-modules-core/issues/1064
10 years ago