Commit Graph

1698 Commits (35938b907dfcd1106ca40b794f0db446bdb8cf09)

Author SHA1 Message Date
Toshio Kuratomi 9d82a3aa0c Fix the uri testserver to run on python3
(cherry picked from commit 589e71dbc5)
9 years ago
Matt Davis 4d5368e93b reenable win_async loop test
(cherry picked from commit 9a78273665)
9 years ago
stephane f5240d2953 Set Suse family for openSUSE Tumbleweed & Leap
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.

(cherry picked from commit 77868a4104)
9 years ago
Toshio Kuratomi 8dbc564fc6 Enable the git test on py3
(cherry picked from commit 2ac12432ef)
9 years ago
Ssawa 90d3824678 Handle 'smart' scp_if_ssh option for fetch (#18125)
(cherry picked from commit 8e47b9bc70)
9 years ago
Michael Scherer 5bd6a9b76c Enable filters test for python 3
(cherry picked from commit 2804e64ed5)
9 years ago
Toshio Kuratomi 3ee4effb7a pip tests now pass on python3. Enable them.
(cherry picked from commit 67ac375188)
9 years ago
Michael Scherer b6e51d670a Enable test for lookups on python 3
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.

(cherry picked from commit 578da9a615)
9 years ago
Toshio Kuratomi f15ec38788 Thanks to mscherer, these tests are now passing
(cherry picked from commit fd14048d46)
9 years ago
Michael Scherer ddbc01dfe5 Let authorized_keys be tested on python 3
(cherry picked from commit e93a8814a3)
9 years ago
John R Barker ba8e1f88a9 Port validate-modules to stable-2.2 (#18119) 9 years ago
Adrian Likins fa8f9e9ead Fix test_filters fail because of dict sort (#18105)
Fixes #17308
(cherry picked from commit f99ffb5620)
9 years ago
Toshio Kuratomi 257182e46a Pixelrebel amc pr2654 (#18089)
* 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

(cherry picked from commit b902b5d046)
9 years ago
Toshio Kuratomi 1e54f424ec epdb doesn't work on python3 so we need a different package to test pip
(cherry picked from commit 7e0bd5632d)
9 years ago
Toshio Kuratomi b373f67368 Fix ansible-pull on python3
On python3, we can't write bytes directly to sys.stdout.

(cherry picked from commit 60acfd1e87)
9 years ago
Brian Coca dde882c91f updated pbrun test to match expected output
(cherry picked from commit 04b86df815)
9 years ago
Toshio Kuratomi 261013354f unarchive tests now pass on python3
(cherry picked from commit 91c1fdec3d)
9 years ago
Toshio Kuratomi f59430aba8 Add a whitelist for checking for six. Use it for digital_ocean.py
(cherry picked from commit 6a61b6d431)
9 years ago
Toshio Kuratomi 08b646684b Make ini parsing slightly more robust
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

(cherry picked from commit 23305540b4)
9 years ago
Toshio Kuratomi b878c47d5e Fix for run_command tests now that it returns native strings
(cherry picked from commit 08a58ae025)
9 years ago
Matt Clay ae52943719 Update default branch for generate-tests. 9 years ago
Matt Clay 52173e7707 Update CI config for stable-2.2 branch. (#17880) 9 years ago
Toshio Kuratomi 5bc3cb278c Remove unicode escape (#17866)
* 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
9 years ago
Matt Davis aa0ad073b8 bugfixes to JSON junk filter, added unit/integration tests to exercise (#17834) 9 years ago
Matt Clay 21857e8618 Disable privileged mode on Shippable. (#17844) 9 years ago
Brian Coca dfff608ceb dzdo prompt fix
fixed tests
dzdo has 2 paths now, with and w/o password
fixes #17838
9 years ago
jctanner fff161f2f6 Smart mode for sftp+scp (#17813)
If the sftp fails, roll over to scp by default. This saves users
from having to know about the scp_if_ssh method when sftp is broken
on the remote host.
9 years ago
Adrian Likins 1f03801fcc mv test_git to 'destructive' integration tests (#17526)
The test_git role removes ~/.ssh/known_hosts currently
and that is destructive.
9 years ago
Toshio Kuratomi 4452ee86bd Turn mount test back on (#17797)
* Turn mount test back on

* Mount tests need PRIVILEGED so turn that back on

Revert "Revert "Set PRIVILEGED=true for non_destructive tests. (#17733)" (#17738)"

This reverts commit dc0fb1c212.

* Add a needs_privileged tag so that we can skip mount tests on centos6

Some containers timeout on shippable tests when run with privileged.
Unfortunately, some tests require that in order to run.  Tagging those
allows us to skip those tests on the platforms that timeout when we get
ready to run the integration test in shippable.

* Centos6 times out with PRIVILEGED set so remove that (will disable the mount tests on centos6)

* Remove false start
9 years ago
Toshio Kuratomi efa78b4ff4 The mode that we fake from stat is checked more closely under python3.5 on El Capitan (#17794)
Python2 seems to allow any integer.  Python3.5 on Linux seems to allow
a 32 bit unsigned int.  Python3.5 on El Capitan seems to limit it to
a smaller size...  perhaps a 16 bit int.
9 years ago
Matt Clay a265d2d77d Run test_template tests on OS X. (#17791) 9 years ago
Matt Clay 0dc3db9e75 Enable unarchive tests for OS X and FreeBSD. (#17789) 9 years ago
Adrian Likins bba0fb3a42 Add mnt pnts with single quote to test (16855) (#17771)
This adds some test data to test_facts.py that
includes mnt points that have a single quote in
the path.

Ala, https://github.com/ansible/ansible/issues/16855

The bug was already fixed via other changes, but this is
for regression testing.
9 years ago
Matt Clay 6d78397b8b Update get_url test to use httptester. (#17787) 9 years ago
Matt Clay d05df5fc61 Disable expect continue in ansible-core-ci. (#17737)
This will allow use of larger SSH keys.
9 years ago
Toshio Kuratomi 1f311f0739 Disable mount tests for now. Mount is buggy on too many platforms 9 years ago
Matt Clay 2e0bec293c Improve error handling for ansible-core-ci. (#17734) 9 years ago
Toshio Kuratomi 0bf92d2b5c Add tests for the mount module (#17718)
* Add tests for the mount module

* Switch from unmounted to absent...

the code for mounting always modifies fstab so we need to always modify
fstab to cleanup as well.

* Fix comments and copyright
9 years ago
Matt Clay cf4d436e07 Remove run_tests.sh and update docs. (#17719)
Removed the obsolete test/utils/run_tests.sh script in favor of
using the newer test/utils/shippable/integration.sh instead.
9 years ago
Matt Clay 50b0d011fe Update integration.sh to copy source by default. (#17717)
Also add more documentation to the script.
9 years ago
Matt Clay 40ffd8269d Add shellcheck to code-smell checks. (#17715) 9 years ago
Adrian Likins e11f7d2339 add a defaults for integration.sh (#17709)
* add a default test image (ansible/ansible:centos7)
* add a default test target (all)
9 years ago
Matt Clay ada2432165 Add keep on failure option to integration.sh. (#17711) 9 years ago
Tom Melendez 97a1b7ded1 Integration Playbook for Google Cloud DNS module. (#17698) 9 years ago
Christoph f9e49de2ef Add a test for int/float parameter type checking (#16741)
A parameter of type int should accept int and string, but not float.
A parameter of type float should accept float, int, and string.

Also reset the arguments in another test so that it runs cleanly.  This
agrees with what all the other tests are doing.
9 years ago
Toshio Kuratomi 8aa8e07d13 Remove _load_hosts() from Play initialization as it's no longer needed and it breaks using extra_vars defining a list for hosts (#17699)
Thanks to @jimi-c for the solution

Fixes #16583
9 years ago
Matt Clay 3874e653c1 Remove tests for deprecated su and sudo. (#17697) 9 years ago
Tom Melendez 0e85f88f8e test_gce_mig integration test playbook (#17249)
Includes:
* Tests to create, delete, resize, recreate and configure an Autoscaler
* Tests for parameters only.  Use TEST_FLAGS="--tags 'param-check'" to execute only these tests.

Requires:
* An instance template to be configured in your project.
9 years ago
Matt Clay 39c5c558f8 Switch tests from sudo to become. (#17694) 9 years ago
Toshio Kuratomi 7889e1ffc1 Additional tests for check mode idempotence (#17679) 9 years ago