Pedro Algarvio
c8038d87b1
Use KNOWN_BINARY_NAMES
from salt.modules.virtualenv
2014-01-11 12:19:29 -07:00
Pedro Algarvio
2cab3227fd
The virtualenv binary can have multiple CLI names.
2014-01-02 20:27:18 +00:00
Pedro Algarvio
ec0a4bca8e
URL environment selection should also be using saltenv
.
2013-11-06 23:36:40 +00:00
Pedro Algarvio
962f8d4149
Support adding files to the testing prod state env.
2013-11-06 20:18:47 +00:00
Pedro Algarvio
e18ba0758b
Don't include authorship in generated documentation, the Sphinx way.
2013-09-16 17:24:00 +01:00
Pedro Algarvio
a8e70d527e
List pip from the right place.
2013-09-11 10:54:43 +01:00
Pedro Algarvio
fc5212dce0
Add a test case for #6833 . Refs #7130 .
2013-09-10 10:52:17 +01:00
Pedro Algarvio
20c45fbb6d
Updated test case to install from a requirements file.
2013-08-29 20:21:23 +00:00
Pedro Algarvio
610c30f359
pip.installed
ownership testcase using user
instead of runas
. Refs #6912 .
2013-08-29 17:30:27 +00:00
Pedro Algarvio
a38077248f
Verify proper owner for pip.installed
. Refs #6912
...
Added test case which verifies that the owner of the `pip.installed` package is the one provided by `runas`.
2013-08-29 17:30:27 +00:00
Pedro Algarvio
b880af89e1
Switched arguments in SaltReturnAssertsMixIn.assertInSaltComment()
2013-08-22 19:02:17 +01:00
Pedro Algarvio
1068406ca5
Fixed integration.states.pip.PipStateTest.test_pip_installed_errors
error regex.
...
It was failing to match on FreeBSD.
2013-08-14 12:29:34 +01:00
Pedro Algarvio
90d375d14e
If SHELL
is not in the environ, the error message is different.
2013-08-13 14:17:41 +01:00
Erik Johnson
113e5e9b52
Update assert in test_pip_installed_weird_install
...
Pull #6574 changed the state output slightly, breaking this test. This
commit fixes the test.
2013-08-08 18:43:44 -05:00
Pedro Algarvio
a886eaa03d
Add a state integration test case for #5940 .
2013-07-05 23:00:14 +01:00
Pedro Algarvio
f55263631d
Updated integration.states.pip
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
663f54ef9f
Update copyright years of changed files. Added __main__
execution to tests/integration/states/pip.py
.
2013-06-28 00:12:57 +01:00
Chris Rebert
c487d86fff
tests: standardize to modern 'except FooError as err:' syntax
2013-05-03 19:55:50 -07:00
Pedro Algarvio
acb866762e
Fix expected comment in testcase states.pip.PipStateTest.test_pip_installed_weird_install
.
2013-03-12 04:03:12 +00:00
Pedro Algarvio
7c5a5d0bd3
Header updates. More copyright to the SaltSatck team. Code author to me(where applicable).
2012-12-11 10:23:37 +00:00
Pedro Algarvio
fc3b272809
Migrated test.integration.states.pip
to use SaltReturnAssertsMixIn
.
...
* Added `assertSaltCommentRegexpMatches()` to `SaltReturnAssertsMixIn` to add the ability to match salt comments using regular expressions.
2012-12-07 16:59:24 +00:00
Pedro Algarvio
e04c872c66
Convert the remaining tests hard-coding temporary paths.
2012-11-06 12:44:53 +00:00
Seth House
2e9ecdbaa4
Remove bash-ism from pip state test
...
This one is pretty silly; hopefully the regex match is still specific
enough to be a good test.
% bash -c '/tmp/someenv/bin/pip install something'
bash: /tmp/someenv/bin/pip: No such file or directory
% zsh -c '/tmp/someenv/bin/pip install something'
zsh:1: no such file or directory: /tmp/someenv/bin/pip
2012-10-15 15:31:47 -06:00
Pedro Algarvio
eec932799a
The pip module now uses cmd.run_all
. Fixes #2113 .
...
* In order to check if something went wrong while running the various pip commands using the command module, we need to know, at least, the return code, this way we can report the failure.
* `salt.modules.pip.uninstall()` now returns the `cmd.run_all` `dict` instead of a list of strings. **This breaks previous behaviour**.
* Added a test case for `salt.modules.pip.uninstall()` changes.
2012-09-27 18:33:50 +01:00
Pedro Algarvio
af9709dde5
Properly handle missing pip
binary. Fixes #2087 .
2012-09-27 12:06:09 +01:00
Thomas S Hatch
43382b6d1c
Merge pull request #2085 from s0undt3ch/issues/2028
...
Address `pip.installed` regarding weird packages setup. Fixes #2028 .
2012-09-25 10:20:47 -07:00
Pedro Algarvio
41f0f4449e
Address pip.installed
regarding weird packages setup. Fixes #2028 .
...
Some packages, carbon and graphite-web for example, install their packages to a specific root, using a `virtualenv` or not. `pip freeze` won't show those packages as installed.
2012-09-25 12:24:54 +01:00
Thomas S Hatch
282c8f4e3c
clean out unused imports
2012-09-24 00:55:01 -06:00
Pedro Algarvio
03c006debb
Removed a test that was using state.template_str
. Re-adding later.
...
The test was removed in order to have a clean pull request. A new issue will be opened because of that failing test.
2012-09-23 18:32:04 +01:00
Pedro Algarvio
c315e95b95
Move the state pip.installed
tests to the proper place.
...
* Moved the state `pip.installed` tests to it's own module, the correct one.
* Added a test which checks for the presence of errors while running `pip.installed` introduced while fixing #2028
2012-09-23 18:16:11 +01:00
Pedro Algarvio
8ab5e6e9c2
Include some test cases to expose saltstack/salt#2028
2012-09-18 01:53:05 +01:00