Commit Graph

1233 Commits (909216959a28de936511131686fa5fa023d489f6)

Author SHA1 Message Date
James Cammarata c0248873da Integration test runner tweaks 9 years ago
James Cammarata 75695f5c70 Kick up the integration runner test image size 9 years ago
James Cammarata 0a6bc57fa5 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 c605cd37f6 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
James Cammarata 81f09f3fbd Disable docker test for Fedora, due to broken packaging 9 years ago
James Cammarata b77d834239 Uncomment docker test for stable-2.0 9 years ago
James Cammarata 7607e55a5a Save output of integration test results to files we can archive 9 years ago
Matt Clay ce17557b84 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 80e109e1ad And change the task a little more since different shlex versions are handling the quotes differently 9 years ago
Toshio Kuratomi fdc562e3c3 Fix test playbook syntax 9 years ago
Toshio Kuratomi 1dcfd7ba02 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
James Cammarata 9cfa2d7e28 Fixing bugs in conditional testing with until and some integration runner tweaks 9 years ago
Toshio Kuratomi 5bd01c09d6 Troubleshooting has reduced us to this 9 years ago
Toshio Kuratomi 61bd0e1310 Fix the fedora host detection 9 years ago
Toshio Kuratomi bb1047c483 What is going on here 9 years ago
James Cammarata c2a29a01a2 Removing update all for test deps, it didn't fix the problem 9 years ago
James Cammarata 6a1ebaa1bc Fix typo in integration test runner role 9 years ago
Toshio Kuratomi 1d1a04008e Update mysql setup to handle installing mysql with dnf too. 9 years ago
James Cammarata 1cde02058f Make integration tests run in parallel with async 9 years ago
Toshio Kuratomi 48675550bf 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 3955ea5a8a Fixes for tests that assumed yum as package manager for systems that
have dnf
9 years ago
Toshio Kuratomi 454c8ff5b8 Switch from yum to package when installing sudo so that dnf is handled as well 9 years ago
Toshio Kuratomi d2bf615780 Fix unittests for return of invocation from fail_json and exit_json 9 years ago
Toshio Kuratomi de9517dcc8 Also need redhat-rpm-config to compile pycrypto 9 years ago
Toshio Kuratomi bef2b70eae 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
Toshio Kuratomi 9689f00bb1 Add a Fedora latest host into the mix 9 years ago
James Cammarata 2f0e8d9654 Make integration runner ec2 add_hosts use valid host names 9 years ago
Toshio Kuratomi 6d9235e36d Fix the fedora host detection 9 years ago
Toshio Kuratomi eb606cc18b What is going on here 9 years ago
Toshio Kuratomi 85ef768d51 Bugfix the fedora 23 install task 9 years ago
Toshio Kuratomi 457e32128f Ubuntu images with hvm ssd 9 years ago
Toshio Kuratomi e8ce341f9c Fedora 23 needs to have python2 packages installed 9 years ago
Toshio Kuratomi 87214005d2 Make tests that use kennethreitz retry. 9 years ago
James Cammarata b912923ef2 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 46bc8253e1 Add awk to integration test deps list 9 years ago
Toshio Kuratomi 1f70fc6424 Add state=latest to pip install of pycrypto 9 years ago
James Cammarata ed4ad5f6fb Add ca-certificates update to the integration deps playbook 9 years ago
Toshio Kuratomi 69eb22c652 Install an updated version of pycrypto on Ubuntu12 from pip 9 years ago
Toshio Kuratomi dca880d04a kennetreitz.org times out but www.kennethreitz.org is fine 9 years ago
Toshio Kuratomi 0c6364c771 debug line needs var not msg 9 years ago
James Cammarata bcd66059ae Use --source instead of -e for awk in integration Makefile 9 years ago
Toshio Kuratomi 72e6dbcd12 Fix get_url tests in light of distros backporting SNI support 9 years ago
James Cammarata 184c2985fc Consolidating package lines for virtualenv install in test deps integration 9 years ago
James Cammarata 4abbe8a989 Moving apt cache update to top to ensure cache is updated before deps installed 9 years ago
James Cammarata ce159ce2eb Switch virtualenv dep installation from pip to package manager 9 years ago
James Cammarata fdb94b9a7a Adding pip install of virtualenv to test deps integration role 9 years ago
Chris Meyers be0e826091 remove .gitignore 9 years ago
Chris Meyers f12ed5eba8 symbolic link role for testing 9 years ago
Chris Meyers b1d5e9ff3c 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
Chris Meyers dcb732b416 rename role ansible_deps to ansible_test_deps 9 years ago
Chris Meyers ad6ec9610e 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
Brian Coca 5e9d182229 changed test to use filter for accurate reporting 9 years ago
James Cammarata 407d76b8d5 Fixing template integration test for python 2.6 versions
No longer immediately fallback to to_json if simplejson is not installed
9 years ago
Jonathan Mainguy 9f69b6b585 Add shared connection code for mysql modules 9 years ago
James Cammarata 9e52a7c769 Attempt at fixing strategy unit test failures on py2.6 and py3 9 years ago
Toshio Kuratomi 8fd438000a Update url to site that has an invalid certificate 9 years ago
James Cammarata 54ce8327cb Disabling docker test for stable-2.0 due to versioning issues 9 years ago
Michael Scherer b6dac26224 Make module_utils.known_hosts.get_fqdn work on ipv6 9 years ago
Michael Scherer a7a3a34987 Add tests for ansible.module_utils.known_hosts 9 years ago
Toshio Kuratomi 66be9d06c4 Minor: Correct type pyhton => python 9 years ago
Jonathan Mainguy 887319f95c add tests for encrypted hash mysql_user 9 years ago
James Cammarata 0b66ec0ddd Cleanup strategy tests broken by new forking strategy 9 years ago
James Cammarata 75e6fb30d5 Fixing up docker integration tests a bit 9 years ago
Toshio Kuratomi 8f6f2fc920 Code smell test for specifying both required and default in FieldAttributes 9 years ago
Brian Coca 0533e0bc96 fixed doas from getting stuck when needing passwords
Also adjusted test to match new doas become output
fixes #13449
9 years ago
James Cammarata cd76552724 Changing up how host (in)equality is checked
Fixes #13397
9 years ago
Toshio Kuratomi f8911adbbc 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
Toshio Kuratomi b9fbfaf64e Also some unicode tests for return_values() 9 years ago
Toshio Kuratomi 2c5c7b54f6 Add some test data that has unicode values 9 years ago
Toshio Kuratomi 65f4cbf487 Fix template test results on python2.6 9 years ago
Brian Coca d9218ce33f 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 f96730003b Also make sure remote_user is defaulted correctly for delegated hosts
Fixes #13323
9 years ago
Chris Church 126249d69a Add assertions for ansible_date_time in setup result. 9 years ago
Guido Günther 1ab60564ae 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
Brano Zarnovican af2e94e3c7 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
Brano Zarnovican 5378a6003a test_svn fix: remove hardcoded "~/ansible_testing/svn" path 9 years ago
Chris Church 9a8e95bff3 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
James Cammarata 91500f8f5f Fix include param precedence in variable manager 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