Commit Graph

863 Commits

Author SHA1 Message Date
Weilu Jia
64634b6349 Update psutil.pid_list to use psutil.pids 2015-05-15 14:25:03 -07:00
Weilu Jia
8a1da33ada Fix test cases by mocking psutil_compat 2015-05-15 14:11:12 -07:00
Weilu Jia
7d02ad4f06 Fix some of the mock names for the new API 2015-05-15 13:03:26 -07:00
Weilu Jia
93ee411fd5 Create compatability psutil.
psutil 3.0 drops 1.0 API, but we still support old psutil versions.
2015-05-15 13:03:25 -07:00
Justin Anderson
982f87316d Merge pull request #23781 from jfindlay/fix_locale_tests
fix unit test mock errors on arch
2015-05-15 13:40:07 -06:00
Justin Findlay
14c711eeb3 fix unit test mock errors on arch 2015-05-15 12:50:55 -06:00
Thomas S Hatch
348645ecd5 Merge pull request #23736 from jfindlay/fix_pip
always load pip execution module
2015-05-15 12:10:16 -06:00
Jayesh Kariya
19939cfa98 adding svn unit test case 2015-05-15 17:39:21 +05:30
Justin Findlay
b8867a8c23 update pip tests 2015-05-15 00:15:26 -06:00
Justin Findlay
e480f13688 Merge pull request #23675 from basepi/merge-forward-2015.5
[2015.5] Merge forward from 2014.7 to 2015.5
2015-05-13 12:35:54 -06:00
Colton Myers
acdd3fc6bd Fix lint 2015-05-13 11:47:43 -06:00
Jayesh Kariya
6e05148962 adding solr unit test case 2015-05-13 17:14:53 +05:30
Jayesh Kariya
0936e1d386 made changes to test_interfaces function. 2015-05-13 11:09:40 +05:30
Colton Myers
680e88f058 Merge remote-tracking branch 'upstream/2014.7' into merge-forward-2015.5
Conflicts:
    salt/modules/ebuild.py
    tests/unit/modules/grains_test.py
