summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Migrate Network Tests into ansible/ansible (#18233)John R Barker2016-10-28489-2/+13144
| | | | | | | | | | | | | | | | | | | | | | | | * Docs Networking tests * Copy networking tests from test-network-modules * Networking transport settings - group_vars * Network playbooks * Debug should be off by default * Update nxos.yaml * Remove items from top level * Use dependencies, not pre-tasks * Remove trailing blank lines * Remove backup files * newlines
* Change `v2_playbook_on_start` logic to positively detect legacy pluginsSteve Kuznetsov2016-10-281-0/+141
| | | | | | | | | | | | | | | | | | | | | | | | In order to support legacy plugins, the following two method signatures are allowed for `CallbackBase.v2_playbook_on_start`: def v2_playbook_on_start(self): def v2_playbook_on_start(self, playbook): Previously, the logic to handle this divergence checked to see if the callback plugin being called supported an argument named `playbook` in its `v2_playbook_on_start` method. This was fragile in a few ways: - if a plugin author did not use the literal `playbook` to name their method argument, their plugin would not be called correctly - if a plugin author wrapped their `v2_playbook_on_start` method and by doing so changed the argspec to no longer expose an argument with that literal name, their plugin would not be called correctly In order to continue to support both types of callback for backwards compatibility while making the call more robust for plugin authors, the logic can be reversed in order to have a positive check for the old method signature instead of a positive check for the new one. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
* Set ansible_os_family correctly under KDE neonMatt Robinson2016-10-271-0/+19
| | | | | | As neon is derived from Ubuntu, ansible_os_family should have the value "Debian" instead of "Neon". Add a test case for KDE neon and set os_family correctly for it.
* Fix fact gathering intg test asserts (#18168)Adrian Likins2016-10-261-37/+36
| | | | | | | | | | | | | | | | | | If the facts returned by setup included strings that had double quotes in them, the asserts in test_gathering_facts.yml would fail with errors like: "The conditional check '\"[{u'mounts': {u'options': u'rw,context=\"system_u:\"'}}]\" != \"UNDEF_HW\"' failed. The error was: template error while templating string: expected token 'end of statement block', got 'system_u'. String: {% if \"[{u'mounts': {u'options': u'rw,context=\"system_u:\"'}}]\" != \"UNDEF_HW\" %} True {% else %} False {% endif %}" For one example, if mount facts returned an 'options' field that included double quoated selinux context ids, the test would fail. Fix is removing the double quoting in the assert 'that:' lines, and removing the unneeded double curly brackets.
* add large interleaved stdout/stderr integration tests for win_shell/win_commandMatt Davis2016-10-252-12/+18
|
* Fix the uri testserver to run on python3Toshio Kuratomi2016-10-241-5/+15
|
* reenable win_async loop testMatt Davis2016-10-241-27/+25
|
* Remove callback.CallbackBase._copy_result_excludeAdrian Likins2016-10-231-56/+5
| | | | | | | | Nothing seems to use this now. Was added originally added in2d11cfab92f9d26448461b4bc81f466d1910a15e but the code that used it was removed in e02b98274b60cdbc12ef4a4c74ae0f74207384e8
* test name TestPlayIterator->TestPlaybookExecutorAdrian Likins2016-10-231-3/+2
|
* Set Suse family for openSUSE Tumbleweed & Leapstephane2016-10-231-0/+18
| | | | | | | | | | | On openSUSE Tumbleweed, lsb-release -a currently reports the distributor ID as "openSUSE Tumbleweed". On openSUSE Leap, the distributor ID is "SUSE LINUX". Add them to the OS_FAMILY dict as Suse family systems. Also add an entry to TESTSETS in test_distribution_version.py for openSUSE Tumbleweed.
* tests: check that handlers are able to use 'include'Pierre-Louis Bonicoli2016-10-215-0/+27
|
* Enable the git test on py3Toshio Kuratomi2016-10-211-1/+0
|
* Handle 'smart' scp_if_ssh option for fetch (#18125)Ssawa2016-10-211-4/+31
|
* Enable filters test for python 3Michael Scherer2016-10-201-1/+0
|
* Fix uninitialized variable in deserialize method (#18037)Thilo Uttendorfer2016-10-201-0/+11
| | | | The bug was introduced with commit 06d4f4ad0e8f62c6b02b01833b94a0e44be008d0. Added a simple test.
* pip tests now pass on python3. Enable them.Toshio Kuratomi2016-10-201-1/+0
|
* Enable test for lookups on python 3Michael Scherer2016-10-201-1/+0
| | | | | | | | | Since passlib algo sometime takes a bytes, and sometime not, depending on a internal variable, we have to convert bnased on it, or it fail with "TypeError: salt must be bytes, not str" (or unicode instead of bytes) However, that's not great to use internal structure for that.
* Let authorized_keys be tested on python 3Michael Scherer2016-10-201-1/+0
|
* Fix test_filters fail because of dict sort (#18105)Adrian Likins2016-10-192-2/+2
| | | Fixes #17308
* Pixelrebel amc pr2654 (#18089)Toshio Kuratomi2016-10-191-0/+59
| | | | | | | | | | | | * Add tag verification test (ansible-modules-core PR 2654) * Fix typo * Use smaller repo for testing, add dependency control * Test is gpg exists before running git signing tasks * Correct the test conditionals so that gpg1 is tested
* Make the test run when used on a local system (#18050)Michael Scherer2016-10-171-5/+5
| | | ANSIBLE_ROLES_PATH is relative to the config directory, if found. Use an absolute path instead.
* epdb doesn't work on python3 so we need a different package to test pipToshio Kuratomi2016-10-171-1/+1
|
* Fix ansible-pull on python3Toshio Kuratomi2016-10-171-3/+0
| | | | On python3, we can't write bytes directly to sys.stdout.
* Thanks to mscherer, these tests are now passingToshio Kuratomi2016-10-171-4/+0
|
* Fix call of wrong super classThilo Uttendorfer2016-10-171-0/+32
| | | | Added a basic test
* updated pbrun test to match expected outputBrian Coca2016-10-171-1/+1
|
* Location of Network Tests (#18048)John R Barker2016-10-161-0/+2
|
* unarchive tests now pass on python3Toshio Kuratomi2016-10-151-1/+0
|
* Install dependencies for validate-modules (#18028)John R Barker2016-10-141-0/+2
| | | | | Currently (pre-repomerge) we aren't running sanity.sh from ansible/ansible, after the merge we will. Therefore I've added the requirements here, rather than in ansible-modules-*/test/utils/shippable
* Skip test_aws.py if boto3/botocore are missing (#17814)Adrian Likins2016-10-131-3/+13
|
* Fix role path for generate-tests.Matt Clay2016-10-131-0/+3
|
* Restore README.rst, update and fix formatting. (#18012)Matt Clay2016-10-132-62/+70
| | | | | | * Revert "Update validate-modules README and convert to MD. (#18008)" * This reverts commit 4916fe9962044eb315e8cc3b3a04423a346ddf82. * Fix formatting of README.rst.
* Update validate-modules README and convert to MD. (#18008)Matt Clay2016-10-132-72/+62
|
* Migrate Windows CI roles to test targets. (#18005)Matt Clay2016-10-1381-26/+26
|
* Merge pull request #18001 from gundalow/validate-modulesMatt Clay2016-10-136-0/+997
|\ | | | | Take ownership of ansible-validate-modules
| * README.rst to reference new nameJohn Barker2016-10-131-12/+7
| |
| * Port sivel/ansible-validate-modules into AnsibleJohn Barker2016-10-136-0/+1002
| |
* | Migrate Linux CI roles to test targets. (#17997)Matt Clay2016-10-13263-53/+53
|/
* Split out var_blending test into targets dir. (#17996)Matt Clay2016-10-1216-18/+35
|
* Clean up integration tests. (#17991)Matt Clay2016-10-127-179/+182
|
* Split integration tests out from Makefile. (#17976)Matt Clay2016-10-12169-423/+615
|
* Fix a test failure when run on a system with python-future installed.Toshio Kuratomi2016-10-071-5/+1
|
* Add a whitelist for checking for six. Use it for digital_ocean.pyToshio Kuratomi2016-10-061-1/+6
|
* Refactor parsing of CLI args so that we can modify them in the base classToshio Kuratomi2016-10-063-29/+43
| | | | | | | | | | | | | | | | Implement tag and skip_tag handling in the CLI() class. Change tag and skip_tag command line options to be accepted multiple times on the CLI and add them together rather than overwrite. * Make it configurable whether to merge or overwrite multiple --tags arguments * Make the base CLI class an abstractbaseclass so we can implement functionality in parse() but still make subclasses implement it. * Deprecate the overwrite feature of --tags with a message that the default will change in 2.4 and go away in 2.5. * Add documentation for merge_multiple_cli_flags * Fix galaxy search so its tags argument does not conflict with generic tags * Unit tests and more integration tests for tags
* Make ini parsing slightly more robustToshio Kuratomi2016-10-041-8/+13
| | | | | | | | Prior to this commit, the ini parser would fail if the inventory was not 100% utf-8. This commit makes this slightly more robust by omitting full line comments from that requirement. Fixes #17593
* Fix for run_command tests now that it returns native stringsToshio Kuratomi2016-10-032-4/+16
|
* Remove unicode escape (#17866)Toshio Kuratomi2016-10-021-1/+0
| | | | | | | | | | * Remove unicode-escape which is not present on python3 Alternative fix for #17305 * Enable the assemble test on python3 * Fix other problems with assemble on python3
* bugfixes to JSON junk filter, added unit/integration tests to exercise (#17834)Matt Davis2016-10-025-39/+192
|
* Disable privileged mode on Shippable. (#17844)Matt Clay2016-09-302-5/+11
|
* dzdo prompt fixBrian Coca2016-09-301-0/+6
| | | | | | fixed tests dzdo has 2 paths now, with and w/o password fixes #17838