Commit Graph

87619 Commits

Author SHA1 Message Date
Bo Maryniuk
8f7ef4f45f Lintfix: E9502 2017-11-10 20:02:04 +01:00
Bo Maryniuk
0594517a2e Lintfix: E0102 2017-11-10 20:02:04 +01:00
Bo Maryniuk
64d3c1e300 Lintfix: W1699 2017-11-10 20:02:04 +01:00
Bo Maryniuk
7742037bcd Don't bother with non-pytest unit tests 2017-11-10 20:02:04 +01:00
Bo Maryniuk
67cede713f Add unit test for module loader failure 2017-11-10 20:02:04 +01:00
Bo Maryniuk
4004e2f53d Add unit test for module loader 2017-11-10 20:02:04 +01:00
Bo Maryniuk
fd2fca0482 Improve module loader failure 2017-11-10 20:02:04 +01:00
Bo Maryniuk
25990f66bc Add unit test resolver module loader failure 2017-11-10 20:02:04 +01:00
Bo Maryniuk
9d0762a8ee Refactor to setup/teardown methods 2017-11-10 20:02:04 +01:00
Bo Maryniuk
630b654544 Add unit test for modules filtering 2017-11-10 20:02:04 +01:00
Bo Maryniuk
fc24371704 Do not use mock but real resolver class 2017-11-10 20:02:04 +01:00
Bo Maryniuk
082d47f2c1 Add unit test for documentation extractor 2017-11-10 20:02:04 +01:00
Bo Maryniuk
c7a1b733ab Add scaffold for the unit test 2017-11-10 20:02:04 +01:00
Bo Maryniuk
372c0f642e Add the license header 2017-11-10 20:02:04 +01:00
Bo Maryniuk
7239180c82 Mimic the direct call of the module to reuse internal arg parsing 2017-11-10 20:02:04 +01:00
Bo Maryniuk
56cd42e55d Remove dead code 2017-11-10 20:02:04 +01:00
Bo Maryniuk
59bec48881 Handle errors 2017-11-10 20:02:04 +01:00
Bo Maryniuk
7993a728fc Implement basic Ansible state call 2017-11-10 20:02:04 +01:00
Bo Maryniuk
d0fd3ede58 Wrap caller into a class 2017-11-10 20:02:04 +01:00
Bo Maryniuk
b87f4791fb Take to the account popen's STDERR as well. 2017-11-10 20:02:03 +01:00
Bo Maryniuk
7a3acc3dce Initial scaffolding for Ansible state module 2017-11-10 20:02:03 +01:00
Bo Maryniuk
2faf0a0829 Add quotes to the help command 2017-11-10 20:02:03 +01:00
Bo Maryniuk
0469c420df Prevent dummy modules to be executed to nothing 2017-11-10 20:02:03 +01:00
Bo Maryniuk
05244d82fa Call description from help by default 2017-11-10 20:02:03 +01:00
Bo Maryniuk
01ba818a63 Catch loader error as well 2017-11-10 20:02:03 +01:00
Bo Maryniuk
304b863488 Implement basic module caller (Python modules only) 2017-11-10 20:02:03 +01:00
Bo Maryniuk
15d85cd6d8 Register the full name of the module 2017-11-10 20:02:03 +01:00
Bo Maryniuk
5cfc32f471 Prepare arguments for the module 2017-11-10 20:02:03 +01:00
Bo Maryniuk
a77b8b4204 Add missed import 2017-11-10 20:02:03 +01:00
Bo Maryniuk
9ff8c884c9 Allow long names with dots in between 2017-11-10 20:02:03 +01:00
Bo Maryniuk
f48a363011 Set dynamically all possible Ansible callers as functions 2017-11-10 20:02:03 +01:00
Bo Maryniuk
48b79c03b6 Implement module lister 2017-11-10 20:02:03 +01:00
Bo Maryniuk
68c9043507 Improve error handling for the loaded module 2017-11-10 20:02:03 +01:00
Bo Maryniuk
d1d4c39ddc Add help resolver on a particular Python module of Ansible. 2017-11-10 20:02:03 +01:00
Bo Maryniuk
7c17f57ccf Add initial module resolver, implement modules map 2017-11-10 20:02:03 +01:00
Bo Maryniuk
d1e4b9b51e Initial start of ansible module 2017-11-10 20:02:03 +01:00
Mike Place
8b834e341d
Merge pull request #44288 from eradman/onlyif_unless
Report 'onlyif' and 'unless' conditions as true or false
2017-11-10 11:37:01 -07:00
Mike Place
d753d8ba26
Merge pull request #44309 from cloudflare/http-logstash-eng
Improve the http_logstash engine
2017-11-10 11:34:27 -07:00
Mike Place
79eb8bbb4e
Merge pull request #44356 from skjaro/ipset-fix-subtypes-comma
Fix ipset state with multiple entries and subtypes separated with comma
2017-11-10 10:46:06 -07:00
Mike Place
7274824aca
Merge pull request #44481 from rallytime/stale-config-update
Reduce the number of days an issue is stale by 10
2017-11-10 10:03:47 -07:00
rallytime
caa0c54e9a
Reduce the number of days an issue is stale by 10 2017-11-10 11:24:42 -05:00
Nicole Thomas
519441e70f
Merge pull request #44448 from sjorge/zfsfuse
Simpler fallback check for zfs-fuse.
2017-11-10 08:14:12 -07:00
Nicole Thomas
75d26bf112
Merge pull request #44468 from DSRCorporation/bugs/mongo_users_do_not_fetch_twice
Do not perform the same request twice.
2017-11-10 08:13:30 -07:00
Erik Johnson
ec1c98f61d
Merge pull request #44445 from rallytime/fix-44435
Add a late-import for the salt.utils.master.py file in salt.auth
2017-11-10 07:03:48 -08:00
Nicole Thomas
d0ae909afc
Merge pull request #44442 from terminalmage/fix-leaked-filehandles
Use with blocks (or try/finally) to ensure filehandles are closed
2017-11-10 06:45:34 -07:00
Dmitry Kuzmenko
281f09d33a
Do not do the same request twice.
Found during code review. Originally there was 2 different functions to
check is user there and to fetch the users list. Then the first one was
replaced by more efficient that is the same that the second one.

Removed the unneeded second call.
2017-11-09 16:47:26 -07:00
Erik Johnson
1152f8ea08
Update reference to old salt.utils.which function 2017-11-09 15:06:25 -06:00
Erik Johnson
c1b6d35c0c
Python 3 compatibility fixes for kubernetes
dict.keys() is not a list in Python 3, and base64.b64encode requires
a bytestring.
2017-11-09 15:05:43 -06:00
Erik Johnson
b6ccfb45c8
Wait until after restoring original resource limit before removing temp files
Invoking shutil.rmtree() first was causing a traceback since the max
open files setting was still set very low for the test. This moves the
shutil.rmtree() until after we have restored the original resource
limit.
2017-11-09 15:05:43 -06:00
Erik Johnson
4eb248b129
Fix stacklevel in salt/utils/__init__.py 2017-11-09 15:05:43 -06:00