Commit Graph

15803 Commits

Author SHA1 Message Date
Pedro Algarvio
03102b37c7 We returned on the previous line. Fix unreachable code. 2013-07-30 05:43:34 +01:00
Pedro Algarvio
189bc4e45e Added mocked tests for salt.modules.archive.unrar() 2013-07-30 05:36:19 +01:00
Pedro Algarvio
4128a89cee Fixed salt.modules.archive.unrar(). * magic cannot be used.
We can extract using `rar` and `unrar`, make use of that.
2013-07-30 05:35:03 +01:00
Pedro Algarvio
bb9762b62e Added a which_bin decorator. 2013-07-30 05:19:17 +01:00
Pedro Algarvio
16c4057c4f Added mocked tests for salt.modules.archive.zip(). Excludes as a list 2013-07-30 05:01:39 +01:00
Pedro Algarvio
39d0006931 Added mocked tests for salt.modules.archive.unzip(). Excludes as a list 2013-07-30 05:00:58 +01:00
Pedro Algarvio
34b22afad9 Added mocked tests for salt.modules.archive.rar() 2013-07-30 04:59:28 +01:00
Pedro Algarvio
57ce221041 Fixed salt.modules.archive.rar(). * magic cannot be used. 2013-07-30 04:56:32 +01:00
Pedro Algarvio
1a7b68b1a3 Added mocked tests for salt.modules.archive.unzip() 2013-07-30 04:52:31 +01:00
Pedro Algarvio
58f9a542a2 Fixed salt.modules.archive.unzip(). * magic cannot be used. 2013-07-30 04:26:13 +01:00
Pedro Algarvio
2f2047aa47 Added mocked tests for salt.modules.archive.zip() 2013-07-30 04:22:02 +01:00
Pedro Algarvio
caec8ce87f Fixed salt.modules.archive.zip(). Passing *sources was not working. 2013-07-30 04:20:36 +01:00
Pedro Algarvio
a7c7cca94e Test if an exception is raised if the required binary is not found. 2013-07-29 23:29:58 +01:00
Pedro Algarvio
fe4dd48474 Any code requiring a function's argspec now uses salt.utils.get_function_argspec() 2013-07-29 08:00:16 +01:00
Pedro Algarvio
14980b7497 Update the archive.tar mocked test to the new usage. 2013-07-29 06:57:27 +01:00
Pedro Algarvio
2ef634dc0b salt.modules.archive.tar() cannot make use of *args magic. 2013-07-29 06:56:02 +01:00
Pedro Algarvio
7bcad318c5 One more fix to identical_signature_wrapper the original call should not include the argspec with defaults. 2013-07-29 06:45:58 +01:00
Pedro Algarvio
7873a1284a We want keyword arguments with their defaults in the signature. 2013-07-29 03:20:31 +01:00
Pedro Algarvio
1f83aa6743 The wrapped function now uses the same name as the original. 2013-07-28 23:16:06 +01:00
Pedro Algarvio
4855c9427c Simplify our decorator code and make it reusable. 2013-07-28 22:55:27 +01:00
Pedro Algarvio
73409e025f Salt needs to have it's module functions with a proper signature. 2013-07-28 22:26:59 +01:00
Pedro Algarvio
5d0af6268e Mocked test for salt.modules.archive.gunzip() 2013-07-28 12:51:13 +01:00
Pedro Algarvio
99b8f2f70f Mocked test for salt.modules.archive.gzip() 2013-07-28 12:50:05 +01:00
Pedro Algarvio
dcdb9bf686 Mocked test for salt.modules.archive.tar() 2013-07-27 19:24:49 +01:00
Pedro Algarvio
2f8b564259 Don't obfuscate thezip built-in. 2013-07-27 19:13:35 +01:00
Pedro Algarvio
61afe18168 One less TODO. Check for the existence of the binary before running the function. 2013-07-27 19:10:03 +01:00
Pedro Algarvio
69e30346ca Added a which decorator to be used in functions which require a specific binary. 2013-07-27 19:03:54 +01:00
Pedro Algarvio
419bf0af94 Formatting fixes to decorators utils module. 2013-07-27 18:36:25 +01:00
Thomas S Hatch
bca8014b00 Merge pull request #6347 from s0undt3ch/sprint/mock-salt.modules.alternatives
Mocked tests for `salt.modules.alternatives`
2013-07-27 10:14:17 -07:00
Pedro Algarvio
aabf18d76a Remove un-neded import. 2013-07-27 18:11:55 +01:00
Pedro Algarvio
43b513e78f Mocked test for salt.modules.alternatives.remove() 2013-07-27 18:07:18 +01:00
Pedro Algarvio
fa811882cc Mocked test for salt.modules.alternatives.install() 2013-07-27 18:04:04 +01:00
Pedro Algarvio
6f10a44279 Mocked test for salt.modules.alternatives.check_installed() 2013-07-27 17:59:16 +01:00
Pedro Algarvio
068f0d6948 Mocked test for salt.modules.alternatives.show_current() 2013-07-27 17:56:05 +01:00
Pedro Algarvio
4b2ef2c3c8 Mocked test for salt.modules.alternatives.display() 2013-07-27 17:26:54 +01:00
Joseph Hall
60728c72f7 Merge pull request #6345 from s0undt3ch/hotfix/pip-tests
PIP module and state test cases, and minor improvments
2013-07-27 08:52:58 -07:00
Pedro Algarvio
55fd4273cc Simplify __virtual__ logic. 2013-07-27 16:50:56 +01:00
Pedro Algarvio
42641c6153 Added test case to see if the usage of user and runas at the same time raises an exception. 2013-07-27 16:02:59 +01:00
Pedro Algarvio
c072fa0241 Also deprecate runas on salt.states.pip.
* Added mock tests to check if the deprecation is triggered, and to see if the deprecation is also returned to the user in a warnings key.
2013-07-27 15:58:28 +01:00
Joseph Hall
7062ff4366 Merge pull request #6344 from mikadosoftware/minor-doc-fix
Trivial doc spelling fix
2013-07-27 07:14:06 -07:00
Joseph Hall
16f28ca935 Merge pull request #6343 from go8ose/note-pillar-flat
Document how the pillar namespace is flattened.
2013-07-27 06:46:18 -07:00
Pedro Algarvio
07e7366728 user and runas now raise an exception. "There can be only one".
* Always show the deprecation message `runas` is not `None`.
* If both `user` and `runas` are used, that's an error! Full Stop!
* If `runas` is being used and `user` is not, adapt the code and don't fail.
2013-07-27 13:34:58 +01:00
Paul Brian (lifeisstillgood)
fe4559101e Trivial doc spelling fix
It is trivial but it is my first commit / pull request so useful for
checking the process is correct. And it has a semicolon
2013-07-27 13:07:44 +01:00
Pedro Algarvio
5ee8073979 Test the deprecated runas argument to salt.modules.pip. 2013-07-27 13:06:36 +01:00
Pedro Algarvio
a33f9d771b Alaways show triggered deprecation warnings on the unit test. 2013-07-27 13:04:59 +01:00
Geoff Crompton
c0588d42db Document how the pillar namespace is flattened. 2013-07-27 16:35:55 +10:00
Seth House
80ba227409 Merge pull request #6342 from terminalmage/quickfix
Fix indentation in the minion config template
2013-07-26 22:56:19 -07:00
Erik Johnson
17ebff3b9d Fix indentation in the minion config template
The example for the 'backup' param in the minion config file template is
indented one level further than it should. This commit fixes that.
2013-07-27 00:28:15 -05:00
Thomas S Hatch
84274aa1c4 Merge pull request #6341 from terminalmage/travis
Change runas to user for pip module tests
2013-07-26 16:42:47 -07:00
Erik Johnson
d36fa57595 Change runas to user for pip module tests 2013-07-26 18:40:36 -05:00