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
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
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
Pedro Algarvio
98c63b9671
Test if --pre
option argument ends up in the resulting command line for pip.install
.
2013-07-24 08:03:50 +01:00
Pedro Algarvio
d6b1e60fb1
Added a mocked test case for pip.list
with prefix matching.
2013-07-14 20:53:36 +01:00
Pedro Algarvio
01f489c79d
Added a mocked test case for pip.list
.
2013-07-14 19:30:08 +01:00
Pedro Algarvio
c83e767e06
Added a mocked test case for pip freeze
.
2013-07-14 19:25:44 +01:00
Pedro Algarvio
e17599a820
Added a mocked test case for --timeout
passing to pip uninstall
.
2013-07-14 19:02:41 +01:00
Pedro Algarvio
71c278384b
Added a mocked test case for --log
passing to pip uninstall
.
2013-07-14 19:01:27 +01:00
Pedro Algarvio
3e97e36e78
Added a mocked test case for --proxy
passing to pip uninstall
.
2013-07-14 18:59:23 +01:00
Pedro Algarvio
95ee5a9f36
Added a mocked test case for --proxy
passing to pip install
.
2013-07-14 18:59:22 +01:00
Pedro Algarvio
315c1f911d
Added a mocked test case for multiple --requirements
passing to pip uninstall
.
2013-07-14 18:59:22 +01:00
Pedro Algarvio
5435dc69e1
Added a mocked test case for multiple --requirements
passing to pip install
.
2013-07-14 18:59:22 +01:00
Pedro Algarvio
411c926146
Prefix tests with install
since they're testing the install command.
2013-07-14 18:59:22 +01:00
Pedro Algarvio
02034c4d86
Added a mocked test case for --no-install
passing to pip install
.
2013-07-14 18:59:18 +01:00
Pedro Algarvio
716f760e80
Added a mocked test case for --no-deps
passing to pip install
.
2013-07-14 18:59:13 +01:00
Pedro Algarvio
89fa6cecf4
Added a mocked test case for --ignore-installed
passing to pip install
.
2013-07-14 18:59:08 +01:00
Pedro Algarvio
892646bdee
Added a mocked test case for --force-reinstall
passing to pip install
.
2013-07-14 18:59:01 +01:00
Pedro Algarvio
03c88dac2c
Added a mocked test case for --upgrade
passing to pip install
.
2013-07-14 18:58:56 +01:00
Pedro Algarvio
27959701dc
Added support and a mocked test case for --global-options
passing to pip install
.
2013-07-14 18:58:49 +01:00
Pedro Algarvio
fd200c96b0
Added a mocked test case for --install-options
passing to pip install
.
...
* Replaced all occurrences of `basestring` with the `string_types` from salt's `_compat` module.
* Properly split install options on commas.
* Install options need to be quoted.
2013-07-14 18:58:44 +01:00
Pedro Algarvio
12d05e4b9a
Added a mocked test case for --exists-action
passing to pip install
.
...
* `exists_action` now only accepts it's valid settings, one of `s`, `i`, `w`, `b`, else, `CommandExecutionError`.
2013-07-14 18:58:37 +01:00
Pedro Algarvio
fb16313804
Added a mocked test case for --source
passing to pip install
.
2013-07-14 18:58:33 +01:00
Pedro Algarvio
85b0d7964d
Added a mocked test case for --no-download
passing to pip install
.
2013-07-14 18:58:28 +01:00
Pedro Algarvio
60ef910bad
Added a mocked test case for --download-cache
passing to pip install
.
2013-07-14 18:58:24 +01:00
Pedro Algarvio
bfcd91d700
Added a mocked test case for --download
passing to pip install
.
2013-07-14 18:58:12 +01:00
Pedro Algarvio
6fbbd5fb31
Added a mocked test case for --target
passing to pip install
.
2013-07-14 18:58:06 +01:00
Pedro Algarvio
aa8dda75c7
Added a mocked test case for --build
passing to pip install
.
2013-07-14 18:57:58 +01:00
Pedro Algarvio
6e0e8fddf9
Added a mocked test case for --no-index
passing to pip install
.
2013-07-14 18:57:52 +01:00
Pedro Algarvio
467d7de4e5
Added a mocked test case for --extra-index-url
passing to pip install
.
2013-07-14 18:57:47 +01:00
Pedro Algarvio
900682ac51
Added a mocked test case for --index-url
passing to pip install
.
2013-07-14 18:57:43 +01:00
Pedro Algarvio
d3c1c43781
Add tests for proper protocols to find_links
.
2013-07-14 18:57:42 +01:00
Pedro Algarvio
72600f67e6
Test string argument on pkgs
, editable
, find_links
and mirrors
.
2013-07-14 18:57:42 +01:00
Pedro Algarvio
3372034c07
Added a mocked test case for --timeout
passing to pip install
.
2013-07-14 18:57:37 +01:00
Pedro Algarvio
c582d721d9
Added a mocked test case for --log
passing to pip install
.
2013-07-14 18:57:29 +01:00
Pedro Algarvio
21698d187d
Update mocked test case to have the package name as last argument to the pip install
call.
2013-07-14 18:57:20 +01:00
Pedro Algarvio
5e58d4c4f3
Added mock test case for clear
, upgrade
and symlinks
for the virtualenv_mod
.
2013-07-14 13:23:18 +01:00
Pedro Algarvio
45c258e00b
Added test case for the prompt argument to virtualenv_mod
.
2013-07-14 13:04:11 +01:00
Pedro Algarvio
d8536c9f87
Add a mocked test case for salt.modules.virtualenv_mod
python argument.
...
* Updated the `virtualenv_mod` mock test case to patch `salt.utils.which` and `sys.modules` at class level as opposed to every function.
2013-07-14 12:53:23 +01:00
Pedro Algarvio
c65b1348fe
Fix Travis-CI for unit.modules.virtualenv_test.VirtualenvTestCase.test_no_site_packages_deprecation
...
Also mock the `virtualenv` module.
2013-07-13 23:23:30 +01:00
Pedro Algarvio
b6471e4099
Mock the virtualenv module in unit.modules.virtualenv_test.VirtualenvTestCase.test_issue_6031_multiple_extra_search_dirs
. Is Travis-CI still going to complain?
2013-07-13 23:14:12 +01:00
Pedro Algarvio
2b1cf0ac14
Patch _install_script()
since the virtualenv module will try to install some scripts.
2013-07-13 19:55:51 +01:00
Pedro Algarvio
05f2a23733
Make use of salttesting.helpers.ForceImportErrorOn
.
2013-07-13 19:55:50 +01:00