Commit Graph

6868 Commits

Author SHA1 Message Date
Thomas S Hatch
fff4a95b0d bump version 2012-09-30 15:55:24 -06:00
Pedro Algarvio
8d1411115d Merge branch 'develop' of github.com:saltstack/salt into issues/1959 2012-09-30 19:21:41 +01:00
Pedro Algarvio
0872852602 Add missing imports. 2012-09-30 18:41:44 +01:00
Pedro Algarvio
27bf64fbf3 Only root can run these tests. 2012-09-30 18:26:39 +01:00
Thomas S Hatch
dd076f910b Merge pull request #2138 from s0undt3ch/issues/2137
Include primary group into `user.info` groups. Fixes #2137.
2012-09-30 10:24:22 -07:00
Pedro Algarvio
73a679e070 Include primary group into user.info groups. Fixes #2137. 2012-09-30 18:01:47 +01:00
Thomas S Hatch
905f3b7fdf Merge pull request #2136 from s0undt3ch/develop
Improve/correct logging.
2012-09-30 08:57:04 -07:00
Pedro Algarvio
b962d90d19 The pip module did not have logging setup. Fix it and log to the right place. 2012-09-30 14:00:42 +01:00
Pedro Algarvio
793743e2ea The pip module did not have logging setup. Fix it and log to the right place. 2012-09-30 13:59:37 +01:00
Pedro Algarvio
00ed5ec51a Don't log the command repr, log the actual line. 2012-09-30 13:53:09 +01:00
Pedro Algarvio
b23509ad8e Properly handle runas on pip module. Refs #1959 and #1891. 2012-09-30 13:48:29 +01:00
Pedro Algarvio
4565d64cc6 Properly handle runas on pip module. Refs #1959 and #1891. 2012-09-30 13:40:02 +01:00
Pedro Algarvio
064b3a60c2 Add test case for #1959. 2012-09-30 12:20:38 +01:00
Pedro Algarvio
b93d2ca008 Fix log message. 2012-09-30 11:45:04 +01:00
Pedro Algarvio
d730892a69 Improve/correct logging.
* Change logging handler as per conversation on 25f9c5386a (commitcomment-1889286)
* Add some logging information to know who is the user starting the salt binaries.
2012-09-30 11:24:00 +01:00
Pedro Algarvio
3783d4bc1e Include the module changes for the previous commited test. 2012-09-30 11:13:12 +01:00
Pedro Algarvio
325902c169 Test to make sure we're outputting kwargs on the user.delete documentation. 2012-09-30 10:59:07 +01:00
Pedro Algarvio
905fb835cd Improve runtests.py logging and report output.
* All logging messages are now logged on a log file. If verbose is enabled, the log messages are also logged to the console.
 * The tests report now also let's us know if there were no glitches.
2012-09-30 10:40:06 +01:00
Pedro Algarvio
420bfe830b Mark destructive tests with the destructiveTest decorator. 2012-09-29 23:16:08 +01:00
Pedro Algarvio
0f7855e7fc Preserve environ when sudo'ing on Travis-CI 2012-09-29 22:34:09 +01:00
Pedro Algarvio
08503d10d2 Travis-CI should run the tests as root. 2012-09-29 22:21:16 +01:00
Thomas S Hatch
47221a4f98 Merge pull request #2135 from s0undt3ch/features/overall-tests-resume
Provide an overall tests report.
2012-09-29 13:52:21 -07:00
Pedro Algarvio
48b5e6a3c5 Travis should run the destructive tests. 2012-09-29 19:44:19 +01:00
Pedro Algarvio
42c375cbd9 Allow passing options to tests/runtests.py from python setup.py test. 2012-09-29 19:41:21 +01:00
Pedro Algarvio
e8766b7b8d Allow certain tests to marked as destructive.
* Some tests might be considered destructive, such as adding or removing users from the system. This change allows those tests to be skipped unless stated otherwise.

```python

from saltunittest import destructiveTest

class ATestCase(TestCase):

    @destructiveTest
    def test_some_destructive_code(self):
        """Some destructive code."""

```

