Yves Dorfsman
943829c9b7
Added test cases for lineinfile.
2013-02-23 12:50:18 -05:00
Juha Litola
2796603c92
Removed apt_key tests, as they didn't test the real functionality.
...
Tests used heavily mocked version of the apt_key code, which meant that
it didn't properly test real life scenario.
2013-01-25 17:10:04 +02:00
Jayson Vantuyl
ad6373430b
add apt_key module
...
Pretty straightforward. Give it a URL with an exported GPG key for signing an
Apt repository. It downloads it and will install it using apt-key. It's even
smart enough to tell if it's already there (i.e. actually tells you if it
changed or not).
2013-01-15 17:34:38 -08:00
Michael DeHaan
9985995a9d
Make tests use the local connection type, fix missing callback in tests.
2012-11-19 10:30:30 -05:00
Michael DeHaan
e04dab904a
Use previous proven multiprocessing logic as the simplification didn't have the same Ctrl-C handling and may
...
be subject to race issues, though still don't pass Runner to each. Still seems performant.
2012-10-26 18:11:38 -04:00
Michael DeHaan
cbc12f0dba
Various performance streamlining and making the file features usable in all modules without daisy chaining.
2012-10-20 22:55:09 -04:00
Michael DeHaan
7583704144
"force=" code under the file module is problematic, remove it
2012-10-16 18:14:42 -04:00
Michael DeHaan
c5d2f6b0d3
implement lookup plugins for arbitrary enumeration over arbitrary things. See the mailing list for some cool examples.
2012-10-12 20:07:05 -04:00
Daniel Hokka Zakrisson
6477bdc6fc
Use a regexp to filter out arguments instead
...
pipes.quote is a bit overzealous for what we want to do, quoting ;
and other characters that you most likely want to use in your shell
invocations. The regexp is the best I could come up with to be able
to only replace the parts of the arguments that shouldn't be
executed.
2012-10-01 12:13:17 +02:00
Aleksej Romanov
eefe66f1cc
Squashed commit of the following:
...
commit 80a26a8175b779b707bc08e9d28c451c30ee4ada
Merge: b25b9fd
61e9b27
Author: Michael DeHaan <michael.dehaan@gmail.com>
Date: Tue Sep 18 21:01:47 2012 -0400
Merge branch 'devel' of git://github.com/alopropoz/ansible into file-force
commit 61e9b27df25c36015c2b1b4a58155ccfdfb993a0
Merge: 3f6f329 16bf3e1
Author: Aleksej Romanov <alopropoz2@yandex.ru>
Date: Thu Sep 13 20:48:02 2012 +0700
Merge remote branch 'upstream/devel' into devel
commit 3f6f3291dffefa2a802def25a1e8bd38de0cba75
Author: Aleksej Romanov <alopropoz2@yandex.ru>
Date: Thu Sep 13 20:41:31 2012 +0700
'force' option for 'file' module.
commit 6223bba94160c60153448655803d084f7eaa5168
Author: Aleksej Romanov <alopropoz2@yandex.ru>
Date: Thu Sep 13 20:40:19 2012 +0700
changed = True when changing symlink referent, #1008 . Needed for tests.
2012-09-18 21:04:42 -04:00
Brian Coca
83d1028a21
- Makefile now works with freebsd (date command options are diff)
...
date still issues warning and ignores TZ
- Updated tests to work inside bsd jails (127 addresses are an issue)
Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
2012-08-29 09:46:05 -04:00
Michael DeHaan
508c04b85b
remove svn tests
2012-08-28 20:30:14 -04:00
Dane Summers
eb49ee38ae
full test case for subversion, minimal tests for git
2012-08-23 00:08:38 -04:00
Michael DeHaan
de21cb27d8
Remove tests that involve network effects -- makes things faster and they are not really deep tests here either way.
2012-08-11 11:38:45 -04:00
Dave Peticolas
08272dc25d
Remove unused imports.
2012-08-09 21:35:22 -07:00
u348095
e863ba0cec
Fixes for git module when it fails.
...
* module.fail_json *must* have msg argument
Using http://github.com/ rather than git://github.com/ as it gets through more
firewalls
2012-07-31 12:59:22 +10:00
Michael DeHaan
47cead3603
Merge pull request #727 from sfromm/git
...
Git module ported to use module magic
2012-07-30 13:40:36 -07:00
willthames
1bcba4f4a2
test/TestRunner.py now executes false with no directory prefix
...
as it is /bin/false on many systems but /usr/bin/false on OS X
test/playbook1.yml now just does command true, rather than command /bin/true,
again so that it works on OS X
Changed from using which false to just using command false to
make it simpler and also match how playbook1.yml works
2012-07-30 21:39:58 +10:00
Stephen Fromm
90bf67cf56
Make test_git functional in TestRunner.py
2012-07-29 22:40:12 -07:00
Michael DeHaan
279b5965b8
Much streamlining around setup steps in playbooks, now only run setup once per play.
2012-07-14 12:24:19 -04:00
Michael DeHaan
931f9f1a61
Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications
...
around file pathing and removes occasional permissions conflicts depending on how things are used.
2012-07-14 11:59:12 -04:00
Stephen Fromm
9cf182c225
Add assemble module
...
This adds a module that concatenates (ie. assembles) a file from
fragments in a directory in alphabetical order. It chains the file
module afterward to fix up ownership and permission. This also adds
tests for the assemble module with fragments in assemble.d.
2012-06-11 23:09:54 -07:00
Jeroen Hoekx
ecc0b0770c
If /usr/share/dict/words does not exist, use cracklib-small to test large output.
2012-05-15 14:26:43 +02:00
John Kleint
83b9a43e60
Add test for large output; fix indentation.
2012-05-11 11:38:15 -04:00
Jeroen Hoekx
cc579a8aa2
Fix tests for facter and the ansible_facts API.
2012-04-24 17:01:48 +02:00
Jeroen Hoekx
2dc9a563ef
Allow modules to return facts.
...
If the module result contains "ansible_facts", that will be added to the setup
cache.
2012-04-23 21:28:12 +02:00
Michael DeHaan
30d06dbcea
Don't force down ansible facts back to setup, the setup module won't like parsing them on input and that
...
data is already there.
2012-04-18 22:23:33 -04:00
Michael DeHaan
da0209dbc4
The fetch module really should preserve the whole directory structure being fetched to allow subsequent calls,
...
particularly in playbook, to recreate the host tree structure. Making it thus.
2012-04-18 21:12:48 -04:00
Jeroen Hoekx
6f09b41eb5
Don't test modules that aren't present.
...
Also account for path difference in sleep in different distributions.
2012-04-17 13:30:30 +02:00
Michael DeHaan
3f26a1c7f6
verbose option is not being used, so remove it. debug variable still exists.
2012-04-16 23:47:41 -04:00
Michael DeHaan
245aa9bf8e
Some tweaks to the fetch module. 'err' return was for stderr, so that should be empty string.
...
Some minor code shortening. Added a test to TestRunner.
2012-04-11 20:12:01 -04:00
Michael DeHaan
eed4a2b717
Update tests to use 127.0.0.2 to bypass the smart "use local connection" code, and also to reflect
...
that commands now trigger change events.
2012-04-06 12:11:25 -04:00
Michael DeHaan
96a22b582b
Disable ohai test as it's hanging for whatever reason, but doesn't do this in real life.
...
Run tests in verbose mode.
2012-03-31 11:18:26 -04:00
Michael DeHaan
3ded27fe35
Treat module args as strings everywhere to avoid unneccessary shlex and requoting
2012-03-30 22:47:58 -04:00
Michael DeHaan
45abe3c16b
Add unit tests for playbooks, and fix an error caught by one
2012-03-18 18:29:11 -04:00
Michael DeHaan
4bde4926c3
Modules don't have to return JSON, key=value pairs is ok.
2012-03-14 21:16:15 -04:00
Michael DeHaan
40fd778e2c
'shell' is a magic module that executes the command module with shell=True
2012-03-14 20:40:06 -04:00
Michael DeHaan
73d20b81c6
Add basic test of yum module (VERY basic) just to make sure syntax remains ok. Need to do something
...
trivial for service and git module also.
2012-03-14 20:02:29 -04:00
Michael DeHaan
696b67f935
Fix async to use the new argfiles method (wrapping brain around rock, really must write module development guide)
2012-03-14 19:57:56 -04:00
Michael DeHaan
cb5929dad7
Setup module tests
2012-04-04 11:55:24 -04:00
Michael DeHaan
c71afe35d6
Async tests complete. Fixed bug in async_wrapper
2012-04-04 11:30:14 -04:00
Michael DeHaan
fae3a71899
WIP on async tests
2012-04-04 11:24:22 -04:00
Michael DeHaan
f8eab8ed7e
Here are those tests I talked about previously :)
2012-04-04 11:11:31 -04:00