James Cammarata
26bbabcfba
Consolidating package lines for virtualenv install in test deps integration
2015-12-17 11:15:06 -05:00
James Cammarata
cf3d503f79
Moving apt cache update to top to ensure cache is updated before deps installed
2015-12-17 11:00:54 -05:00
James Cammarata
0b1ad8d490
Switch virtualenv dep installation from pip to package manager
2015-12-17 10:41:58 -05:00
James Cammarata
dd3d04e96a
Adding pip install of virtualenv to test deps integration role
2015-12-17 10:31:14 -05:00
James Cammarata
5fa93ef8fc
Merge pull request #13477 from chrismeyersfsu/jenkins-playbooks
...
Jenkins playbooks
2015-12-17 10:19:52 -05:00
James Cammarata
d7f2f606e1
Add has_hostkey to mock objects to fix broken unit tests
2015-12-16 21:49:33 -05:00
James Cammarata
857456ea5f
Fixing template integration test for python 2.6 versions
...
No longer immediately fallback to to_json if simplejson is not installed
2015-12-16 18:22:22 -05:00
Toshio Kuratomi
fffd29d1ab
Update mysql setup to handle installing mysql with dnf too.
2015-12-16 14:06:51 -08:00
James Cammarata
6109f70397
Attempt at fixing strategy unit test failures on py2.6 and py3
2015-12-16 14:02:25 -05:00
Toshio Kuratomi
1116bc6ca6
Merge pull request #13191 from Jmainguy/mysql
...
Add shared connection code for mysql modules
2015-12-16 10:47:49 -08:00
Jonathan Mainguy
34e88e48a5
Add shared connection code for mysql modules
2015-12-16 13:36:18 -05:00
Toshio Kuratomi
375eb501b3
Update url to site that has an invalid certificate
2015-12-16 09:41:01 -08:00
Michael Scherer
a7ac98262d
Make module_utils.known_hosts.get_fqdn work on ipv6
2015-12-14 19:30:54 +01:00
Toshio Kuratomi
457f86f61a
Minor: Correct type pyhton => python
2015-12-14 08:50:37 -08:00
Toshio Kuratomi
fc19ad21ef
Merge pull request #13494 from Jmainguy/msyql_hash_tests
...
add tests for encrypted hash mysql_user
2015-12-14 07:58:39 -08:00
Jonathan Mainguy
49dc9eea16
add tests for encrypted hash mysql_user
2015-12-14 10:12:06 -05:00
James Cammarata
35015aaa4a
Merge pull request #13529 from mscherer/add_tests_known_hosts
...
Add tests for ansible.module_utils.known_hosts
2015-12-14 09:50:23 -05:00
James Cammarata
279c5a3596
Cleanup strategy tests broken by new forking strategy
2015-12-14 03:07:20 -05:00
Michael Scherer
3c4d2fc6f2
Add tests for ansible.module_utils.known_hosts
2015-12-12 20:03:35 +01:00
James Cammarata
97554fc222
Fixing filter test for extract to use proper group
2015-12-11 14:55:38 -05:00
James Cammarata
c402325085
Fixing up docker integration tests a bit
2015-12-10 13:10:59 -05:00
Toshio Kuratomi
04fc3f118f
Code smell test for specifying both required and default in FieldAttributes
2015-12-09 08:25:29 -08:00
Chris Meyers
8d66dcda21
remove .gitignore
2015-12-09 09:39:45 -05:00
Chris Meyers
f16628ffec
symbolic link role for testing
2015-12-09 09:37:39 -05:00
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
2015-12-09 07:52:43 -05:00
Chris Meyers
822624d061
rename role ansible_deps to ansible_test_deps
2015-12-08 14:05:57 -05:00
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.
2015-12-08 12:24:42 -05:00
James Cammarata
750adbaa27
Changing up how host (in)equality is checked
...
Fixes #13397
2015-12-04 12:57:46 -05:00
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).
2015-12-03 14:16:29 -08:00
Brian Coca
7d073bdd17
Merge pull request #13345 from amenonsen/extract
...
Add an 'extract' filter
2015-12-03 11:19:06 -08:00
Toshio Kuratomi
e00012994e
Also some unicode tests for return_values()
2015-12-02 21:09:53 -08:00
Toshio Kuratomi
5fdfe6a0f2
Add some test data that has unicode values
2015-12-02 21:07:41 -08:00
Toshio Kuratomi
ac54ac618c
Something's strange... let's see if python2.6 is really the same now...
2015-12-02 14:49:28 -08:00
Toshio Kuratomi
eb7db067f9
Fix template test results on python2.6
2015-12-02 10:32:10 -08:00
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.
2015-12-02 18:16:38 +05:30
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
2015-12-01 21:11:12 -08:00
James Cammarata
dc0fae1af7
Also make sure remote_user is defaulted correctly for delegated hosts
...
Fixes #13323
2015-11-30 16:15:14 -05:00
Chris Church
f3476b556d
Add assertions for ansible_date_time in setup result.
2015-11-27 00:39:51 -05:00
James Cammarata
3c8c2fb090
Merge pull request #13208 from agx/zypper-integration-test
...
Add integration tests for zypper
2015-11-23 15:20:35 -05:00
James Cammarata
e62fb04a2e
Merge pull request #13229 from zarnovican/bza_fix_test_hg
...
test_hg fix: remove reference to "head"
2015-11-23 14:34:13 -05:00
James Cammarata
138068c56e
Merge pull request #13230 from zarnovican/bza_fix_test_svn
...
test_svn fix: remove hardcoded "~/ansible_testing/svn" path
2015-11-23 14:33:33 -05:00
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.
2015-11-23 11:53:05 -05:00
Brano Zarnovican
a30a52ef52
test_svn fix: remove hardcoded "~/ansible_testing/svn" path
2015-11-20 13:36:55 +01:00
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..
2015-11-20 13:02:17 +01:00
James Cammarata
91500f8f5f
Fix include param precedence in variable manager
2015-11-19 09:01:51 -05:00
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.
2015-11-18 18:25:43 +01:00
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.
2015-11-17 11:57:50 +01:00
Brian Coca
e61882ca19
Merge pull request #13170 from robinro/integration_test_git_ansible-modules-core_pull_721
...
add test for changing git remote url
2015-11-16 14:53:47 -08:00
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.
2015-11-16 10:53:10 -08:00
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.
2015-11-15 10:45:24 +10:00
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
2015-11-14 17:03:41 +01:00
Brian Coca
5d645f3a8b
Merge pull request #13127 from willthames/test_become
...
Elevate privileges when checking for file existence
2015-11-12 22:35:01 -08:00
Toshio Kuratomi
318bfbb207
Migrate cli and dependencies to use global display
2015-11-11 10:44:22 -08:00
Brian Coca
206cc50bd9
breaks testing in non virtual envs, since env var can be used in those
...
cases removing it from here
2015-11-12 09:40:43 -08:00
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.
2015-11-11 23:42:35 +10:00
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.
2015-11-10 09:50:27 -08:00
Toshio Kuratomi
aa034f4fcf
Add unit tests for issue #12976
2015-11-05 10:52:37 -08:00
Toshio Kuratomi
37052a983a
Fix unittest dailure with the new squash items code
2015-11-05 10:45:54 -08:00
James Cammarata
23ff08ee6b
Merge pull request #13016 from dvarrazzo/pip-vcs-changed
...
Added tests to verify pip installation with VCS urls
2015-11-05 08:16:12 -05:00
Will Thames
91b6004149
Allow blank lines and comments/spaces in galaxy spec files
...
Fixes #10641 again. (Regression)
Added test to discourage future such regression.
2015-11-04 15:36:20 +10:00
Scott Miller
98b694f5ca
Update README.md
2015-11-03 14:11:22 -05:00
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
2015-11-03 14:54:40 +00:00
Brian Coca
c267e1906e
removed invocation from tests as it is only available on very very verbose mode
2015-10-31 13:00:53 -04:00
Chris Meyers
4b88cce6a1
update ansible_test_service checksum
2015-10-28 14:55:13 -04:00
Brian Coca
174de1161b
fixed removing -n in password sudo tests
2015-10-28 02:36:28 -04:00
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
2015-10-28 02:06:25 -04:00
James Cammarata
1910f23144
Merge pull request #12801 from chrismeyersfsu/fix-test_destructive_init
...
run correct init system tests
2015-10-27 15:58:19 -04:00
James Cammarata
9b22004540
Merge pull request #12795 from chrismeyersfsu/fix-test_destructive_mysql_user
...
remove module param quotes
2015-10-27 15:51:45 -04:00
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
2015-10-27 12:39:42 -07:00
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.
2015-10-23 23:15:45 -04:00
Toshio Kuratomi
ce2b18174e
Merge pull request #12878 from ansible/invocation-fix
...
Invocation fix
2015-10-22 16:17:40 -07:00
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
2015-10-22 16:07:26 -07:00
James Cammarata
86de1429e5
Cleaning up FIXMEs
2015-10-22 16:03:50 -04:00
Toshio Kuratomi
ed6aa75d63
Add parsing test to travis to catch that invocation is missing
2015-10-22 09:03:12 -07:00
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
.
2015-10-22 08:53:37 -07:00
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 .
2015-10-22 13:30:42 +10:00
Toshio Kuratomi
5a0e63af1e
Workaround seeming bug in python-2.6's sys.exit()
2015-10-21 11:54:02 -07:00
Toshio Kuratomi
6e5055e786
Update the use of no_log values to cover everything that heuristic_log_sanitize does.
...
Fixes #12792
2015-10-21 08:15:46 -07:00
Chris Meyers
6c265cde49
invoke systemd test for ubuntu >= 15.04 else invoke upstart test
2015-10-21 09:15:27 -04:00
Toshio Kuratomi
c2d188baff
Hide values in json returns which were given in parameters marked no_log.
2015-10-20 12:42:36 -07:00
Toshio Kuratomi
a22cf8ffc1
Properly add the new test and limit six test to lib
2015-10-19 18:39:15 -07:00
Chris Meyers
f864fa8727
run systemd tests for fedora
2015-10-19 13:21:34 -04:00
Brian Coca
c1a404e6ec
Merge pull request #12799 from resmo/for-ansible
...
cloudstack: add tests for cs_loadbalancer_rule and _member
2015-10-19 11:15:12 -04:00
James Cammarata
2346a7f170
Merge pull request #12800 from chrismeyersfsu/fix-test_destructive_yum
...
remove invocation keyword check
2015-10-18 10:19:08 -04:00
James Cammarata
549bdb2503
Merge pull request #12804 from chrismeyersfsu/fix-test_non_destructive_makefile
...
allow env variable override of creds file
2015-10-18 10:18:22 -04:00
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.
2015-10-17 12:45:29 -04:00
James Cammarata
8baea3cba8
Merge pull request #12796 from chrismeyersfsu/fix-test_destructive_mysql_variables
...
fix up mysql variable assertion logic
2015-10-17 10:14:08 -04:00
Chris Meyers
d6dfd9f502
run correct init system tests
2015-10-17 09:25:49 -04:00
Chris Meyers
5177cb3f74
remove invocation keyword check
2015-10-17 09:24:03 -04:00
Rene Moser
bb5dcc00b6
cloudstack: add tests for cs_loadbalancer_rule and _member
2015-10-17 14:01:02 +02:00
James Cammarata
450c8d45c6
Merge pull request #12787 from chrismeyersfsu/fix-test_destructive_apt
...
keyword not in ubuntu 14.04
2015-10-17 07:43:34 -04:00
Chris Meyers
75833c248e
fix up mysql variable assertion logic
2015-10-16 18:42:03 -04:00
Chris Meyers
ce4e98a6d0
remove module param quotes
2015-10-16 18:39:02 -04:00
Toshio Kuratomi
eebd3cc336
Merge pull request #12788 from chrismeyersfsu/fix-test_destructive_state
...
remove non-existant state var
2015-10-16 12:43:40 -07:00
Chris Meyers
a0264983ad
remove non-existant state var
2015-10-16 15:40:31 -04:00
Chris Meyers
5c01622457
keyword not in ubuntu 14.04
2015-10-16 15:37:39 -04:00
Brian Coca
6d87bd405d
Merge pull request #12765 from bcoca/lookup_inventory_hostname
...
implemented inventory_hostname lookup in v2
2015-10-16 15:05:23 -04:00
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)
2015-10-16 10:31:35 -07:00
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.
2015-10-16 08:21:28 -07:00
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
2015-10-16 17:41:01 +03:00