regilero
3db62ebc3f
Add file.blockreplace module and state. With unit tests.
2013-10-23 16:36:59 +02:00
Thomas S Hatch
ca77c58b41
Merge pull request #7942 from kretz/rbenv-support-in-gem
...
Support gem execution with rbenv ruby.
2013-10-18 09:59:55 -07:00
Martin Kretz
2e1db23b15
Added testcases to suppor rbevn in gem.
2013-10-18 13:44:45 +02:00
Thomas S Hatch
fef1647e97
Merge pull request #7889 from holmboe/virt-tmpl-refactor
...
Templating refactor in virt.py
2013-10-17 11:09:34 -07:00
Pedro Algarvio
9181ac81b9
Update the alternatives mocked unit tests to the new python_shell
argument to cmd
.
2013-10-16 23:43:27 +01:00
Henrik Holmboe
aa1bfc8947
Use same unit as input
2013-10-16 21:16:48 +02:00
Henrik Holmboe
f5fa6afe83
Add another unit test for disk controller
2013-10-16 21:10:59 +02:00
Henrik Holmboe
4460ed4d69
Add unit test for disk controller
2013-10-16 21:06:26 +02:00
Henrik Holmboe
fb569991b5
Add unit test for boot device
2013-10-16 20:53:37 +02:00
Henrik Holmboe
479050b5ee
Fix logic regarding telnet console and port
...
Provide a (temporary) default. Previously it was possible to skip
specifying telnet_port and it would result in a incomplete XML.
2013-10-16 17:20:47 +02:00
Henrik Holmboe
9add77a02a
Add unit test for tcp/telnet console
2013-10-16 17:04:11 +02:00
Henrik Holmboe
e29e0408b1
Make unit tests verify the disk entries in virt._gen_xml()
2013-10-16 16:05:09 +02:00
Henrik Holmboe
4345f3a126
assertEqual gives relevant information on fail
2013-10-16 10:18:03 +02:00
Henrik Holmboe
739a644a42
Use assertEqual, less to type
2013-10-16 10:14:50 +02:00
Henrik Holmboe
4e194c2782
Whitespace.
2013-10-16 10:08:28 +02:00
Henrik Holmboe
d4164d2eb7
Add unit test for virt._gen_vol_xml()
2013-10-16 09:58:37 +02:00
Luper Rouch
db8eef8f32
Fixed empty file case in modules.file.append()
...
Lines are simply inserted at the beginning of the file for empty files.
2013-10-07 16:31:42 +02:00
Luper Rouch
e5631f2671
Checking for newline at EOF in modules.file.append()
2013-10-07 16:17:25 +02:00
Pedro Algarvio
3c4f33a935
Adapt remaining test cases which relied on old versioning scheme.
2013-10-04 13:10:35 +01:00
Ajith Antony
b95a5d9fd0
Virt Template deploy, and serial xml tests
...
- Added virt templates to setup
- moved NIC xml string template to file
- added tests for serial xml
2013-10-03 13:21:34 -05:00
Ajith Antony
c7ae3ba592
Nic profile changes
...
- Implement 3 styles of profile definition
- Support both config.options and config.get
- Replaces NIC substituions with template
- xml unit tests fixed up
2013-10-03 12:06:19 -05:00
Seth House
a4619a9c1c
Actually run the file.replace unit tests...
2013-10-03 09:28:32 -06: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
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
Seth House
ea657eed48
Added unit and integration tests for the file.replace functions
2013-09-20 17:01:57 -06:00
Pedro Algarvio
e18ba0758b
Don't include authorship in generated documentation, the Sphinx way.
2013-09-16 17:24:00 +01:00
Pedro Algarvio
70937172ce
Adapt mocked tests to the changes in #6833
2013-09-10 11:13:16 +01:00
Pedro Algarvio
6e694791fb
Allow tests to be properly skipped if mock
is not installed.
2013-08-26 17:05:44 +00:00
Pedro Algarvio
d33415c73a
Adapted unit.modules.rvm_test
to use salttesting.mock
2013-08-26 13:00:10 +00:00
Pedro Algarvio
220aa48e24
Adapted unit.modules.poptgres_test
to use salttesting.mock
2013-08-26 13:00:10 +00:00
Pedro Algarvio
6bc17f0c1b
Adapted unit.modules.pip_test
to use salttesting.mock
2013-08-26 13:00:10 +00:00
Pedro Algarvio
64d20afec9
Adapted unit.modules.gem_test
to use salttesting.mock
2013-08-26 13:00:10 +00:00
Pedro Algarvio
2acd67bc59
Adapted unit.modules.archive_test
to use salttesting.mock
2013-08-26 13:00:07 +00:00
Pedro Algarvio
8646fcb012
Adapted unit.modules.win_status_test
to use salttesting.mock
2013-08-26 12:59:15 +00:00
Pedro Algarvio
fe0d7dc048
Adapted unit.modules.alternatives_test
to use salttesting.mock
2013-08-26 12:59:12 +00:00
Pedro Algarvio
371f08a959
Adapted unit.modules.virtualenv
to use salttesting.mock
2013-08-26 12:58:04 +00:00
Pedro Algarvio
c78738b87a
Adapt test results to the expected output.
2013-08-22 19:02:32 +01:00
Pedro Algarvio
bd002f97da
Revert "By enforcing absolute imports, there's no need for module name aliases."
...
This reverts commit a1a2b49a72
.
2013-08-20 23:44:05 +01:00
Pedro Algarvio
9353dcafd3
Revert "salt.modules.cmdmod
renamed to salt.modules.cmd
while enforcing absolute imports."
...
This reverts commit 3fa341280b
.
2013-08-20 23:44:03 +01:00
Pedro Algarvio
3fa341280b
salt.modules.cmdmod
renamed to salt.modules.cmd
while enforcing absolute imports.
2013-08-19 13:45:56 +01:00
Pedro Algarvio
a1a2b49a72
By enforcing absolute imports, there's no need for module name aliases.
2013-08-19 13:23:46 +01:00
Pedro Algarvio
7b3ba67bc7
Fix the test_install_pre_argument_in_resulting_command
test case.
...
It now checks if the `--pre` output is present in versions >= 1.4 or not in versions < 1.4
2013-08-09 12:14:56 +01:00
Joseph Hall
d539e6e8ff
Merge pull request #6433 from s0undt3ch/sprint/mock-salt.modules.archive
...
Complete the work started on the sprint for `salt.modules.archive`
2013-07-30 07:21:24 -07:00
Pedro Algarvio
fe1736bbcd
Fix the mocked test for archive.unrar
.
2013-07-30 06:14:13 +01:00