Commit Graph

756 Commits

Author SHA1 Message Date
Omer Katz
2514d3824b Addressing review from @ryan-lane. exists will now raise a SaltInvocationError when arguments are not specified. 2014-10-02 14:26:39 +03:00
Omer Katz
1233e9e2e6 Added the ability to check for existence of subnets by name or tags. 2014-10-02 14:26:39 +03:00
Omer Katz
ab950936e1 Verified that when providing no filters the vpc_exists method returns false. 2014-10-02 14:26:39 +03:00
Omer Katz
3c03cefb3a Added support for filtering vpcs by name or tags. 2014-10-02 14:26:39 +03:00
Omer Katz
1bfff3a573 Rename test names. 2014-10-02 14:26:39 +03:00
Omer Katz
1fc37e22b6 DHCP tests will now be skipped correctly. 2014-10-02 14:26:39 +03:00
Omer Katz
b3f3b96ff7 Fixed test name. 2014-10-02 14:26:39 +03:00
Omer Katz
e0200ccd56 Skip DHCP tests for now. 2014-10-02 14:26:39 +03:00
Omer Katz
dbadd0b474 Added the ability to replace routes. Fixed failing tests. 2014-10-02 14:26:38 +03:00
Omer Katz
98e669e2f1 Added the ability to delete routes. 2014-10-02 14:26:38 +03:00
Omer Katz
ff48e4aebf Added the ability to create routes. 2014-10-02 14:26:38 +03:00
Omer Katz
4110fb06eb Added the ability to associate route tables. 2014-10-02 14:26:38 +03:00
Omer Katz
40230406fb Added the ability to disassociate a route table. 2014-10-02 14:26:38 +03:00
Omer Katz
dc377b9ece Added the ability to disassociate network acl. 2014-10-02 14:26:38 +03:00
Omer Katz
4e5d07e926 Added the ability to check for existence of route tables. 2014-10-02 14:26:38 +03:00
Omer Katz
312fa78c31 Fixed route table tests. 2014-10-02 14:26:38 +03:00
Omer Katz
f3538b40d2 Added the ability to delete route tables. 2014-10-02 14:26:38 +03:00
Omer Katz
a8e9fcaa3e Added the ability to create route tables. 2014-10-02 14:26:38 +03:00
Omer Katz
5abbc62ccf Added the ability to associate a network acl to a subnet and to create it and associate it in one operation. 2014-10-02 14:26:38 +03:00
Omer Katz
69f7d7c3b1 Added the ability to tag network acls. 2014-10-02 14:26:38 +03:00
Omer Katz
8d48df06c7 Added the ability to create/delete/replace network acl entries. Tests will fail correctly since moto doesn't support faking network acls yet. 2014-10-02 14:26:38 +03:00
Omer Katz
a8c6288196 Added the ability to create/delete/check for existence of network acl. Tests will fail correctly since moto doesn't support faking network acls yet. 2014-10-02 14:26:38 +03:00
Omer Katz
97cd112fcf Refactoring the test module since it's getting bigger. 2014-10-02 14:26:37 +03:00
Omer Katz
b5aaa2b3e8 Added unit tests that verify that dhcp options creation and association reports success/failure correctly. 2014-10-02 14:26:37 +03:00
Omer Katz
0bae036a21 Added unit tests that verify that dhcp options existence reports success/failure correctly. 2014-10-02 14:26:37 +03:00
Omer Katz
f943fb9364 Fixed the subnet exists test. 2014-10-02 14:26:37 +03:00
Omer Katz
450a5a4570 Added unit tests that verify that subnet existence reports success/failure correctly. 2014-10-02 14:26:37 +03:00
Omer Katz
18e913a41f Added the ability to tag ec2 objects. 2014-10-02 14:26:37 +03:00
Omer Katz
888e2ce35e Fixed typo. 2014-10-02 14:26:37 +03:00
Omer Katz
fb9d1dbafe Verifyed that all ec2 objects can be named. 2014-10-02 14:26:37 +03:00
Omer Katz
8bbaf96f6e Added unit tests that verify that DHCP association reports success/failure correctly. 2014-10-02 14:26:37 +03:00
Omer Katz
2ed1957427 Added unit tests that verify that DHCP creation reports success/failure correctly. 2014-10-02 14:26:37 +03:00
Omer Katz
b202bcbe04 Allowed tagging a VPC with a name if required. 2014-10-02 14:26:37 +03:00
Omer Katz
86e484fac8 Fixed docstrings. 2014-10-02 14:26:37 +03:00
Omer Katz
e27d82dd3d Added unit tests that verify that subnet deletion reports success/failure correctly. 2014-10-02 14:26:37 +03:00
Omer Katz
f64b9d57b5 Fixed typo. 2014-10-02 14:26:37 +03:00
Omer Katz
869cfe580d Added unit tests that verify that vpc deletion reports success/failure correctly. 2014-10-02 14:26:37 +03:00
Omer Katz
4004f09cd0 Refactoring the test suite. 2014-10-02 14:26:36 +03:00
Omer Katz
e4f8340201 Added unit tests that verify that subnet creation reports success/failure correctly. 2014-10-02 14:26:36 +03:00
Omer Katz
78def8c70b Added unit tests that verify that vpc creation reports success/failure correctly. 2014-10-02 14:26:36 +03:00
Dave Rawks
9b761f378d More test coverage for salt.modules.parted
* Full coverage for "list_" method
2014-09-23 15:44:33 -07:00
Dave Rawks
a3707e2bab Simplify mock of cmd.run via setUp method
* reduced code duplication by handling a frequently used mock in setUp
method to testcase
2014-09-22 14:44:52 -07:00
Dave Rawks
8c0266486e Merge branch 'develop' of https://github.com/saltstack/salt into parted_tests 2014-09-22 11:35:41 -07:00
Dave Rawks
6e6bf0e643 First pass at adding unit tests to salt.modules.parted
Full coverage for __virtual__, probe, and part_list
2014-09-22 11:16:37 -07:00
rallytime
936a6bca5a Fix mdadm tests 2014-09-19 16:35:43 -06:00
Thomas S Hatch
d60804a709 lint fixes for #15695 2014-09-12 10:42:35 -06:00
Thomas S Hatch
5d27e77c92 Merge branch 'feature/postgres_schema' of https://github.com/novapost/salt into novapost-feature/postgres_schema 2014-09-12 10:39:40 -06:00
Thomas S Hatch
d6e3e01c6d Merge pull request #15392 from ihrwein/f/add-syslog-ng-modules
F/add syslog ng modules
2014-09-12 10:37:02 -06:00
Rodolphe Quiédeville
b4dcc992c5 - salt/modules/postgres.py: add functions to manipulate schemas
- salt/states/postgres_schema.py: new states for schemas
- tests/unit/modules/postgres_test.py: add tests on new functions
- tests/unit/states/postgres_test.py: add tests on new functions
2014-09-11 12:17:18 +02:00
rallytime
f7a00ce643 Fix mdadm tests 2014-09-09 07:07:23 -06:00
Dave Rawks
873ca1e0b1 Updated test to account for additional flag 2014-09-05 10:08:17 -07:00
Thomas S Hatch
e34e81f41b Merge branch '2014.7' into develop
Conflicts:
	salt/minion.py