On the console we get something like:
```
test_destructive (unit.config_test.ConfigTestCase) ... skipped 'Destructive tests are disabled'
```
2012-09-29 15:42:43 +01:00
Pedro Algarvio
ced9e7d91e Remove the tests added to explicitly fail. 2012-09-29 12:51:39 +01:00
Pedro Algarvio
6896fd0ab8 Allow disabling the tests report. 2012-09-29 12:48:50 +01:00
Pedro Algarvio
b8917071f6 Provide an overall tests report.
Previously we have to go through the scroll history to see which tests failed, which were skipped, etc. Now, besides test failures, errors and skips being reported like they always were, we also provide a nice overall report and the end.
2012-09-29 12:10:06 +01:00
Thomas S Hatch
600485b712 Merge pull request #2133 from koentje/develop
Fix Docstring reference to httpd in nginx module
2012-09-28 18:17:26 -07:00
Koen Wilde
3f94c5a97a Fix Docstring reference to httpd in nginx module
The Docstring of the signal function in the nginx module still referred to
'httpd' instead of 'nginx'.
2012-09-29 02:43:05 +02:00
Thomas S Hatch
f1dca86fd4 Fix some quotes 2012-09-28 17:40:30 -06:00
Thomas S Hatch
59e775ed8d remove unused skipif 2012-09-28 17:35:59 -06:00
Thomas S Hatch
838d471cbf pylint fix 2012-09-28 17:26:13 -06:00
Thomas S Hatch
184393ec84 Pylint updates for ca modules 2012-09-28 17:04:38 -06:00
Thomas S Hatch
e374ab4877 missed indent error 2012-09-28 13:43:44 -06:00
Thomas S Hatch
7494e259f1 Move watch modify into check_requisite 2012-09-28 13:41:45 -06:00
Thomas S Hatch
632d2ab041 Apparently modprobe -l is gone! So we need to do this a better way 2012-09-28 13:28:50 -06:00
Thomas S Hatch
52e3e34a0c Fix syntax error 2012-09-28 12:43:53 -06:00
Thomas S Hatch
1db57e3681 fix Arch os grain 2012-09-28 12:04:24 -06:00
Thomas S Hatch
38faf1a25c Merge pull request #2128 from s0undt3ch/issues/2068
Fix #2068
2012-09-28 10:00:57 -07:00
Pedro Algarvio
7f7b196f1e Include an invalid items test for state.template* functions. Refs #2068. 2012-09-28 17:56:13 +01:00
Pedro Algarvio
b28a80fab0 Minor whitespace formatting 'prettyfication'. 2012-09-28 17:44:35 +01:00
Pedro Algarvio
2211afa63a Properly render the high state loaded from templates. Fixes #2068.
Previously using `state.template` or `state.template_str` would not be checked/rendered into proper formatting resulting in some templates not being correctly executed. For example, the following template worked:
```
/tmp/issue-2068-template-str:
  virtualenv:
    - managed
    - no_site_packages: True
    - distribute: True

pep8-pip:
  pip:
    - installed
    - name: pep8
    - bin_env: /tmp/issue-2068-template-str
    - mirrors: http://testpypi.python.org/pypi
    - require:
      - virtualenv: /tmp/issue-2068-template-str
```
as opposed to the following which did not work:
```
/tmp/issue-2068-template-str:
  virtualenv.managed:
    - no_site_packages: True
    - distribute: True

pep8-pip:
  pip.installed:
    - name: pep8
    - bin_env: /tmp/issue-2068-template-str
    - mirrors: http://testpypi.python.org/pypi
    - require:
      - virtualenv: /tmp/issue-2068-template-str
```
The dotted names should be converted into lists for example, which was the problems with the two examples above.
2012-09-28 17:34:55 +01:00
Pedro Algarvio
677a08fe7d Update the test cases which better expose #2068. 2012-09-28 16:04:38 +01:00
Thomas S Hatch
fae2acfc2d Merge branch 'develop' of github.com:saltstack/salt into develop 2012-09-27 19:28:31 -06:00
Thomas S Hatch
818c2bafaa Fix #2125 2012-09-27 19:28:08 -06:00
Thomas S Hatch
33fde4f2c3 Merge pull request #2126 from FireHost/windows_freeze_docs
Add Windows frozen minion docs
2012-09-27 18:11:28 -07:00
Aaron Tygart
06c02ca6f4 Add Windows frozen minion docs 2012-09-27 19:49:10 -05:00
Pedro Algarvio
cc10ed1906 Add include and exclude test cases. Refs #2068. 2012-09-28 01:17:37 +01:00
Pedro Algarvio
c80ea695b1 Let's narrow any possible errors by reusing the same template contents. Refs #2068. 2012-09-28 00:22:24 +01:00