2015-05-12 16:06:36 -06:00
Nicole Thomas
cbe32828ef Merge pull request #23580 from jayeshka/smf-unit-test
adding smf unit test case
2015-05-12 10:29:58 -06:00
Jayesh Kariya
4f9719157b adding smf unit test case 2015-05-12 18:06:49 +05:30
Christophe Drevet-Droguet
ebff9df5b2 fix pylint errors 2015-05-11 21:21:10 +02:00
Justin Findlay
e9b94d36d3 additional mock for rh_ip_test test_build_bond
Fixes #23473.
2015-05-11 12:31:24 -06:00
salt_build
b3f284c517 Fixed tests 2015-05-11 15:49:19 +00:00
Jayesh Kariya
3ad5314ee0 adding service unit test case 2015-05-11 18:01:10 +05:30
Christophe Drevet-Droguet
c4954046ad unit tests for grains.append module function
- separate test functions for every return
- add tests for nested lists
- add test for appending to an element of a list (fails silently)
2015-05-10 17:27:32 +02:00
Christophe Drevet-Droguet
0c9a32326c use MagickMock 2015-05-09 18:34:02 +02:00
Christophe Drevet-Droguet
c838a22377 unit tests for grains.append module function 2015-05-08 21:01:36 +02:00
Justin Findlay
604857811e Merge pull request #23495 from jayeshka/seed-unit-test
adding seed unit test case
2015-05-08 11:30:38 -06:00
Jayesh Kariya
1fb48a31a8 adding sensors unit test case 2015-05-08 16:11:20 +05:30
Jayesh Kariya
3f134bc573 adding seed unit test case 2015-05-08 16:10:00 +05:30
Justin Findlay
865127844a Merge pull request #23450 from jayeshka/scsi-unit-test
adding scsi unit test case
2015-05-07 13:00:28 -06:00
Jayesh Kariya
e7269ff29b adding scsi unit test case 2015-05-07 15:44:39 +05:30
Jayesh Kariya
85786bfe7f adding s3 unit test case 2015-05-07 15:43:32 +05:30
Jayesh Kariya
a4dd836125 adding rsync unit test case 2015-05-06 17:31:04 +05:30
Jayesh Kariya
f9da6db459 adding riak unit test case 2015-05-05 15:39:52 +05:30
Jayesh Kariya
636c654205 adding rh_ip unit test case 2015-04-29 17:29:37 +05:30
Kevin Boulain
a9777c6167 fix tests for the parted module 2015-04-28 13:22:54 -06:00
Justin Findlay
3df2a8e88d Merge pull request #23128 from jayeshka/rest_service-unit-test
adding rest_service unit test case
2015-04-28 08:16:54 -06:00
Jayesh Kariya
975ea49808 adding rest_service unit test case 2015-04-28 18:06:55 +05:30
Jayesh Kariya
4b7be9ffb8 adding rest_package unit test case 2015-04-28 18:04:43 +05:30
Jayesh Kariya
a96e914a08 adding rbenv unit test case 2015-04-27 17:26:24 +05:30
Jayesh Kariya
49894795ad adding raet_publish unit test case 2015-04-24 17:30:24 +05:30
Jayesh Kariya
b9188aea6a adding qemu_img unit test case 2015-04-23 18:13:27 +05:30
Jayesh Kariya
5a5c7ef415 adding powerpath unit test case 2015-04-22 17:38:44 +05:30
Felix Dreissig
468d392074 Adjust tests to the new return value of modules.localemod.gen_locale() 2015-04-21 19:11:33 -06:00
rallytime
1be53aaf7d Remove Python 2.6 incompatible section of test
A portion of this test seems to be only testing the differences
between the way Python is using the help string between 2.6 and
2.7. This section doesn't really seem to be testing any salt code.
2015-04-21 12:25:31 -06:00
rallytime
3ce1cef592 Fix Python 2.6 syntax error in unit.modules.state_test.py 2015-04-21 11:01:33 -06:00
Justin Findlay
8b2e60127d Merge pull request #22893 from s0undt3ch/hotfix/lint-2015.2
[2015.2] Lint Fixes
2015-04-21 09:24:49 -06:00
Pedro Algarvio
3ae68c4f7b Minor cosmetic changes in order not to disable the PEP8 PyLint code all together 2015-04-21 15:03:47 +01:00
Jayesh Kariya
2cfd1a4395 adding postfix unit test case 2015-04-21 17:36:07 +05:30
Thomas S Hatch
d5d1ddc8d6 Merge pull request #22705 from jayeshka/win_dns_client_unit_test
adding win_dns_client test case and used @patch for mocking.
2015-04-20 09:50:22 -06:00
Justin Findlay
3651d21ad4 Merge pull request #22743 from jayeshka/netscaler-unit-test
adding netscaler unit test case
2015-04-20 09:25:17 -06:00
Justin Findlay
1c288dc146 Merge pull request #22505 from jayeshka/sysmod-unit-test
adding sysmod unit test case.
2015-04-17 15:03:39 -06:00
Rahul Handay
33da15b07b Adding pkg_resouce.py unit tests 2015-04-17 17:52:13 +05:30
Jayesh Kariya
5905b03ed8 resolved errors. 2015-04-17 12:34:26 +05:30
Jayesh Kariya
0ef4df8e0f adding netscaler unit test case 2015-04-16 17:21:51 +05:30
Justin Findlay
3d2221ded4 fix test_sls_id unit test 2015-04-15 12:53:50 -06:00
Thomas S Hatch
3f800a7fd2 Merge pull request #22639 from jayeshka/win_network-new-unit-test
adding win_network unit test case
2015-04-15 09:55:54 -06:00
Jayesh Kariya
f56c24f909 adding win_dns_client test case and used @patch for mocking. 2015-04-15 18:42:38 +05:30
Jayesh Kariya
63a1a58e32 used @patch for mocking. 2015-04-15 13:16:03 +05:30
Rahul Handay
83aa84c2a7 Adding state.py unit test 2015-04-15 13:01:36 +05:30
Jayesh Kariya
4c2a3f01b5 used @patch for mocking. 2015-04-15 12:10:54 +05:30
Nicole Thomas
6a1b02f58b Revert "adding win_dns_client unit test case" 2015-04-14 12:22:58 -06:00
Justin Findlay
0b65822264 Merge pull request #22647 from jayeshka/pecl-unit-test
adding pecl unit test case.
2015-04-14 09:09:11 -06:00
Jayesh Kariya
1d423feeba adding pecl unit test case. 2015-04-14 17:58:15 +05:30
Jayesh Kariya
aa3a793d8f removed Mocknetwork call 2015-04-14 17:42:15 +05:30
Jayesh Kariya
6abe3fa0f4 adding win_dns_client unit test case 2015-04-14 15:55:11 +05:30
Jayesh Kariya
1bb4251aa1 adding win_network unit test case 2015-04-14 15:49:20 +05:30
Nicole Thomas
0ab8af8802 Merge pull request #22593 from rallytime/fix_windows_unit_tests
Remove Mockwinapi mocking class from win_dns_client_test
2015-04-13 10:16:01 -06:00
Nicole Thomas
89d53bc063 Revert "adding win_network unit test case." 2015-04-13 09:56:05 -06:00
rallytime
b5d8c21c85 Remove Mockwinapi mocking class from win_dns_client_test
The tests run on the same process, the Mockwinapi class is squashing
salt.utils and causing problems in the test suite.