2014-09-05 11:03:12 -06:00
Thomas S Hatch
70950a1543 Merge pull request #15510 from lyft/boto_elb_resolve_error_on_deregister_instances_call
deregister_instances and register_instances methods return True/False/None
2014-09-04 15:32:45 -06:00
Colin Johnson
754c01448e provide True, False and None returns on deregister_instances and register_instances methods 2014-09-04 05:53:52 +00:00
Colton Myers
c127b4bafe Bring boto module tests from develop to 2014.7 2014-09-03 15:22:17 -06:00
Cimarron Mittelsteadt
8326182e5e TST: Updated brew module unit test to patch the appropriate __salt__ functions for the updates to brew module 2014-09-02 11:12:01 -07:00
btibi
69b0deacf6 syslog_ng: add syslog-ng state and execution modules 2014-08-29 23:20:25 +02:00
Gavin Swanson
d972aeff55 Merge branch 'addCygwin' into develop 2014-08-23 15:56:32 -07:00
rallytime
2285a10a95 Use salt.utils.odict instead of python2.7 OrderedDict 2014-08-20 09:24:52 -06:00
Nicole Thomas
37420dfed3 Merge pull request #15012 from lyft/boto_vpc-boto_secgroup-resolve-unit-test-failures
Boto vpc boto secgroup resolve unit test failures
2014-08-19 13:05:14 -06:00
Colin Johnson
9e797d6664 skip if mock not found 2014-08-19 16:19:41 +00:00
Colin Johnson
72b9ebe304 move to LooseVersion for Boto version testing 2014-08-15 23:05:05 +00:00
Colin Johnson
c3a6f3d727 fix boto versions for boto_secgroup and boto_vpc 2014-08-15 22:57:44 +00:00
Colton Myers
932aa97e1f Merge branch '2014.7' into develop 2014-08-15 16:33:02 -06:00
Gavin Swanson
c8d19409f6 Add cygwin package installation
Currently only hadles adding packages. Does not remove packages. It is
setup to update packages any time it is run, but there is no independent
update functionality.
Curently no unit/integration testing is done. I haven't wrapped my head
around the way the mocking and stuff is done yet.
2014-08-15 14:13:22 -07:00
Colin Johnson
86bcea16ee resolve issue with boto < 2.4.0 GroupOrCIDR attributes 2014-08-15 18:58:26 +00:00
rallytime
e8fab3d28a Fix psutil version 2014-08-14 21:22:55 -06:00
rallytime
0683c704dd Move psutil version check 2014-08-14 21:20:25 -06:00
Colin Johnson
41c51b4044 resolve issue with Ubuntu 12.0.4 failures 2014-08-15 01:12:43 +00:00
rallytime
8dca2515ee Skip virtual_memory and swap_memory tests if psutil < 0.6.0 2014-08-14 16:16:38 -06:00
rallytime
f9e481e49d Add needs_daemon=False to run_tests 2014-08-12 16:57:34 -06:00
rallytime
d57fc99bca Move mock_ec2 decorator back to functions 2014-08-12 09:20:17 -06:00
rallytime
5fff2f9b3f Rename boto tests files to include '_test' at the end 2014-08-11 17:01:42 -06:00
Nicole Thomas
64ee26aa57 Merge pull request #14897 from rallytime/boto_test_fixes
Update imports and skipIfs on boto unit tests
2014-08-11 17:01:01 -06:00
Seth House
b5bf67fdd1 Merge branch 'copyediting' of https://github.com/hulu/salt into develop
Conflicts:
	salt/states/win_update.py
