Brian Coca
ee21ebaffc
Merge pull request #11975 from mutemule/become_doas
...
Add become support for OpenBSD doas
2015-08-17 21:36:03 -04:00
Damian Gerow
1c5611100e
Add become support for OpenBSD doas
2015-08-17 21:31:18 -04:00
Brian Coca
43bf9c86d8
fixed typo
2015-08-16 13:15:23 -04:00
Brian Coca
d38bb4152d
fixed test to match new exception class used
2015-08-16 10:35:09 -04:00
Brian Coca
2eb5333b50
fixed test to match new become output
2015-08-15 12:26:35 -04:00
Toshio Kuratomi
e8452c864e
Restore the relative path handling portion of #11865
2015-08-06 07:28:22 -07:00
Brian Coca
b9433650d1
Revert "Path of group_vars and host_vars were getting the basedir added twice."
...
in view of simpler solution incomming from james
This reverts commit bae7a02be5
.
2015-08-06 10:09:43 -04:00
Toshio Kuratomi
bae7a02be5
Path of group_vars and host_vars were getting the basedir added twice.
...
Fix inventory so this won't happen and fix DataLoader so that it will
test relative paths relative to self._basedir
Fixes #11789
2015-08-05 17:41:17 -07:00
James Cammarata
9891bcbcae
Fix unit tests broken by previous commit
2015-08-04 12:40:13 -04:00
James Cammarata
6b244ed61e
update unit tests for role templating changes
2015-08-03 16:33:47 -04:00
James Cammarata
42cfacf83b
Switch up the task/host overrides for PlayContext to use the compiled vars dict
...
Fixes #11436
2015-07-28 16:25:44 -04:00
James Cammarata
8146a193eb
Fix strategy base unit tests after 88e1ef8
2015-07-24 10:53:54 -04:00
James Cammarata
993ce592b1
Update unit tests for flush_handlers fix
2015-07-22 11:30:05 -04:00
James Cammarata
66a8864ae9
Fix environment setting and inheritence
...
Fixes #11401
2015-07-21 13:57:30 -04:00
James Cammarata
e64989beb4
Moving ConnectionInformation -> PlayContext
...
Also making PlayContext a child class of the Playbook Base class,
which gives it access to all of the FieldAttribute code to ensure
field values are correctly typed after post_validation
Fixes #11381
2015-07-21 12:13:50 -04:00
James Cammarata
fadd8f23f1
Fix broken strategy unit test from earlier change
2015-07-20 15:47:29 -04:00
Pierre-Louis Bonicoli
8c392a94b7
Play.get_name: remove prefix, return name only
2015-07-20 12:41:39 +02:00
James Cammarata
3d77723e3d
Cleaning up some stuff related to the connection info/become/executable change
2015-07-19 01:12:23 -04:00
Brian Coca
323362e23a
added stdout to test result
2015-07-14 15:59:18 -04:00
James Cammarata
3b913943b2
Updating base strategy unit test regarding bad file loads based on earlier change
2015-07-14 11:09:22 -04:00
James Cammarata
1163e38d39
Fix unit tests for new magic variable addition 'ansible_version'
2015-07-10 03:33:11 -04:00
James Cammarata
bbe8f48a46
Update role unit tests for changes made to require a play during loading
2015-07-10 02:50:33 -04:00
marconius
79394f5c8f
Added tests for taggable
module
2015-07-08 10:22:33 -04:00
James Cammarata
bfbb88b4a9
Fix strategy plugin unit tests related to earlier changes
2015-07-07 16:26:24 -04:00
Toshio Kuratomi
f44f9569e1
Test unquote works as expected and fix two bugs:
...
* escaped end quote
* a single quote character
2015-07-06 13:16:42 -07:00
Brian Coca
aa6486778f
fixed become test to match new expected output
2015-07-06 15:34:38 -04:00
James Cammarata
53cd96befe
Updating unit tests to account for new magic variable 'vars'
2015-07-04 21:48:54 -04:00
Matt Martz
2cd3a1be00
assertRaises should be given an exception type. Fixes 11441
2015-06-30 11:02:33 -05:00
James Cammarata
4fbd4ae18b
Update VariableManager test for additional magic variable playbook_dir
2015-06-24 11:27:44 -04:00
Brian Coca
5bac17de51
fixed pfexec test
2015-06-15 01:20:38 -04:00
Brian Coca
091caf6279
added missing error class import
2015-06-11 13:45:04 -04:00
Brian Coca
e9cf67004b
updated fail_on_undefined test to new function signatures
2015-06-11 13:45:04 -04:00
Matt Martz
230be812ba
Don't test for play.become_pass any longer
2015-06-06 09:25:30 -05:00
Matt Martz
49d19e82ab
Get tests passing
...
The largest failure in the tests was due to selinux not being installed.
The tests don't require it to be installed, so mock the import.
2015-06-05 16:05:39 -05:00
James Cammarata
9ac624d2c9
Fix mock DictDataLoader _get_file_contents to match real code
2015-06-05 07:19:14 -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
0828028c71
Fixing unit test for included file changes
2015-05-29 00:15:14 -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
James Cammarata
e59d4f3b51
More module_utils/basic.py unit tests for v2
2015-05-28 01:26:04 -05:00
James Cammarata
339a02c384
Started reworking module_utils/basic unit tests (v2)
2015-05-27 03:21:15 -05:00
James Cammarata
d4a31e8d26
Adding unit tests for TaskExecutor (v2)
2015-05-24 07:47:06 -05:00
Serge van Ginderachter
b92d70c5b6
tests files extensions in group/host_vars dir
...
only files with extensions as per
C.YAML_FILENAME_EXTENSIONS should be parsed
2015-05-23 21:37:12 +02:00
James Cammarata
838ff32001
Fix unit test for conn_info (v2)
...
The default user expected in the connection information is the current
user, not root
2015-05-22 08:38:39 -05:00
James Cammarata
ecd5eb902d
Adding unit tests for ConnectionInformation (v2)
2015-05-22 03:32:40 -05:00
James Cammarata
9921a1d2be
Unit tests for base strategy class (v2)
2015-05-21 02:03:59 -05:00
James Cammarata
21fa385ce7
Reorganizing plugin unit tests and adding start of strategy tests (v2)
2015-05-18 17:26:59 -07:00
James Cammarata
a960fcd569
Adding module_utils tests from v1 to v2
2015-05-17 01:29:40 -05:00
James Cammarata
398b1d3e60
Cleaning up template test syntax a bit
2015-05-17 01:13:22 -05:00
James Cammarata
9aa8676bdd
More template unit tests for v2
2015-05-17 01:06:02 -05:00