Pedro Algarvio
c8f1e457d7
Allow tests.integration.run_tests
to execute more than one TestCase
instance.
2013-10-03 16:09:57 +01:00
Pedro Algarvio
58b5a85b58
Some sleeping between commands.
2013-10-03 15:08:50 +01:00
Pedro Algarvio
67abab7b21
Set the VM name.
2013-10-03 13:36:08 +01:00
Pedro Algarvio
36e889b8ed
Support downloading remote logs in Jenkins.
2013-10-03 12:52:05 +01:00
Pedro Algarvio
cf7a0b6205
Don't trigger state events on pydsl unit tests.
2013-10-03 00:59:03 +01:00
Henrik Holmboe
baf46300fa
Remove unused import
...
We use ElementTree from salt._compat.
2013-10-02 16:17:19 +02:00
Henrik Holmboe
eea799c8c3
Specify reason for Python 2.7 requirement
...
While ElementTree is in Python 2.6, we need the expanded support
for xpath which was introduced in Python 2.7.
As discussed in #7264 , it might be possible to install
`elementtree-1.3a3-20070912` for Python 2.6, but this is yet untested.
2013-09-30 10:40:13 +02:00
Pedro Algarvio
516e304b96
Let's try if mocking fixes the intermittent failures of the unit test.
2013-09-28 23:50:30 +01:00
Pedro Algarvio
707385c1c1
Use the salt testing requires_salt_modules
decorator.
2013-09-28 18:57:38 +01:00
Pedro Algarvio
034d8f3a61
Skip tests if libvirt
is not importable.
2013-09-28 18:55:15 +01:00
Pedro Algarvio
e194a9fabe
Merge pull request #7494 from s0undt3ch/issues/7409-no-new-line-ssh-keys
...
Make sure there's a line break before writing new key
2013-09-28 03:07:43 -07:00
Pedro Algarvio
ec07e5ae49
Adapt test cases to fixed behaviour.
2013-09-28 00:00:59 +01:00
Pedro Algarvio
9b3d504e03
Fix unit tests regarding salt.utils.find._parse_interval
2013-09-28 00:00:59 +01:00
Pedro Algarvio
e7ddf159a1
Make sure there's a line break before writing new key. Fixes #7409 .
2013-09-28 00:00:26 +01:00
Pedro Algarvio
2f3ed58541
Add test case which verifies the occurrence of #7409 .
2013-09-28 00:00:25 +01:00
Thomas S Hatch
bd846ffdbb
Merge pull request #7264 from holmboe/esxi-init
...
Introduce disk profiles and enable virt.init on an ESX host
2013-09-27 08:02:11 -07:00
Henrik Holmboe
5324d6a7eb
Two integration tests for virt.get_profiles
...
This will test the default NIC and disk profiles for KVM and ESX.
2013-09-27 01:41:52 +02:00
Henrik Holmboe
3149499765
Add unit tests
...
In addition to custom ESX profile, test:
- default KVM profile
- default ESX profile
- custom KVM profile
2013-09-27 01:39:07 +02:00
Henrik Holmboe
7ec34af486
Refactor profile loading to use YAML
...
This is done in order to more easily test configuration syntax errors,
as the the minion configuration file uses YAML.
2013-09-27 01:11:28 +02:00
Henrik Holmboe
008a1b7fc9
Compatibility import for ElementTree
2013-09-27 00:58:17 +02:00
Henrik Holmboe
a8d258cefc
Use StringIO from salt._compat
2013-09-27 00:45:27 +02:00
Henrik Holmboe
da3799ba19
Add unit tests for a few functions in modules.virt
...
For:
* modules.virt._disk_profile()
* modules.virt._nic_profile()
* modules.virt._gen_xml()
2013-09-26 17:21:37 +02:00
Pedro Algarvio
a9d5ac5a3e
Add unit tests to salt.utils.format_call()
.
2013-09-24 22:08:08 +01:00
Pedro Algarvio
4a18003231
Error signatures changed, lets update test cases.
2013-09-24 22:08:08 +01:00
Pedro Algarvio
83d23d9be7
Use salt.utils.is_windows()
.
2013-09-24 22:08:08 +01:00
Pedro Algarvio
bacd2264ee
State calls now fail if non-supported arguments are used. Fixes #6962 .
...
* Removed `format_call` from `salt.state.State` since it was almost a one to one copy of `salt.utils.format_call`.
* The `format_call` in `salt.utils` was modified to accept initial return data(to provide the functionality from the removed `State.format_call`.
* While the function arguments are being queried/matched, those used are removed from a copy of the passed data. Once finished, any remaining keyword arguments which do not match those allowed on the `expected_extra_kws` keyword argument to `format_call` will raise a `SaltInvocationError`.
This will prevent any future bogus bug searching like what happened on #6912 because the wrong state function argument was being passed.
2013-09-24 22:08:07 +01:00
Pedro Algarvio
7ae519c34e
Fix unit.states.rvm_test.TestRvmState.test_installed
2013-09-21 10:42:34 +01:00
Seth House
ea657eed48
Added unit and integration tests for the file.replace functions
2013-09-20 17:01:57 -06:00
Thomas S Hatch
1b261571ce
Merge pull request #7338 from rca/template_error_context
...
Template error context
2013-09-19 13:09:04 -07:00
Pedro Algarvio
f75c59ecbf
Properly handle shell unit tests which check versions.
2013-09-19 18:50:51 +01:00
Pedro Algarvio
012b8100bb
Properly handle git describe
with RC's and proper version comparison.
2013-09-19 18:42:37 +01:00
Pedro Algarvio
05be7064d5
0.17.0
has been tagged. The 0.16.x
requires_network
is no longer necessary.
2013-09-19 11:16:37 +01:00
Roberto Aguilar
ef968e7c64
Added tests for error template context.
2013-09-19 01:02:05 -07:00
Colton Myers
6aee81133a
Merge pull request #7303 from dlanderson/mine_delete_issue_7226
...
Add mine.delete to remove specific mine functions.
2013-09-18 16:04:04 -07:00
Pedro Algarvio
124e067733
Revert "Add pylint checker for file encoding"
...
This reverts commit 126c80397a
.
2013-09-18 22:25:42 +01:00
Pedro Algarvio
620f9189b2
Revert "Recognize UTF-8 BOM and some other cases"
...
This reverts commit 25d0315626
.
2013-09-18 22:25:33 +01:00
Pedro Algarvio
abf3c4d2f7
Revert "Rename the pylint plugin module."
...
This reverts commit 79fb639ef6
.
2013-09-18 22:25:07 +01:00
Pedro Algarvio
3b59028e49
Revert "Rename the plugin."
...
This reverts commit 5dc0bb7b42
.
2013-09-18 22:24:14 +01:00
David Anderson
39690b4431
PEP8 fixes for integration.mine.MineTest
2013-09-18 15:22:46 -06:00
David Anderson
3f6de80e27
Add test for mine.delete module
2013-09-18 15:07:04 -06:00
David Anderson
8137097c9e
Add test for mine.flush module
2013-09-18 14:49:12 -06:00
Pedro Algarvio
5dc0bb7b42
Rename the plugin.
2013-09-18 18:09:33 +01:00
Pedro Algarvio
79fb639ef6
Rename the pylint plugin module.
2013-09-18 18:06:16 +01:00
Henrik Holmboe
25d0315626
Recognize UTF-8 BOM and some other cases
2013-09-18 17:19:38 +02:00
Henrik Holmboe
126c80397a
Add pylint checker for file encoding
...
Discussed in #7294 .
2013-09-18 15:48:04 +02:00
Pedro Algarvio
e18ba0758b
Don't include authorship in generated documentation, the Sphinx way.
2013-09-16 17:24:00 +01:00
David Anderson
583d0b8a3e
Add with_retcode options for ShellCase functions
2013-09-13 10:51:25 -06:00
David Anderson
1d7309970f
Add with_retcode option to ShellCase.run_call(). Also adds a test case for https://github.com/saltstack/salt/issues/6973 - expect a non-zero exit code when running "salt-call --retcode-passthrough state.highstate"
2013-09-13 10:12:11 -06:00
Pedro Algarvio
a8e70d527e
List pip from the right place.
2013-09-11 10:54:43 +01:00
Thomas S Hatch
e644de7e76
Merge pull request #7164 from dlanderson/fix_issue_7154
...
Fix #7154 - cmd.* should fail when cwd does not exist
2013-09-10 21:11:30 -07:00