2014-08-11 18:23:44 -04:00
Pedro Algarvio
09acfae48e Bring the global variables more into their context 2014-08-11 22:25:21 +01:00
rallytime
cc5c3bc1ad Update imports and skipIfs on boto unit tests 2014-08-11 12:57:45 -06:00
Chris Rebert
7da0f0a8b6 fix "retreived" typos 2014-08-11 11:52:30 -07:00
Chris Rebert
177c168a21 Fix numerous typos found via Lintian
Thanks https://github.com/Debian/lintian/tree/master/data/spelling !
2014-08-11 10:46:43 -07:00
Thomas S Hatch
b166b0c7c1 Merge branch '2014.7' into develop 2014-08-08 15:48:01 -06:00
Pedro Algarvio
c9be462f00 Skip tests if real mock library is not available 2014-08-08 00:52:47 +01:00
Pedro Algarvio
a399e62ca2 Skip tests if real mock library is not available 2014-08-08 00:46:21 +01:00
Pedro Algarvio
97f1b00818 Skip tests if real mock library is not available 2014-08-08 00:46:21 +01:00
Pedro Algarvio
faf3157637 Skip tests if real mock library is not available 2014-08-08 00:46:21 +01:00
Thomas S Hatch
d6e3e31a22 lint fixes 2014-08-05 12:08:05 -06:00
Colin Johnson
d26b671b00 add vpc support in boto_secgroup execution module 2014-08-05 03:45:00 +00:00
Colin Johnson
8dd88066f7 boto_asg now support use of security group names in launch configs 2014-08-04 00:04:20 +00:00
Seth House
d7d8beabb8 Merge remote-tracking branch 'upstream/2014.7' into develop 2014-07-25 19:55:43 -06:00
Seth House
adabf74852 Added utils module for working with hash functions 2014-07-25 16:12:37 -06:00
Seth House
ac6c7d0d6d Added utils-style IP-check functions to the network module 2014-07-25 15:20:14 -06:00
Rob Messick
74cf92331b add optional pre_releases argument to gem.install 2014-07-24 17:26:27 -07:00
Colin Johnson
c8e8bf1577 LYFT-14491 - unit tests for rule modification 2014-07-23 22:59:38 +00:00
rallytime
a3da60def4 Remove unnecessary print statement 2014-07-22 12:16:39 -06:00
rallytime
81e06fa252 Removed deprecated functions in salt/modules/ps.py 2014-07-16 12:49:45 -06:00
rallytime
1c3737a883 Remove remaining references and tests to no_site_packages 2014-07-16 06:00:08 -06:00
rallytime
4d329296b0 Remove unused import 2014-07-15 18:15:58 -06:00
rallytime
534f3df900 Remove test for no_site_packages deprecation 2014-07-15 17:28:40 -06:00
Leonids Maslovs
6c3973ec05 WIP 13793 Unit tests fixed 2014-07-15 13:19:07 +03:00
Khris Richardson
1acd82f3f1 add sphinx spelling extension. enforce en_us 2014-07-13 13:43:33 -05:00
Pedro Algarvio
7862600683 Remove syslog-ng tests. Refs #14163 2014-07-13 00:09:45 +01:00
btibi
851ce0fde4 Add syslog_ng execution module. 2014-07-09 22:42:36 +02:00
btibi
9eeed00382 ps: add partial psutil 2.0 compatibility 2014-07-09 19:54:25 +02:00
rallytime
d5c2a92d24 Fix typo in email from bad copy-paste 2014-07-07 16:12:11 -06:00
Andrew Hammond
1c6b95b4dc psql should never prompt for a password
No matter if we have been given a password or not, it never makes sense
for psql to interactively prompt for a password. It's better to fail
immediately than to hang because psql is waiting for input that will
never happen.
2014-06-13 17:40:11 -07:00
Pedro Algarvio
4d7ca91424 Remove unnecessary ©️ and :license: from file headers 2014-05-26 19:26:15 +01:00
David Czarnecki
b8df9af0ff Fix rvm module test for adding cwd argument 2014-05-23 16:38:04 -04:00
Joseph Hall
a0fae7c349 Cleanup whitespace issues for pylint 2014-05-21 19:31:46 -06:00
David Boucha
9dc182a2f4 fix codeauthor misspellings 2014-05-21 18:59:02 -06:00
Erik Johnson
512adb3136 Add test for shadow.gen_password
This addresses some breakage in this function. For more info, see
https://github.com/saltstack/salt/pull/12941.
2014-05-21 18:37:07 -05:00
Mike Place
888662692f Pylint zcbuildout
I see no evidence of this argument in use. Removed and modified test.

