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