Toshio Kuratomi
00378515e2
* Add test for git with local modifications
...
(cherry picked from afca957396
)
From PR: Fix UnboundLocalError remote_head in git (#19057 )
2016-12-14 08:46:11 -08:00
Dag Wieers
268645c17a
Fix regression in search path behaviour
...
This PR fixes a few issues:
- Missing role parent directory for relative paths
- Fix integration tests (add missing stage)
- Redesign integration tests
- Incorrect order with tasks-lookups
- Duplicate paths are listed
- Repetitive tasks/tasks or files/files were possible
==== using copy with test.txt
Before:
```
491 1481281038.29393: search_path:
/home/dag/home-made/ansible.testing/roles/test134/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/tasks/test.txt
/home/dag/home-made/ansible.testing/files/test.txt
/home/dag/home-made/ansible.testing/test.txt
```
After:
```
32505 1481280963.22418: search_path:
/home/dag/home-made/ansible.testing/roles/test134/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/test.txt
/home/dag/home-made/ansible.testing/files/test.txt
/home/dag/home-made/ansible.testing/test.txt
```
==== Using copy with files/test.txt
Before:
```
31523 1481280499.63052: search_path:
/home/dag/home-made/ansible.testing/roles/test134/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/tasks/files/test.txt
/home/dag/home-made/ansible.testing/files/files/test.txt
/home/dag/home-made/ansible.testing/files/test.txt
```
After:
```
31110 1481280299.38778: search_path:
/home/dag/home-made/ansible.testing/roles/test134/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
/home/dag/home-made/ansible.testing/files/test.txt
```
==== Using template with files/test.txt.j2
Before:
```
30074 1481280064.15191: search_path:
/home/dag/home-made/ansible.testing/roles/test134/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/tasks/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/tasks/tasks/files/test.txt.j2
/home/dag/home-made/ansible.testing/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/files/test.txt.j2
```
After:
```
29201 1481279823.52752: search_path:
/home/dag/home-made/ansible.testing/roles/test134/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/tasks/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt.j2
/home/dag/home-made/ansible.testing/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/files/test.txt.j2
```
This fixes #19048
(cherry picked from commit 7c71c678fa
)
2016-12-14 11:18:31 -05:00
Toshio Kuratomi
cbf1f23e7e
Fixes for uri under python3 and local (non-httptester) testing
...
(cherry picked from c6b42028c4
)
2016-12-13 15:55:06 -08:00
Matt Clay
97444c5e59
Corrected placement templates for test_lookups.
2016-11-29 15:16:38 -08:00
Virgil Dupras
4854705267
Fix regression in jinja2 include search path ( #18617 )
...
* Fix regression in jinja2 include search path
Since commit 3c39bb5
, the 'ansible_search_path' variable is used to set
jinja2's search path for {% include %} directives. However, this path is
the the proper one because our templates live in 'templates' subdirs in
our search path.
This is a regression because previously, our include search path would
include the dirname of the currently interpreted file, which worked most
of the time.
fixes #18526
* Fix template lookup search path
Improve fix in commit c96c853
so that the search path contain both
template-suffixed paths as well as original paths.
ref PR #18617
* Add integration test for template lookups
Tests regression at #18526
This test fails on current devel branch and succeeds on PR #18617
(cherry picked from commit bf48383610
)
2016-11-29 16:23:23 -05:00
Matt Davis
d637559825
manual backport of win_async test changes from devel
2016-11-18 11:47:08 -08:00
James Cammarata
c23d99b786
Alternately track listening handlers by uuid if no name is set
...
Fixes #17846
(cherry picked from commit 4f06a86161
)
2016-11-13 15:28:38 -06:00
James Cammarata
6bd4bec9de
Fixing incorrect use of version_compare in docker integration test
2016-11-11 11:45:37 -06:00
Toshio Kuratomi
d559355b29
Add tests for dnf modelled after the yum tests ( #18226 )
...
(cherry picked from commit 02859a3e32
)
2016-10-31 10:57:11 -07:00
Matt Davis
79e43925b1
add large interleaved stdout/stderr integration tests for win_shell/win_command
...
(cherry picked from commit c1b7d2e560
)
2016-10-25 17:38:25 -07:00
Toshio Kuratomi
9d82a3aa0c
Fix the uri testserver to run on python3
...
(cherry picked from commit 589e71dbc5
)
2016-10-24 06:51:10 -07:00
Matt Davis
4d5368e93b
reenable win_async loop test
...
(cherry picked from commit 9a78273665
)
2016-10-24 00:03:42 -07:00
Adrian Likins
fa8f9e9ead
Fix test_filters fail because of dict sort ( #18105 )
...
Fixes #17308
(cherry picked from commit f99ffb5620
)
2016-10-19 16:11:37 -04:00
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
)
2016-10-19 08:42:17 -07:00
Toshio Kuratomi
1e54f424ec
epdb doesn't work on python3 so we need a different package to test pip
...
(cherry picked from commit 7e0bd5632d
)
2016-10-17 18:45:38 -07:00
Matt Davis
aa0ad073b8
bugfixes to JSON junk filter, added unit/integration tests to exercise ( #17834 )
2016-10-02 08:03:42 -07:00
Matt Clay
21857e8618
Disable privileged mode on Shippable. ( #17844 )
2016-09-30 22:06:28 -07:00
Adrian Likins
1f03801fcc
mv test_git to 'destructive' integration tests ( #17526 )
...
The test_git role removes ~/.ssh/known_hosts currently
and that is destructive.
2016-09-29 13:46:34 -04:00
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
2016-09-28 10:52:33 -07:00
Matt Clay
6d78397b8b
Update get_url test to use httptester. ( #17787 )
2016-09-27 18:11:09 -07:00
Toshio Kuratomi
1f311f0739
Disable mount tests for now. Mount is buggy on too many platforms
2016-09-23 16:35:34 -07:00
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
2016-09-23 12:38:31 -07:00
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.
2016-09-22 23:51:53 -07:00
Tom Melendez
97a1b7ded1
Integration Playbook for Google Cloud DNS module. ( #17698 )
2016-09-22 14:40:57 -04:00
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
2016-09-21 17:25:54 -07:00
Matt Clay
3874e653c1
Remove tests for deprecated su and sudo. ( #17697 )
2016-09-21 15:12:26 -07:00
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.
2016-09-21 17:48:09 -04:00
Matt Clay
39c5c558f8
Switch tests from sudo to become. ( #17694 )
2016-09-21 13:58:35 -07:00
Toshio Kuratomi
7889e1ffc1
Additional tests for check mode idempotence ( #17679 )
2016-09-20 17:56:07 -07:00
Matt Clay
e0ad02c6dd
Remove test for deprecated first_available_file. ( #17674 )
2016-09-20 13:45:57 -07:00
Rob Cutmore
2716fe4362
Add test for checking pip package in check mode ( #17360 )
2016-09-20 07:07:27 -07:00
Steve Gargan
a06da86d52
update consul tests to reflect fixes to the core and session modules ( #17451 )
2016-09-16 14:58:17 -07:00
Tom Melendez
91a30e59e4
Changes to enable make gce to run. Added sys import so libcloud error is displayed; renamed credentials keys in template file so they work properly with gce_credentials.py. ( #16607 )
2016-09-16 10:02:18 -04:00
Matt Clay
355b29573c
Use default on undefined vars in tests. ( #17601 )
2016-09-15 16:07:55 -07:00
Matt Clay
16baef1f72
Do not use bare vars in integration tests. ( #17599 )
2016-09-15 17:41:54 -04:00
Matt Davis
f497d771c8
win_shell/win_command changes + tests ( #17557 )
2016-09-15 11:25:56 -07:00
Matt Clay
7b3cbafbe9
Add python 3 awareness to apt module tests. ( #17574 )
...
Also remove unnecessary dependency from ubuntu1604py3 Dockerfile.
2016-09-14 15:38:27 -07:00
René Moser
28feba2fb3
jenkins_job: extend integration tests ( #17558 )
2016-09-14 10:44:01 +02:00
Michael Scherer
e9ffe2062f
Add test for the pause in loop feature ( #17336 )
...
See https://github.com/ansible/ansible/pull/17289
2016-09-13 11:12:58 -07:00
René Moser
6a3e948a7c
jenkins_job: add integration tests ( #17499 )
2016-09-13 16:03:58 +02:00
Toshio Kuratomi
bf29961947
Fixes to the controller text model ( #17527 )
...
* Fixes to the controller text model
* Change command line args to text type
* Make display replace undecodable bytes with replacement chars. This
is only a problem on pyhton3 where surrogates can enter into the msg
but sys.stdout doesn't know how to handle them.
* Remove a deprecated playbook syntax in unicode.yml
* Fix up run_cmd to change its parameters to byte string at appropriate times.
2016-09-12 12:57:41 -07:00
nitzmahone
69880f1640
add win_user regression tests
...
Ensure https://github.com/ansible/ansible-modules-core/issues/4369 doesn't occur again, also adds tests for password set when expired.
2016-09-11 20:45:00 -07:00
Matt Clay
784810a84c
Add python 3 support to test_apt_repository. ( #17472 )
2016-09-08 18:05:44 -07:00
nitzmahone
7a9395b5e0
disable windows loop async test
...
Fails pretty regularly on Shippable/AWS, never locally- always seems to be on the last async task in the loop.
2016-09-06 22:13:31 -07:00
Matt Davis
f239e1e61f
windows async changes and tests ( #17400 )
2016-09-06 17:38:12 -07:00
jhawkesworth
9fe4308670
add very basic tests of win_package, based on existing win_msi tests. ( #17383 )
...
* add very basic tests of win_package, based on existing win_msi tests.
2016-09-06 07:09:32 +01:00
Toshio Kuratomi
d6ebf9bdc6
Symink integration tests for fetch and stat
2016-09-05 20:12:37 -07:00
Michael Scherer
918d1e038e
Do not hardcode python executable in test ( #17380 )
...
Based on https://github.com/ansible/ansible/pull/17376
2016-09-03 10:21:22 -07:00
Matt Clay
4ae59b2743
Use ansible_python for interpreter in test_uri. ( #17376 )
2016-09-03 10:19:52 -07:00
Matt Clay
7cd988f60c
Enable more integration tests for python 3. ( #17375 )
...
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.
2016-09-02 23:14:44 -07:00