Closes #9556
2014-05-21 10:11:25 -06:00
Pedro Algarvio
5a8575dbb9 The helper method is now released 2014-05-20 10:53:47 +01:00
rallytime
46f90298fb Pylint fixes 2014-05-15 20:05:08 -06:00
rallytime
c9623c7cc2 Unit tests for aliases module 2014-05-15 16:51:44 -06:00
Ted Strzalkowski
71983ab581 another pylint fix 2014-05-11 19:06:09 -07:00
Ted Strzalkowski
2f417e1250 pylint fix 2014-05-11 18:57:43 -07:00
Ted Strzalkowski
35a1955ea8 Added unit tests for refactored mdadm module.
- test that mdadm.create returns the proper cmd.run inputs
- test that test_mode=True does not call cmd.run
2014-05-11 18:46:22 -07:00
Chris Rebert
45981a56f9 lots of copyediting 2014-04-30 12:06:27 -07:00
Pedro Algarvio
7a5604fddd Bump deprecations to Lithium 2014-04-24 10:15:31 +01:00
Thomas S Hatch
05721efb0b Merge pull request #12115 from cachedout/test_fix
Fix stacktrace
2014-04-18 11:28:38 -06:00
Mike Place
205a3ac9c4 Grrrr 2014-04-18 11:25:15 -06:00
Thomas S Hatch
b469b07a16 Merge pull request #12114 from cachedout/test_fix
Disable unreliable test.
2014-04-18 10:57:11 -06:00
Mike Place
cb018eced0 Disable unreliable test. 2014-04-18 10:52:09 -06:00
Mathieu Le Marec - Pasquet
de66244e65 cron: fix test 2014-04-18 14:50:50 +02:00
Pedro Algarvio
ac4c042a55 Fix E8251 unexpected spaces around keyword / parameter equals 2014-04-15 09:51:16 +01:00
Nicole Thomas
6eec78fe46 Allow numerical user/group id's without looking up their existence 2014-04-03 13:02:10 -06:00
Nicole Thomas
3f51dde820 Error checking for if numerical group or user exists 2014-04-02 13:35:58 -06:00
Nicole Thomas
2edbc465f5 Allow file state to accept numerical ids 2014-04-02 11:54:42 -06:00
Pedro Algarvio
94f05e62fa Allow standalone test execution 2014-03-31 02:58:15 +01:00
Pedro Algarvio
f319ae5384 Allow standalone test execution 2014-03-31 02:57:34 +01:00
Pedro Algarvio
4208441175 Allow standalone test execution 2014-03-31 02:57:04 +01:00
Pedro Algarvio
328f3408b7 Allow standalone test execution 2014-03-31 02:56:33 +01:00
Pedro Algarvio
c010c443c5 Allow standalone test execution 2014-03-31 02:55:51 +01:00
Pedro Algarvio
25b8a60452 Allow standalone test execution 2014-03-31 02:54:37 +01:00
Pedro Algarvio
03f66d6874 Allow standalone execution 2014-03-31 02:42:36 +01:00
rallytime
27985060e2 Integration tests started for darwin_sysctl module 2014-03-25 13:52:54 -06:00
rallytime
334021d4a6 Removed unused variable 2014-03-25 11:21:47 -06:00
rallytime
b17164cfe8 More darwin_sysctl tests 2014-03-25 11:18:04 -06:00
rallytime
f192e8c202 Pylint fix 2014-03-25 08:26:40 -06:00
rallytime
81d29874ac Empty bottom line - pylint! 2014-03-24 13:06:09 -06:00
rallytime
ce52e33979 pylint 2014-03-24 13:04:35 -06:00
rallytime
1da1f32040 more darwin_sysctl module unit tests 2014-03-24 12:59:12 -06:00
rallytime
cfd86eeb49 Started unit tests for darwin_sysctl module 2014-03-24 12:22:17 -06:00
rallytime
f2cff53756 Check if gid exists before adding group and associated tests 2014-03-18 13:02:20 -06:00
rallytime
6a54a92aa9 Removed list groups test 2014-03-17 09:55:41 -06:00
Thomas S Hatch
d1bb711860 Merge pull request #11201 from galet/ini-missing-rows
ini_manage module: Preserve empty lines between options and comments.
2014-03-13 10:15:01 -06:00
Michal Galet
a50ee98e9b Cosmetic: Fix missing newline at the end of file. 2014-03-13 13:32:52 +01:00
Michal Galet
9093cf0364 ini_manage module: Preserve empty lines between options and comments. 2014-03-13 12:46:17 +01:00
Thomas S Hatch
ef0f3203e3 Add file type 2014-03-12 10:47:30 -06:00
Thomas S Hatch
0a0f4cdd8d Merge pull request #11149 from ze42/dev_replace
file.append(append/prepend_if_not_found)
2014-03-12 09:30:28 -06:00
Thomas S Hatch
0cbfb2e30a Merge pull request #11148 from galet/ini-missing-rows
Fix ini_manage to preserve empty options
2014-03-12 09:29:37 -06:00
Adrien "ze" Urban
68e88db671 file.replace(append_if_not_found) - test units 2014-03-12 10:44:00 +01:00
Michal Galet
5e99f1a60b Fixing formatting in ini_manage_test.py. 2014-03-11 23:41:53 +01:00
Michal Galet
99fcd43135 Fixing ini_manage module to preserve empty options. Added unit test for module to verify there are no regressions. 2014-03-11 23:35:01 +01:00
Thomas S Hatch
112542ca51 Merge pull request #11137 from ze42/dev_blockreplace
blockreplace - ensure newline before appending
2014-03-11 14:06:19 -07:00
Adrien "ze" Urban
ec314d4ef6 file.blockreplace(append_if_not_empty): test for missing \n at EOF 2014-03-11 18:46:01 +01:00
Mathieu Le Marec - Pasquet
cfa93f9f92 cron: Fix for #10959 2014-03-11 09:18:11 +00:00
Mike Place
abf2487947 Merge pull request #11009 from rallytime/brew_test
Brew unit tests done for now
2014-03-06 13:29:31 -07:00
rallytime
b2b05f0e9d Brew unit tests done for now 2014-03-06 13:01:02 -07:00
Thomas S Hatch
e59fde745d Merge pull request #10983 from rallytime/brew_test
More brew module unit tests
2014-03-06 04:39:00 -08:00
rallytime
f5f089b7a6 pylint fixes 2014-03-05 13:56:30 -07:00
rallytime
543a6943fc More brew module unit tests 2014-03-05 13:08:57 -07:00
Thomas S Hatch
6d23350d85 Merge pull request #10910 from rallytime/brew_test
A couple more brew tests
2014-03-03 13:44:55 -08:00
rallytime
25c77b2559 A couple more brew tests 2014-03-03 13:51:42 -07:00
Mathieu Le Marec - Pasquet
b62c680b81 salt.modules.postgres: Quote all extension work
- Fix regressions in tests introduced by @ticosax (nevermind @ticosax i
  also regulary breaks them :p)
