1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Commit graph

10640 commits

Author SHA1 Message Date
Michael DeHaan
379fe02104 Move inventory tests into subdir, prune non-integration tests. 2014-02-20 17:16:58 -05:00
Michael DeHaan
fe7d3773ae Various tests using datafiles are being moved into the integration test framework (tests_new right now).
The unit test infrastructure will remain for things that are mocked out and testable with out filesystem
side effects, and a few cases of things that might not be quite so much (like inventory) that can still
benefit from heavy access to the API.

See the 'tests_new/integration' directory, this will soon fold into tests_new.
2014-02-20 17:16:58 -05:00
Michael DeHaan
0581746a80 Removing tests from units that are now implemented in the new upgraded test system. Once
we're a little further along the units directory will be reserved to pure-API tests.
2014-02-20 17:16:58 -05:00
James Tanner
03d3ba723b Remove -e for echo in test_facts_d 2014-02-20 17:09:46 -05:00
Richard C Isaacson
0719be852f Update in response to ubuntu issues. 2014-02-20 16:56:40 -05:00
James Cammarata
3baf2dc095 Adding new test for conditional behavior 2014-02-20 16:43:33 -05:00
James Cammarata
87f2e362b3 Adding new test for always_run option in check mode 2014-02-20 16:11:17 -05:00
James Tanner
e4970c0933 Test for facts.d 2014-02-20 16:05:50 -05:00
Richard C Isaacson
e12b2aba96 Fix selinux in the new tests for the file module.
We had some incorrect logic for when selinux is installed and disabled.
2014-02-20 15:59:25 -05:00
Richard C Isaacson
b8ea1cfa69 Fixed when running on a system with selinux which is disabled. 2014-02-20 15:52:57 -05:00
Michael DeHaan
b2e5903853 Add some missing files for filters and ignore_errors tests 2014-02-20 15:34:02 -05:00
James Cammarata
fa1ab231c9 Fixing bug in which playbook vars were not merged properly
This occurred when a hash would be passed in via extra args and the
hash variable behavior was set to 'merge', which resulted in the
variable from extra args replacing the playbook variable.
2014-02-20 15:25:52 -05:00
James Cammarata
d158ec382c Adding new test for hash behavior (merge vs. replace) 2014-02-20 15:25:52 -05:00
Michael DeHaan
bc65956798 Add tests that leverage most of our custom filters. A few more to add. 2014-02-20 15:24:03 -05:00
James Tanner
8336cd7fa6 Check for no change in test_yum 2014-02-20 15:07:54 -05:00
James Tanner
f51e16014f apt re-run verification 2014-02-20 15:01:23 -05:00
James Tanner
2b3856f1b6 Add apt test role 2014-02-20 14:56:01 -05:00
Michael DeHaan
50e5d81777 Remove the check in the 'hg' integration tests for the 'heads' file, as that was a bit of an idiom
copied over from the svn module.
2014-02-20 14:38:00 -05:00
Richard C Isaacson
ea21e5b5dd Cleanup of uid bits. 2014-02-20 14:32:27 -05:00
Richard C Isaacson
10e116ea78 Cleaning up my asserts 2014-02-20 14:25:42 -05:00
Richard C Isaacson
fc648a65ef Change the uids that we use so that there is a lesser change of collision and check the uid rather than the owner. 2014-02-20 14:08:18 -05:00
Richard C Isaacson
92cb8dd34e Unarchive tests. 2014-02-20 14:00:26 -05:00
James Cammarata
ce358e70bd Added 'expanduser' filter to the docs 2014-02-20 13:51:01 -05:00
James Cammarata
f5505425f9 Adding 'expanduser' filter to the core filters list
Example usage: {{ my_path | expanduser }} # my_path: "~/path/to/file"
2014-02-20 13:48:07 -05:00
Michael DeHaan
aafd08bab7 Add a test for the ignore_errors keyword. 2014-02-20 13:47:55 -05:00
James Tanner
57fc86ec3c Add yum tests 2014-02-20 13:41:55 -05:00
James Cammarata
021ae05f33 Added new test for the lineinfile module 2014-02-20 13:32:28 -05:00
James Cammarata
2157880029 Adding the backup destination to the resut dictionary for lineinfile 2014-02-20 13:31:54 -05:00
James Cammarata
590be8ac7d Adding headers to test_service and adding tags to prepare_tests role tasks 2014-02-20 13:31:54 -05:00
Michael DeHaan
1b4ba5431b Update makefile, add files for variable blending tests. 2014-02-20 13:25:19 -05:00
Michael DeHaan
1489a13020 Add destructive targets to Makefile. 2014-02-20 13:05:03 -05:00
Michael DeHaan
13076ca8be Remove stray shell script. 2014-02-20 13:04:24 -05:00
Michael DeHaan
69b2d82be6 Convert test system to use Make 2014-02-20 13:00:05 -05:00
Michael DeHaan
ddf91a3d6f Add a partial test of variable blending to the test infrastructure. 2014-02-20 12:52:17 -05:00
James Cammarata
701af19fad Removing non-ascii logging test for now 2014-02-20 12:48:59 -05:00
James Tanner
010e145efa Add changed_when test 2014-02-20 12:45:56 -05:00
Matt Jeffery
8131feaade Normalise the module name when comparing against the module names in /proc/modules. 2014-02-20 16:54:33 +00:00
Richard Isaacson
ae6a1a38d1 Merge pull request #6096 from risaacson/devel
Finished file tests with selinux.
2014-02-20 11:24:37 -05:00
Richard C Isaacson
f3922d02d1 Finished file tests with selinux. 2014-02-20 11:23:35 -05:00
James Tanner
9f514ddd1d Add mercurial test 2014-02-20 11:20:32 -05:00
Richard Isaacson
f9618892c0 Merge pull request #6095 from risaacson/devel
File - selinux tests in new framework.
2014-02-20 11:12:36 -05:00
Richard C Isaacson
101f9a226b File - selinux tests in new framework. 2014-02-20 11:11:00 -05:00
Richard Isaacson
cc55407627 Merge pull request #6093 from risaacson/devel
Further updates to the file tests.
2014-02-20 11:02:12 -05:00
Michael DeHaan
125e9d4703 Merge pull request #6086 from alvin-chang/patch-1
Match directory permission with 755 instead of 644
2014-02-20 08:44:41 -05:00
alvin-chang
1e8731f092 Match directory permission with 755 instead of 644
Directories need the execution bit being set therefore instead of 644, it needs 755.
2014-02-20 06:04:48 +00:00
Dale Sedivec
498c8e8d57 Fix mistaken double backslash
The module helper function run_command was appending a literal backslash
followed by 'n' to the stdin of a command it runs unless you called it
with binary_data=True (not the default).  I have changed it to what
I expect was the intent, to append an actual line feed to stdin.
2014-02-19 20:39:48 -06:00
James Tanner
7fe3db408d Fixes #6082 Set vault password to None by default 2014-02-19 21:26:12 -05:00
James Tanner
cf5acb9982 Add git test role 2014-02-19 21:14:09 -05:00
Daniel Jaouen
6748ef121b Update homebrew documentation. 2014-02-19 19:07:43 -05:00
Daniel Jaouen
e3a39837e1 Add back homebrew install_options parameter. 2014-02-19 19:07:43 -05:00