Refs #22582
2015-04-13 09:53:48 -06:00
Justin Findlay
bdfed667c9 Merge pull request #22579 from rahulhan/xapi_unit_tests
Adding xapi.py unit test cases
2015-04-13 09:13:07 -06:00
Justin Findlay
18d2db5770 Merge pull request #22585 from rahulhan/pagerduty_unit_test
Adding pagerduty.py unit tests
2015-04-13 08:21:20 -06:00
Justin Findlay
c6902f9aa4 Merge pull request #22583 from jayeshka/win_network-unit-test
adding win_network unit test case.
2015-04-13 08:18:44 -06:00
Rahul Handay
d244da2c02 Adding pagerduty.py unit tests 2015-04-13 18:21:17 +05:30
Jayesh Kariya
63bf71edec adding win_network unit test case. 2015-04-13 18:08:46 +05:30
Jayesh Kariya
5bd5d8810f adding win_dns_client unit test case. 2015-04-13 18:06:45 +05:30
Rahul Handay
3048513cb4 Adding xapi.py unit test cases 2015-04-13 17:38:19 +05:30
Thomas S Hatch
f9df9fda79 Merge pull request #22529 from jayeshka/gpg-unit-test
adding gpg unit test case.
2015-04-10 09:54:04 -06:00
Nicole Thomas
f8cae2ccd9 Merge pull request #22525 from rahulhan/oracle_unit_test
Adding oracle.py unit test cases
2015-04-10 09:12:34 -06:00
Jayesh Kariya
fd5ee79375 resolved error. 2015-04-10 18:50:15 +05:30
Jayesh Kariya
5a53ff1fcd adding win_disk unit test case. 2015-04-10 18:01:22 +05:30
Jayesh Kariya
92040b24bd adding gpg unit test case. 2015-04-10 18:00:08 +05:30
Rahul Handay
a157b5e32a Adding oracle.py unit test cases 2015-04-10 16:10:38 +05:30
Pedro Algarvio
0940548d58 The decorator looks for 2 binaries. We always want the first. 2015-04-10 00:26:15 +01:00
Justin Findlay
b232a73db7 Merge pull request #22504 from jayeshka/serverdensity_device-unit-test
adding serverdensity_device unit test case.
2015-04-09 09:06:25 -06:00
Jayesh Kariya
e86334f90e adding sysmod unit test case. 2015-04-09 17:32:17 +05:30
Jayesh Kariya
8afff0f337 adding serverdensity_device unit test case. 2015-04-09 17:29:48 +05:30
Rahul Handay
0b28284b7d Adding win_service.py unit test cases 2015-04-09 12:31:51 +05:30
Rahul Handay
ea5a039858 Adding win_repo.py unit test cases 2015-04-08 14:07:03 +05:30
Justin Findlay
d640823767 Merge pull request #22407 from jayeshka/win_servermanager-unit-test
adding win_servermanager unit test case.
2015-04-07 08:40:33 -06:00
Mike Place
ea97a9e600 Merge pull request #22410 from jayeshka/smtp-unit-test
adding smtp unit test case.
2015-04-07 08:25:25 -06:00
Jayesh Kariya
605d4f3ea9 adding smtp unit test case. 2015-04-07 17:39:32 +05:30
Jayesh Kariya
a0cd8189de adding win_servermanager unit test case. 2015-04-07 15:44:24 +05:30
Rahul Handay
7462556283 Adding win_path.py unit test cases 2015-04-07 14:16:45 +05:30
Justin Findlay
54c83e3fe7 Merge pull request #22380 from jayeshka/win_ip-unit-test
adding win_ip unit test case.
2015-04-06 07:39:32 -06:00
Jayesh Kariya
6c7ed37c87 adding win_ip unit test case. 2015-04-06 15:35:01 +05:30
Rahul Handay
37731bbfdf Adding win_system unit test cases 2015-04-06 14:16:38 +05:30
Nicole Thomas
cd69833731 Merge pull request #22318 from jayeshka/twilio_notify-unit-test
adding twilio_notify unit test case.
2015-04-03 06:30:13 -06:00
Rahul Handay
a572f3cadc Adding nova.py unit tests 2015-04-03 14:40:46 +05:30
Jayesh Kariya
57925820ed adding twilio_notify unit test case. 2015-04-03 14:29:49 +05:30
Colton Myers
065f573bad Merge remote-tracking branch 'upstream/2014.7' into merge-forward-2015.2
Conflicts:
    salt/master.py
2015-03-17 13:35:32 -06:00
Alexander Schwartz
5f11f7b74c added tests to ensure commands are created accordingly (without additional single quotes) 2015-03-16 14:49:09 -06:00
Colton Myers
bdfdd3f232 Merge remote-tracking branch 'upstream/2014.7' into merge-forward-2015.2
Conflicts:
	salt/modules/virt.py
2015-03-11 16:09:57 -06:00