- Quote also alters.
2014-03-02 10:17:46 +00:00
Mike Place
5ce9c2cdf3 Pylint var names. 2014-02-28 00:05:03 -07:00
Mike Place
d39795dc3d Merge pull request #10847 from rallytime/brew_test
Started writing brew unit tests
2014-02-27 23:30:39 -07:00
rallytime
48e3f718ff pylint fixes 2014-02-27 21:33:50 -07:00
rallytime
00b8c3dc70 Started writing brew unit tests 2014-02-27 17:03:08 -07:00
rallytime
86f24555c5 pylint fixes 2014-02-27 13:05:16 -07:00
rallytime
7eed870258 Wrote the rest of the mac_group unit tests 2014-02-27 12:54:45 -07:00
Erik Johnson
b717319e82 Add "if __name__ == '__main__'" section to mac_group_test.py 2014-02-26 00:51:43 -06:00
Pedro Algarvio
695cf1aace {a, b} set() notation is not available in Python 2.6
Allow running the testcase filename alone.
2014-02-26 05:11:01 +00:00
Mike Place
0c5e074a04 Merge pull request #10745 from rallytime/mac_group_test
Started writing unit tests for mac_group
2014-02-25 14:44:45 -07:00
rallytime
bced074647 Started writing unit tests for mac_group 2014-02-25 14:02:54 -07:00
Thomas S Hatch
1a91817221 Merge pull request #10734 from rallytime/mac_user_test
More mac_user tests
2014-02-25 13:31:31 -07:00
rallytime
c58a6a53a3 More mac_user tests 2014-02-25 11:59:34 -07:00
Erik Johnson
e720b57fcf Merge pull request #10701 from rallytime/mac_user_test
Wrote more mac_user tests, found and fixed bug
2014-02-24 15:22:17 -06:00
rallytime
500c17feef Wrote more mac_user tests, found and fixed bug 2014-02-24 12:33:28 -07:00
Pedro Algarvio
1354c212ee Merge pull request #10659 from rallytime/mac_user_test
Even more mac_user tests!
2014-02-22 17:21:57 +00:00
rallytime
4e1c73f9e9 Even more mac_user tests! 2014-02-21 16:11:09 -07:00
Mike Place
64f07ebc38 Merge pull request #10651 from rallytime/mac_user_test
more mac_user tests
2014-02-21 13:56:11 -07:00
rallytime
4a5bbd0c1d more mac_user tests 2014-02-21 13:49:17 -07:00
Thomas S Hatch
bde33497d2 Merge pull request #10645 from rallytime/mac_user_test
Test fixes
2014-02-21 12:09:46 -07:00
rallytime
5a80abeaee Test fixes 2014-02-21 11:13:38 -07:00
Mike Place
f325ddc1a4 Merge pull request #10632 from rallytime/mac_user_test
More mac_user tests
2014-02-20 16:48:08 -07:00
rallytime
ed614934f7 More mac_user tests 2014-02-20 14:25:38 -07:00
Thomas S Hatch
a93bd0f596 Merge pull request #10593 from makinacorpus/cron
cron: better behavior of crontabs tracking
2014-02-20 10:04:59 -07:00
Thomas S Hatch
2bb2d956c1 Merge pull request #10595 from rallytime/mac_user_test
Started testing mac_user module
2014-02-19 15:16:33 -07:00
Mathieu Le Marec - Pasquet
bfa176f110 cron: complete matching rework 2014-02-19 22:44:34 +01:00
rallytime
1e5d502d8a Started testing mac_user module 2014-02-19 14:10:52 -07:00
Mathieu Le Marec - Pasquet
90dc963c1c cron: better behavior of crontabs tracking 2014-02-19 20:39:44 +01:00
rallytime
56e89ac1f2 final tests for dnsutil 2014-02-18 12:36:09 -07:00
rallytime
94128532d2 started new dnsutil_test 2014-02-18 10:45:43 -07:00
rallytime
e8fbd5cd01 import fix 2014-02-14 13:06:58 -07:00
rallytime
9c4dd8232a Merge branch 'develop' of https://github.com/saltstack/salt into dnsutil_test 2014-02-14 12:54:00 -07:00
Thomas S Hatch
e6b0a27281 Merge pull request #10403 from terminalmage/10367
dig.SPF fixes
2014-02-14 12:52:00 -07:00
rallytime
d03b816c5b Merge branch 'develop' of https://github.com/saltstack/salt into dnsutil_test 2014-02-14 12:45:22 -07:00
rallytime
20cb9de36f One more dnsutil test 2014-02-14 12:42:59 -07:00
Erik Johnson
a263a088e5 fix pylint (add blank line) 2014-02-13 13:34:53 -06:00
Erik Johnson
90304e05ee Fix dig tests
Added a side_effect function to allow for testing of recursive functions
in the SPF tests. Also enabled all skipped tests as they now all pass.
2014-02-13 12:38:11 -06:00
Erik Johnson
5c446c50dd Fixed unit tests
Had to skip two tests because I don't know how to mock properly when
recursion is involved.

