James Cammarata
f4bd3be71f
Adding block integration tests
2016-02-03 15:00:37 -05:00
Robin Roth
ed059ffca9
add integration test for ansible-pull
...
* this test includes the behavior described in #13688 and #13681
* it runs a minimal playbook and checks for correct use of inventory and limit
2016-02-02 12:18:04 +01:00
Sergii Korochkin
1325c21ca0
Adding support for scm-based role source urls (incl. integration test to cover it)
2016-01-21 14:00:29 +02:00
James Cammarata
12c0bb9414
Use --source instead of -e for awk in integration Makefile
2015-12-17 20:53:11 -05:00
James Cammarata
549bdb2503
Merge pull request #12804 from chrismeyersfsu/fix-test_non_destructive_makefile
...
allow env variable override of creds file
2015-10-18 10:18:22 -04:00
Chris Meyers
1b2d17b844
allow env variable override of creds file
...
This is important because there is an integration test, test_git, that
require an ssh key to clone a privileged github repo.
2015-10-17 12:45:29 -04:00
Marius Gedminas
04a7ef416e
Python 3: print function in a shell oneliner in Makefile
...
Fixes
File "<string>", line 1
import string,random; print 'ansible-testing-' + ''.join(random.choice(string.ascii_letters + string.digits) for _ in xrange(8));
^
SyntaxError: invalid syntax
when running integration tests with
. hacking/env-setup
. .tox/py35/bin/activate
make -C test/integration test_var_precedence
2015-10-16 17:41:01 +03:00
Brian Coca
f73329401b
galaxy updates
...
better error reporting on fetching errors
use scm if it exists over src
unified functions in requirements
simplified logic
added verbose to tests
cleanup code refs, unused options and dead code
moved get_opt to base class
fixes #11920
fixes #12612
fixes #10454
2015-10-05 11:43:08 -04:00
Brian Coca
5680a9fa32
removed redundant tests, adjusted makefile expected count
2015-10-02 22:37:19 -04:00
Brian Coca
e2ae3215f6
corrected no_log for items and skipped tasks
...
corrected output from default callback
added new tests for no_log loops
updated makefile test to check for both positive and negative occurrences of no_log
2015-10-02 14:35:33 -04:00
Brian Coca
5c39538a73
added no_log tests as per #12214
2015-10-02 09:11:41 -04:00
Brian Coca
01708cc824
added test for environment directive
2015-08-21 00:37:17 -04:00
Brian Coca
464a436f8f
fixed testplay host, included lookup path tests in all, added stage for easier debugging
2015-08-12 19:26:52 -04:00
Brian Coca
60803a1d3c
added lookup paths testing
2015-08-12 19:26:52 -04:00
James Cammarata
71867f9480
Remove vars attribute from base
...
Fixes #11779
2015-07-29 09:45:30 -04:00
James Cammarata
46f74a0d69
Re-adding --start-at-task test to unicode integration test
2015-07-21 12:36:41 -04:00
Pierre-Louis Bonicoli
aa23ea8462
tests: checks that handlers work with loops
2015-07-20 14:41:03 +02:00
Brian Coca
22165dd046
fixed bad parsing tests
2015-07-14 12:06:31 -04:00
Brian Coca
44aef347cb
enabled good parsing tests in parsing target
...
fixed test_good_parsing role
added raw duplicate parameters to test_good_parsing
2015-07-14 08:05:57 -04:00
Brian Coca
9c5a6d7b5a
fixed all references to old plugins/inventory to point at contrib/inventory
2015-07-10 13:00:12 -04:00
James Cammarata
f5baad4fb2
Removing unicode --start-at-task test for now as we haven't added that back into devel
2015-07-08 12:23:42 -04:00
James Cammarata
fe41f109a9
Merge branch 'v2_final' into devel_switch_v2
2015-06-01 16:42:59 -05:00
James Cammarata
4bc7703db3
Fixing some small bugs related to integration tests (v2)
2015-06-01 16:42:10 -05:00
James Cammarata
2bad888f28
Merge branch 'v2_final' into devel_switch_v2
...
Conflicts:
lib/ansible/inventory/__init__.py
lib/ansible/modules/core
lib/ansible/utils/__init__.py
lib/ansible/utils/module_docs.py
2015-05-28 15:26:03 -05:00
Toshio Kuratomi
a8d52e3e94
Have to setup the proper mime-types before importing SImpleHttpServer
2015-05-21 12:24:41 -07:00
Toshio Kuratomi
7af2632c87
Forgot to invoke wrapper instead of SimpleHttpServer
2015-05-21 11:56:58 -07:00
James Cammarata
b94e2a1f4e
Fixing bugs related to parsing and fixing up parsing integration tests (v2)
2015-05-13 11:27:12 -05:00
Chris Meyers
cf300da02c
azure changes to Makefile
2015-05-05 08:42:07 -04:00
Rene Moser
0588a0fdd9
cloudstack: integration tests
2015-05-03 16:06:30 +02:00
Jesse Rusak
652cd6cd5e
Fix --force-handlers, and allow it in plays and ansible.cfg
...
The --force-handlers command line argument was not correctly running
handlers on hosts which had tasks that later failed. This corrects that,
and also allows you to specify force_handlers in ansible.cfg or in a
play.
2015-04-10 19:38:59 -04:00
Brian Coca
f803c1e1f8
fix tag test that broke with new tag info displayed in list tasks
2015-03-11 16:28:37 -04:00
Toshio Kuratomi
9399290cca
Proper git commit of the new integration test
2015-02-26 14:53:51 -08:00
Toshio Kuratomi
89159951dc
Fix name of a task containing a template causing traceback
...
Workaround for #10321 Need to fix better in v2
2015-02-26 14:05:33 -08:00
Brian Coca
65c08d1364
added tests
...
refactored task selection into method
list-tasks now uses common method of task selection
always is now skippable if specified in --skip-tags
2015-02-13 08:27:07 -05:00
Brian Coca
788889225d
Merge pull request #10078 from sgargan/consul
...
Ansible support for Consul
2015-02-11 13:58:15 -05:00
Toshio Kuratomi
5d1e468bda
Don't bash TMPDIR env var unnecessarily. Other programs might rely on it
2015-02-02 16:17:40 -08:00
Toshio Kuratomi
5b279c1c15
Fix for v1 handling of unicode extra-vars
2015-02-02 14:12:16 -08:00
Steve Gargan
c02f114967
Initial commit of Ansible support for the Consul clustering framework ( http://consul.io ).
...
Submission includes support for
- creating and registering services and checks
- reading, writing and lookup for values in consul's kv store
- creating and manipulating sessions for distributed locking on values in the kv
- creating and manipulating ACLs for restricting access to the kv store
- inventory support that reads the Consul catalog and group nodes according to
- datacenters
- exposed services
- service availability
- arbitrary groupings from the kv store
This submission makes extensive use of the python-consul library and this is required
as a dependency and can be installed from pip.
The tests were written to target a vagrant cluster which can be setup by following the
instructions here http://github.com/sgargan/consul-vagrant
2015-01-24 01:09:03 +00:00
Matt Martz
f5d2f8e382
Add integration tests for the rax module
2015-01-09 15:08:58 -06:00
Toshio Kuratomi
07e483b0c0
Update core modules
2014-12-16 11:18:15 -08:00
Toshio Kuratomi
8d6ea38ee0
Disable automatic running of test_delegate_to with an explanation of what it would take to set this up in our automated test systems
2014-12-08 13:39:01 -08:00
Toshio Kuratomi
3269a349f3
Fix remote_checksum with delegate_to and add tests for several ways that delegate_to works
2014-12-08 12:44:44 -08:00
Toshio Kuratomi
c697d01151
Integration tests for #9242 and #9640
2014-11-26 10:55:37 -08:00
Toshio Kuratomi
c4c3cc315d
Transform both values of a task name into a byte str prior to comparing
...
Fixes #9571
2014-11-19 11:50:02 -08:00
James Cammarata
aa1a46092d
Fix missing dep on parsing integration test for preparation role
2014-11-19 09:41:09 -06:00
James Cammarata
9a0f8f0158
Split out various vars-related things to avoid merging too early
...
Fixes #9498
2014-11-17 15:31:55 -06:00
Toshio Kuratomi
67ff4428d5
Fix up all python3 issues that do not have to do with text/bytes
2014-10-28 20:27:14 -04:00
James Cammarata
b61a78532c
Catch template syntax errors specifically when templating strings
...
Fixes #9333
2014-10-20 13:11:20 -05:00
Michael DeHaan
3695c2bcab
Remove galaxy CLI tests that hit bitbucket as bitbucket is hanging tests - maybe replace with nice github examples later :)
2014-08-22 14:06:08 -04:00
Will Thames
ada9074276
Allow installation of roles from yaml roles file
...
Added docs
Added more tests
Improved how roles are returned from the parsers
2014-08-21 17:15:23 -04:00
Will Thames
c2fe33f9f4
Tidied up a little, added tests
...
Moved repo_url_to_role_name to common method in ansible.utils
Added unit test for repo_url_to_role_name
Added integration tests for galaxy
2014-08-21 17:15:23 -04:00
James Laska
d4a78dc951
Include unicode and var_precedence tests in 'all' target
2014-08-04 09:50:30 -04:00
Michael DeHaan
a1e4f826ca
Add some more integration tests for the task and playbook include mechanism.
2014-07-26 10:37:55 -04:00
James Cammarata
63bcbd0af2
Fix for unicode decoding error in new splitting code
...
Also adds a new unicode integration test
2014-07-25 09:10:50 -05:00
Michael DeHaan
3adddf4836
Add another negative test for the parser logic.
2014-07-24 20:57:03 -04:00
Michael DeHaan
5a763fb5b6
Add some negative tests on the same parsing infrastructure.
2014-07-23 22:34:56 -04:00
Michael DeHaan
02c63cee26
Add a lot of tests to verify parsing routines for scenarios that should pass. Some changes TBD, like stripping command spaces off end of expressions.
2014-07-23 22:10:58 -04:00
Michael DeHaan
98c6688343
Merge pull request #6976 from clconway/gce-snapshots
...
Adds support for snapshots and extra persistent disks to the gce modules
2014-07-19 19:07:29 -04:00
Chris Church
0c938562a7
Add winrm integration tests for raw, script and ping modules.
2014-06-19 14:24:13 -05:00
James Cammarata
ac349dce96
Fixing typo in integration Makefile from an earlier change
2014-06-12 13:14:01 -05:00
James Cammarata
96c6daf177
Change name of vault integration test
2014-06-10 10:07:50 -05:00
Anton Lindström
923c172044
Enabled integration tests for encrypted vars in Makefile
2014-05-21 21:17:53 +02:00
James Cammarata
272db903e5
Adding an integration test for variable precedence
2014-05-09 11:42:57 -05:00
Chris Church
f9c74d6e57
Add integration tests for group_by module. Fixed bug introduced by ansible/ansible#7273 while also fixing issue described in ansible/ansible#6953
2014-05-06 22:30:37 -04:00
James Cammarata
84e13e5f4c
Make sure amazon test doesn't check host keys
2014-05-05 15:07:59 -05:00
James Cammarata
c9df855d38
Adding an integration test for the ec2_elb module
2014-04-28 20:37:08 -05:00
James Martin
8a21f226b5
ec2_eip integration tests.
2014-04-21 22:10:22 -04:00
Chris Conway
d227330a55
Adds support for creating GCE persistent disks from snapshots
2014-04-13 18:38:31 -07:00
Chris Conway
2cc4a372c5
Adds integration tests for gce module.
2014-04-13 18:38:30 -07:00
James Tanner
f9018a6f1d
Ensure handlers run when meta tasks are defined and add handler integration tests
...
Fixes #6678
Fixes #6670
2014-03-25 13:33:52 -04:00
James Laska
750d9e2d59
Update credentials.yml documentation and handling
...
Changes include:
* Update Makefile to use credentials.yml when it exists
* Add details on the use of the credentials.yml file to README.md.
* Update credentials.template comments
2014-03-18 10:17:44 -04:00
James Laska
07dd02c25a
[test_ec2*] cloud integration test updates
...
To support parallel cloud test execution, create and provide a random string to
cloud integration tests. The variable 'resource_prefix' can be used in cloud
roles and during resource cleanup to safely create/destroy cloud-based
resources.
Additional changes include:
* The roles test_ec2_key and test_ec2_group were updated to use to
{{resource_prefix}}.
* Additionally, the Makefile was updated to set resource_prefix to a random
string. The Makefile will also use 'resource_prefix' during cloud_cleanup.
* All test_ec2* roles were updated to add 'setup_ec2' as a role dependency.
2014-03-13 11:28:02 -04:00
James Laska
bc678e7d7b
Add credentials.template and support custom INVENTORY
...
Testers may override the inventory and vars-file using the environment
variables 'INVENTORY' and 'VARS_FILE'.
2014-03-12 15:45:10 -04:00
James Laska
551cb1892b
Always run cleanup after running cloud_integration tests
2014-03-12 08:37:01 -04:00
James Laska
b589bf1d2e
First pass at ec2 module tests
2014-02-26 16:43:30 -05:00
Michael DeHaan
2177b773c8
Rename tests to test, use old directory name.
2014-02-20 19:11:15 -05:00