summaryrefslogtreecommitdiff
path: root/test/integration
Commit message (Collapse)AuthorAgeFilesLines
...
* Add python 3 support to test_apt_repository. (#17472)Matt Clay2016-09-081-4/+17
|
* disable windows loop async testnitzmahone2016-09-061-25/+27
| | | | Fails pretty regularly on Shippable/AWS, never locally- always seems to be on the last async task in the loop.
* windows async changes and tests (#17400)Matt Davis2016-09-063-0/+245
|
* add very basic tests of win_package, based on existing win_msi tests. (#17383)jhawkesworth2016-09-063-0/+88
| | | * add very basic tests of win_package, based on existing win_msi tests.
* Symink integration tests for fetch and statToshio Kuratomi2016-09-052-31/+158
|
* Do not hardcode python executable in test (#17380)Michael Scherer2016-09-035-6/+6
| | | Based on https://github.com/ansible/ansible/pull/17376
* Use ansible_python for interpreter in test_uri. (#17376)Matt Clay2016-09-031-5/+1
|
* Enable more integration tests for python 3. (#17375)Matt Clay2016-09-021-1/+1
| | | | | The test_async test target was updated to accommodate changes in output buffering behavior in python 3. This change in behavior may need to be addressed in the future.
* Disable yum test on python 3 (#17327)Michael Scherer2016-09-011-1/+1
| | | Since yum is not gonna be running on python3 ever, we have to filter it.
* Add mention of integration tests in Docker containers (#16661)Gennady Trafimenkov2016-09-011-0/+21
| | | | | It is quite convinient and easy to run integration tests in Docker containers. I hope it can motivate more people to write integration tests.
* Add test for specific privlege grants on database.table (#17328)Jonathan Mainguy2016-08-311-2/+17
| | | For the mysql_user module
* add unit test for mysql_user (#17335)Jonathan Mainguy2016-08-311-0/+18
| | | | this removes all blank users, and then does so again to ensure changed the first time and ok the second time
* Running the test with a locale other than English make that test failMichael Scherer2016-08-311-0/+2
| | | | | While tests are supposed to be run in docker, people might still want to use them on their own boxes.
* Include vars updated to work with directories (#17207)Allen Sanabria2016-08-307-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New features for include_vars include_vars.py now allows you to include an entire directory and its nested directories of variable files. Added Features.. * Ignore by default *.md, *.py, and *.pyc * Ignore any list of files. * Only include files nested by depth (default=unlimited) * Match only files matching (valid regex) * Sort files alphabetically and load in that order. * Sort directories alphabetically and load in that order. ``` - include_vars: 'vars/all.yml' - name: include all.yml include_vars: file: 'vars/all.yml' - name: include all yml files in vars/all and all nested directories include_vars: dir: 'vars/all' - name: include all yml files in vars/all and all nested directories and save the output in test. include_vars: dir: 'vars/all' name: test - name: include all yml files in vars/services include_vars: dir: 'vars/services' depth: 1 - name: include only bastion.yml files include_vars: dir: 'vars' files_matching: 'bastion.yml' - name: include only all yml files exception bastion.yml include_vars: dir: 'vars' ignore_files: 'bastion.yml' ``` * Added whitelist for file extensisions (yaml, yml, json) * Removed unit tests in favor of integration tests
* exo_dns: new module utils and integration tests for exoscale DNS (#17230)René Moser2016-08-304-0/+413
|
* Ignore difference on whitespace (#17302)Michael Scherer2016-08-302-2/+2
| | | | | | While trying to fix the test suite on python3, I noticed this test fail due to to_json adding more whitespace in python3 than in python2. So -w should ignored those differences.
* Enable integration tests on python3 that are already working (#17212)Toshio Kuratomi2016-08-241-1/+1
|
* xrange and izip_longest aren't available in vanilla python3 (#17226)Toshio Kuratomi2016-08-241-1/+1
| | | | | Fixes for these are either rewriting to get rid of the need for the functions or using six.moves to get equivalent functions for both python2 and python3
* new filter human_bytes: convert a string (ex: 1Mo, 1K) into bytes (#12074)Yannig2016-08-241-0/+27
| | | | | | | * Rework human_readable and human_to_bytes. New filter human_to_bytes. * Fix for python 3.
* Implement vault encrypted yaml variables. (#16274)Adrian Likins2016-08-237-11/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make !vault-encrypted create a AnsibleVaultUnicode yaml object that can be used as a regular string object. This allows a playbook to include a encrypted vault blob for the value of a yaml variable. A 'secret_password' variable can have it's value encrypted instead of having to vault encrypt an entire vars file. Add __ENCRYPTED__ to the vault yaml types so template.Template can treat it similar to __UNSAFE__ flags. vault.VaultLib api changes: - Split VaultLib.encrypt to encrypt and encrypt_bytestring - VaultLib.encrypt() previously accepted the plaintext data as either a byte string or a unicode string. Doing the right thing based on the input type would fail on py3 if given a arg of type 'bytes'. To simplify the API, vaultlib.encrypt() now assumes input plaintext is a py2 unicode or py3 str. It will encode to utf-8 then call the new encrypt_bytestring(). The new methods are less ambiguous. - moved VaultLib.is_encrypted logic to vault module scope and split to is_encrypted() and is_encrypted_file(). Add a test/unit/mock/yaml_helper.py It has some helpers for testing parsing/yaml Integration tests added as roles test_vault and test_vault_embedded
* Add support for OS X CI on Shippable. (#17160)Matt Clay2016-08-231-0/+1
|
* Make tests more cross platform. (#17154)Matt Clay2016-08-193-7/+19
|
* actions/unarchive: fix unarchive from remote url (#17126)Dusty Mabe2016-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | * actions/unarchive: fix unarchive from remote url Currently unarchive from remote url does not work because the core unarchive module was updated to support 'remote_src' [1], but the unarchive action plugin was not updated for this. This causes failures because the action plugin assumes it needs to copy a file to the remote server, but in the case of downloading a file from a remote url a local file does not exist, so an error occurs when the file is not found. [1] https://github.com/ansible/ansible-modules-core/commit/467516e * test_unarchive: fix test with wrong remote_src use The non-ascii filenames test had improperly set remote_src=yes even though it was actually copying the file from the local machine (i.e. the file did not already exist remotely). This test was passing until the remote_src behavior of unarchive was fixed in 276550f.
* raw now returns changed: true (#17112)Matt Davis2016-08-163-7/+13
| | | | | for consistency w/ shell/command/script "non-idempotent" modules. Updated tests, changelog.
* Cache tasks by uuid in PlayIterator for O(1) lookupsJames Cammarata2016-08-101-2/+2
| | | | | | Rather than repeatedly searching for tasks by uuid via iterating over all known blocks, cache the tasks when they are added to the PlayIterator so the lookup becomes a simple key check in a dict.
* Remove FreeBSD interpreter test hacks. (#17007)Matt Clay2016-08-081-4/+4
| | | | * Add TEST_FLAGS to no_log target.
* Add generic data structures querying (#13684)Filipe Niero Felisbino2016-08-082-6/+24
| | | | | | | | | | | | | | | | | | | | | | * Query lookup plugin * Add license and docstrings * Add python3-ish imports * Change query plugin type from lookup to filter * Switch from dq to jsonpath_rw * Add integration test for query filter * Rename query filter to json_query * Add jsonpath-rw * Rename query filter to json_query * Switch query implementation from jsonpath-rw to jmespath
* Enable more FreeBSD integration tests. (#16991)Matt Clay2016-08-081-4/+4
|
* fix for unspecified retries on until + test (#16963)Matt Davis2016-08-042-0/+33
| | | fixes #16907
* task_result _check_key should handle empty results (#16766)Will Thames2016-08-041-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | When a task result has an empty results list, the list should be ignored when determining the results of `_check_key`. Here the empty list is treated the same as a non-existent list. This fixes a bug that manifests itself with squashed items - namely the task result contains the correct value for the key, but an empty results list. The empty results list was treated as zero failures when deciding which handler to call - so the task show as a success in the output, but is deemed to have failed when deciding whether to continue. This also demonstrates a mismatch between task result processing and play iteration. A test is also added for this case, but it would not have caught the bug - because the bug is really in the display, and not the success/failure of the task (visually the test is more accurate). Fixes ansible/ansible-modules-core#4214
* Run more integration tests on FreeBSD. (#16923)Matt Clay2016-08-021-5/+5
|
* Increase async time limit on tests to 10 seconds. (#16921)Matt Clay2016-08-022-3/+3
|
* Add binary module tests to Windows CI. (#16914)Matt Clay2016-08-025-9/+26
|
* Add FreeBSD to Shippable CI. (#16883)Matt Clay2016-08-013-0/+15
|
* Download files from S3 to improve reliability. (#16891)Matt Clay2016-07-313-12/+25
| | | | | | Binary module tests now download pre-compiled binaries from S3 instead of downloading go and compiling the modules. Files downloaded form SourceForge are now downloaded from S3.
* Testing that service not enabled during check run (#16739)Gennady Trafimenkov2016-07-295-22/+42
| | | | | * Enabled more tests in test_service on systems with systemd. * Fix inconsistency in cleaning up test service. The conditions for service setup and service cleanup were different. * Add check mode run for service enable.
* Add Windows integration tests to Shippable. (#16803)Matt Clay2016-07-287-49/+57
| | | Enable Windows integration tests on Shippable.
* Enable color output from integration tests in Docker containers (#16660)Gennady Trafimenkov2016-07-251-3/+5
| | | | | | | | Enable color output from integration tests in Docker containers: * In run_tests.sh when output is attached to a terminal. * In shippable/integration.sh using force mode (can be disabled). Also fix blocks tests to work with or without color output
* indent callback output if using 3verbosity or higher (#16231)Matt Martz2016-07-231-1/+1
|
* add check_mode option for tasks (#16056)Robin Roth2016-07-224-10/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | * add check_mode option for tasks includes example testcases for the template module * extend check_mode option * replace always_run, see also proposal rename_always_run * rename always_run where used and add deprecation warning * add some documentation * have check_mode overwrite always_run * use unique template name to prevent conflicts test_check_mode was right before, but failed due to using the same filename as other roles * still mention always_run in the docs * set deprecation of always_run to version 2.4 * fix rst style * expand documentation on per-task check mode
* fix setup test for renamed windows factnitzmahone2016-07-141-1/+1
|
* Updating tests for new module feature for remote_src in unarchiveJames Cammarata2016-07-141-17/+17
| | | | Fixes #10218
* Add test tags for shell and command modules.Matt Clay2016-07-081-1/+1
|
* fix win_msi tests by setting wait: true on all win_msi tasks.=2016-07-081-0/+4
| | | | | I suspect this problem was masked previously as older versions of pywinrm where significantly slower, allowing more time for the windows installer service to complete.
* Add tags for modules without dedicated test roles.Matt Clay2016-07-071-2/+2
|
* Updating integration tests for async testingJames Cammarata2016-07-071-2/+2
|
* Merge pull request #16555 from matsu-chara/fix-error-msg-default-to-defaultsMatt Davis2016-07-072-2/+2
|\ | | | | fix default/main.yml to defaults/main.yml
| * fix default/main.yml to defaults/main.ymlmatsu-chara2016-07-022-2/+2
| |
* | Add more tags to test_async role.Matt Clay2016-07-071-1/+1
| |
* | Fix git shallow update (#16224)Robin Roth2016-07-051-5/+51
| | | | | | | | | | | | | | | | | | | | * add git shallow fetch test covers https://github.com/ansible/ansible-modules-core/issues/3782 updating a repo with depth=1 fails silently if version==HEAD * raise git version support supporting depth to 1.9.1