Also made some PEP8 fixes.
2014-02-12 20:17:52 -06:00
Thomas S Hatch
ae961b689d remove unused import 2014-02-12 16:02:21 -07:00
rallytime
661ed0ef2d Started testing dnsutil 2014-02-12 14:53:58 -07:00
rallytime
2035e7d153 Added S0undt3ch's skipIf suggestion 2014-02-12 11:04:35 -07:00
rallytime
1b55edd4fb We cannot use the requires_salt_modules decorator because we do not inherit from an integration test class. 2014-02-12 10:36:22 -07:00
Pedro Algarvio
9452fa25a3 Skip tests if mock not available, make use of helpers 2014-02-12 15:42:51 +00:00
Pedro Algarvio
720a094142 Fix lint issues and make use of the helpers.
Double to single quotes.
2014-02-12 15:32:55 +00:00
Thomas S Hatch
5239c8b192 Merge pull request #10337 from bemehow/blockdev
blockdev state, module and test
2014-02-11 15:25:23 -07:00
rallytime
c2f8f2bfa0 all methods in dig.py are tested 2014-02-11 15:07:42 -07:00
rallytime
446cf9b6d4 code cleanup 2014-02-11 14:30:07 -07:00
rallytime
f14469bb77 small lint fix 2014-02-11 14:24:10 -07:00
rallytime
555049dd37 More dig tests 2014-02-11 14:19:16 -07:00
Nicole Thomas
9c0016a68f More tests on dig.py and found a bug in check_ip function (ipv6 regex) 2014-02-11 11:59:18 -07:00
Nicole Thomas
d02ba6e3aa Spelling and typos. 2014-02-11 09:15:57 -07:00
Michal Bicz
6ad4415ac1 blockdev state, module and test 2014-02-11 00:11:29 -08:00
Mike Place
c99449c0f6 Remove whitespace 2014-02-10 15:43:57 -07:00
Mike Place
6259f55a4c Dig tests 2014-02-10 15:38:14 -07:00
Pedro Algarvio
8c8effc452 Ignore unused imports 2014-02-08 08:05:42 +00:00
Pedro Algarvio
bd3b8d9fa1 Remove unused imports 2014-02-08 08:05:15 +00:00
Pedro Algarvio
8d45812f34 Remove unused imports 2014-02-08 08:04:19 +00:00
Pedro Algarvio
e20715c2ac Ignore unused imports 2014-02-08 08:03:23 +00:00
Pedro Algarvio
c00dafd7fb Remove unused imports 2014-02-08 08:02:29 +00:00
Thayne Harbaugh
f9d790a389 unit.modules.virtualenv_test.VirtualenvTestCase.test_python_argument
work with non-standard interpreter locations

  Fixes #10251
2014-02-06 17:01:40 -07:00
Thayne Harbaugh
446599adc5 Correctly grain for test "os" => "os_family": issue-10215 2014-02-05 14:38:45 -07:00
Thomas S Hatch
a85838b4ff Merge pull request #10188 from nshalman/smartos-cron-fix
Fix cron state to work on SmartOS
2014-02-04 16:16:09 -08:00
Nahum Shalman
b1e81a5ebb Fix cron state to work on SmartOS
SmartOS and Solaris are both in the Solaris os_family
If we use that grain, the module should work on SmartOS
2014-02-04 17:00:18 -05:00
John Anderson
e1fa6955ff Tighten up regex a bit 2014-02-04 11:34:18 -07:00
Mike Place
8a0167e72b Loosen regex to allow for quoting quirk on Ubuntu 10.x 2014-02-04 18:00:48 +00:00
Pedro Algarvio
69d0f907f9 Make use of the print() function. 2014-02-03 11:07:43 +00:00
Mathieu Le Marec - Pasquet
3a209d4c07 Bunch of safeguards for utf8 errors in buildout module 2014-02-02 04:18:32 +01:00
Erik Johnson
35c397d14b Fix test failures
http://jenkins.saltstack.com/job/salt-rs-rhel5/1511/
2014-02-01 16:51:48 -06:00
Ted Strzalkowski
488dd52e2c Added unit tests for new psutil features. 2014-02-01 13:22:44 -08:00
Thomas S Hatch
ae05a266ca Merge pull request #9973 from penta-srl/archive-unzip-add-update-option
unzip: added options parameters
2014-01-31 09:26:27 -08:00
Pedro Algarvio
daf94a58b7 Remove trailing white-space. 2014-01-29 22:48:48 -07:00
Thomas S Hatch
6d5babfa5c whitespace 2014-01-29 20:30:26 -07:00
Thomas S Hatch
a1561ec7e3 Merge pull request #10037 from ipmb/features/nginx_status
Adds Nginx status module
2014-01-29 19:29:08 -08:00
Thomas S Hatch
2253feeb41 Merge pull request #10038 from ipmb/features/uwsgi_stats
Adds uWSGI stats module
2014-01-29 19:28:56 -08:00
Thomas S Hatch
13e0d53493 Merge pull request #10029 from kaithar/feature/fix-special-bit-perm-test
Better handling for special bit modes
2014-01-29 19:20:31 -08:00
Peter Baumgartner
1bdfb0f6a5 Linting 2014-01-29 15:07:45 -07:00
Peter Baumgartner
1fb99d9985 Linting 2014-01-29 15:06:08 -07:00
Peter Baumgartner
e04f6c7b9b Fixes tests 2014-01-29 15:03:17 -07:00
Peter Baumgartner
ae993bd013 Fixes tests 2014-01-29 15:02:50 -07:00
Peter Baumgartner
f04a7d5056 Cleanup 2014-01-29 14:45:06 -07:00
Peter Baumgartner
d7fa363673 Adds uWSGI stats module 2014-01-29 14:40:23 -07:00
Peter Baumgartner
1ac2f67350 Use Salt conventions 2014-01-29 14:23:58 -07:00
Peter Baumgartner
4c515558cf Adds Nginx status module 2014-01-29 14:17:43 -07:00
Daniel Bradshaw
869f980b45 Restore MagicMock as it shouldn't cause any issues. 2014-01-29 18:46:44 +00:00
Michal Galet
7394c2fd2a Added test for salt.modules.file.extract_hash() to verify support for simple Maven checksum file format. 2014-01-29 11:57:47 +00:00
Nicola Marangon
06f77852cb new tests for unzip with options parameters 2014-01-28 09:41:45 +01:00
Alexey Ivanov
d23ff3821e
codespell: grammar nazi
Run codespell[1] against sources.

[1] https://github.com/lucasdemarchi/codespell
2014-01-26 18:41:28 -08:00
Seth de l'Isle
30e9864d66 Removed the mock for config.manage_mode which doesn't seem to be necessary
for any tests to pass but was causing most of the failures for my previous
commit.

Coerced several values to string representations of octal where before they
were sometimes strings and sometimes ints.
2014-01-25 10:51:50 -05:00
Mathieu Le Marec - Pasquet
276e92c4ea postgres: fix password encryption handling 2014-01-24 14:01:14 +01:00
Mathieu Le Marec - Pasquet
3fa92b49fb postgres: Pylint
This fixes #9920
2014-01-24 14:01:13 +01:00
Thomas S Hatch
6b09f5b8fd Merge pull request #9831 from makinacorpus/pgsql
[need review] PGSQL state/mod improvments
2014-01-23 09:07:59 -08:00
Mathieu Le Marec - Pasquet
b8885f8faf buildout: protect against unicodeerrors 2014-01-23 01:11:19 +01:00
Mathieu Le Marec - Pasquet
7039b4c974 postgres: support for extensions 2014-01-21 19:25:35 +01:00
Mathieu Le Marec - Pasquet
47c20d2371 postgres: Group and user managment refactoring:
- stick to postgresql create/alter role
    - handle and detect correctly all roles updates
    - again a whole set of factorization
2014-01-21 19:25:35 +01:00
Mathieu Le Marec - Pasquet
1f39bcfcb4 Fixing tests 2014-01-17 01:59:11 +01:00
Amir Pakdel
421a6200bf Fixed pylint and unit test errors 2014-01-16 09:56:52 -05:00
regilero
e778386f41 MySQL: fix unit test module db_exists check, error is in the test. 2014-01-15 15:59:37 +01:00
Pedro Algarvio
61e217f894 Skip if the tar binary is not found. 2014-01-14 12:36:36 +00:00
Pedro Algarvio
f8f31af3d2 Hardcode mocked unit test virtualenv binary 2014-01-11 12:58:46 -07:00
Pedro Algarvio
e8de5e7077 Don't hardcode the virtualenv binary name 2013-12-31 14:49:22 +00:00
Pedro Algarvio
d14af796cc Skip tests if virtualenv is not available. 2013-12-31 14:12:02 +00:00
Pedro Algarvio
b03c779718 Don't assume mock and timelib are instaled. 2013-12-31 13:53:37 +00:00
Mike Place
b6aa95d2ab Fix psutil on Arch. 2013-12-30 16:41:45 -07:00
Mike Place
b8e1ddf4bf Another swing at fixing Postgres tests. 2013-12-30 13:28:51 -07:00
Mike Place
94591d7e2d Fix unit tests for Postgres on some platforms
* Fix for inconsistent behavior wherein systems will use varying escaping behavior for quotes and double-quotes. (Most notably, Ubuntu 10 for some oddball reason.

  * Reformatting.
2013-12-28 17:16:54 -07:00
Mathieu Le Marec - Pasquet
1365688bf7 Again, more robustness for zcbuildout tests 2013-12-22 18:52:54 +00:00
Thomas S Hatch
11ee832086 Line fixes 2013-12-20 17:23:35 -07:00
Mike Place
06810a1597 Update unit test to match PG fix. 2013-12-20 17:24:56 -07:00
Thomas S Hatch
706665ff0d Merge pull request #9382 from cachedout/docker-unit-tests
Unit testing
2013-12-20 16:17:58 -08:00
Thomas S Hatch
99cc12ddc5 This test is passing in standalone environments but not in Jenkins
I am stubbing it out and we will need to come back to it
2013-12-20 13:56:26 -07:00
Mike Place
3bb714282e Starting on unit tests for docker and salt.utils. 2013-12-19 09:14:59 -07:00
Pedro Algarvio
8034d126e2 Merge pull request #9335 from cachedout/ps-unit-tests
Correct failure when psutil is not installed. Also some minor reformatting.
2013-12-18 08:36:38 -08:00
Mike Place
bd2ec30682 Correct failure when psutil is not installed.
Reformatting.
2013-12-18 09:25:04 -07:00
Pedro Algarvio
c1107f22fe Merge pull request #9330 from cachedout/ps-unit-tests
Unit testing cron exec module.
2013-12-17 16:25:51 -08:00
Mike Place
d8facc96a4 Unit testing cron exec module. 2013-12-17 15:59:57 -07:00
Colton Myers
5b4d47fb10 Merge pull request #9320 from cachedout/ps-unit-tests
More ps exec module unit tests.
2013-12-17 14:11:29 -08:00
Mike Place
d7b7ad3b9f More ps exec module unit tests. 2013-12-17 11:23:49 -07:00
Mathieu Le Marec - Pasquet
bb7f5247d3 according buildout tests 2013-12-17 04:36:36 +01:00
Mike Place
20ab5b2d23 Lint. 2013-12-16 17:09:49 -07:00
Mike Place
26aa30393e Unit testing of ps exec module.
Seemed like this would be sort of mundane but there are actually a few dragons here.
Unit testing turned up the fact that we make use of methods in psutil that are deprecated!
2013-12-16 17:05:53 -07:00
Pedro Algarvio
fe7ab946d5 Make it run --docked. 2013-12-14 19:00:01 +00:00
Pedro Algarvio
c65d6ea523 Use salt.utils.fopen 2013-12-14 18:35:13 +00:00
Pedro Algarvio
8f8f8bfc4a Formatting and requirements fixes. 2013-12-14 18:31:40 +00:00
Thomas S Hatch
26ec36144d Add support for testign against python 2.6 2013-12-13 15:09:52 -07:00
Thomas S Hatch
39e849c314 pylint fixes 2013-12-12 20:51:28 -07:00
regilero
7ee42dc922 Fix the MySQL user_exists unit test mysterious broken status -- was mocked by other tests 2013-12-11 14:19:29 +01:00
regilero
0d797ced4f Fix MySQL module broken unit tests 2013-12-11 14:18:33 +01:00
regilero
3b14cd7cb4 Merge remote-tracking branch 'upstream/develop' into mysql_additions 2013-12-11 00:56:56 +01:00
Erik Johnson
fca4c80e5b Add unit test for #9097 2013-12-07 20:54:07 -06:00
Mathieu Le Marec - Pasquet
303f5a782c small space error 2013-12-06 20:37:51 +00:00
Mathieu Le Marec - Pasquet
50b6ba65f8 fix last zcbuildout pylint errors 2013-12-06 20:32:33 +00:00
Pedro Algarvio
fe76fb8df0 Higher timeout. 2013-12-06 19:16:41 +00:00
Pedro Algarvio
8f8e3edd0f Lower the url request timeout and log it. 2013-12-06 19:09:38 +00:00
Pedro Algarvio
bff4c99149 Attribute name changed. 2013-12-06 18:13:22 +00:00
Thomas S Hatch
0dc996d573 whitespace 2013-12-06 10:50:58 -07:00
regilero
73f6fc347a MySQL unit tests, fix mock calls to match the new ones 2013-12-04 22:31:08 +01:00
Pedro Algarvio
4a5c10f296 Merge pull request #9007 from cachedout/postgres-unit-tests
First-pass unit test coverage for the Postgres execution module.
2013-12-04 02:47:41 -08:00