vernoncole
2e162280a9
replace subprocess calls with salt cmd.x calls
2017-09-27 14:59:47 -06:00
vernoncole
7fd1e29ce9
lint fixes
2017-09-27 14:59:47 -06:00
vernoncole
c8a78c7ceb
provide unit tests
2017-09-27 14:59:47 -06:00
vernoncole
2524dd9bba
skeleton unit test
2017-09-27 14:59:47 -06:00
twangboy
16ae8253c1
Mock which, use os.linesep for cmd.run return
2017-09-27 14:41:25 -06:00
vernoncole
52acfd980d
merge upstream develop
2017-09-27 14:26:32 -06:00
twangboy
a64fe75816
Use os agnostic paths
2017-09-27 14:16:39 -06:00
Nicole Thomas
e4be436ca1
Merge pull request #43674 from alexbleotu/storage_policies-gh
...
VMware vCenter proxy + storage policies states & dependencies
2017-09-27 14:56:39 -04:00
Nicole Thomas
3f888753d4
Merge pull request #43732 from twangboy/win_skip_mac_pkg_tests
...
Skip `unit.stats.test_mac_packages` on Windows
2017-09-27 10:48:07 -04:00
Nicole Thomas
92c10689e4
Merge pull request #43757 from eradman/is_windows
...
Fix DeprecationWarning for use of 'salt.utils.is_windows'
2017-09-27 10:47:20 -04:00
Nicole Thomas
a48afa7175
Merge pull request #43763 from twangboy/win_fix_test_disk
...
Fix `unit.modules.test_disk` for Windows
2017-09-27 10:32:41 -04:00
twangboy
b41b9c8378
Skip snapper tests on Windows
2017-09-26 17:12:37 -06:00
twangboy
35505ac966
Honor 80 char limit
2017-09-26 15:52:04 -06:00
twangboy
26b23b37bc
Skip test if missing binaries
2017-09-26 15:51:22 -06:00
twangboy
1c01e06097
Only skip test on Windows
2017-09-26 14:36:12 -06:00
twangboy
ec99a3ce3c
Fix lint error
2017-09-26 14:36:11 -06:00
twangboy
61f8a2f7ff
Skip mac specific tests
2017-09-26 14:36:11 -06:00
Eric Radman
617c5b72ac
Fix DeprecationWarning for use of 'salt.utils.is_windows'
2017-09-26 15:13:18 -04:00
rallytime
74d315fd28
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/modules/file.py
- tests/unit/modules/test_file.py
2017-09-26 13:45:10 -04:00
Nicole Thomas
c51891c939
Merge branch 'develop' into storage_policies-gh
2017-09-26 13:21:56 -04:00
Nicole Thomas
2581098595
Merge pull request #43731 from twangboy/win_unit_beacons_test_status
...
Fix `unit.beacons.test_status` for Windows
2017-09-26 12:25:11 -04:00
Nicole Thomas
10f3d47498
Merge pull request #43724 from brejoc/2017.7.kubernetes_delete_test
...
Improved delete_deployment test for kubernetes module
2017-09-26 12:19:30 -04:00
Erik Johnson
74379bac9c
Merge pull request #43720 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-09-26 09:53:04 -05:00
Nicole Thomas
13cc27bdab
Merge pull request #43734 from twangboy/win_unit_test_poudriere
...
Fix `unit.modules.test_poudriere` for Windows
2017-09-26 10:13:46 -04:00
Erik Johnson
d78b9a3294
Merge pull request #41998 from twangboy/win_unit_test_environ
...
Fix `unit.modules.test_environ` for Windows
2017-09-26 07:25:48 -05:00
Thomas S Hatch
d8f371b8b1
Merge pull request #43669 from moio/develop-limit-minion-processes
...
Introduce process_count_max minion configuration parameter (develop)
2017-09-26 05:56:11 -06:00
Alexandru Bleotu
ac79f89ffa
Fixed utils.pbm unit tests
2017-09-26 04:59:00 -04:00
Alexandru Bleotu
f484bd52fd
more pylint
2017-09-25 18:25:07 -04:00
Alexandru Bleotu
b6577e4328
pylint
2017-09-25 18:25:04 -04:00
Alexandru Bleotu
58445e927b
Updated all vsphere tests to support the vcenter proxy
2017-09-25 18:24:51 -04:00
Alexandru Bleotu
a3047ad307
Added tests for salt.utils.pbm.assign_default_storage_policy_to_datastore
2017-09-25 18:19:17 -04:00
Alexandru Bleotu
5dbbac182d
Added tests for salt.utils.pbm.get_default_storage_policy_of_datastore
2017-09-25 18:19:12 -04:00
Alexandru Bleotu
79419702d9
Added tests for salt.utils.pbm.update_storage_policy
2017-09-25 18:19:07 -04:00
Alexandru Bleotu
d43e342135
Added tests for salt.utils.pbm.create_storage_policy
2017-09-25 18:19:02 -04:00
Alexandru Bleotu
c80df65776
Fixed tests for salt.utils.pbm.get_policies_by_id
2017-09-25 18:19:00 -04:00
Alexandru Bleotu
75764567c4
Added tests for salt.utils.pbm.get_storage_policies
2017-09-25 18:18:55 -04:00
Alexandru Bleotu
d8e0cbde9a
Added tests for salt.utils.pbm.get_policies_by_id
2017-09-25 18:18:50 -04:00
Alexandru Bleotu
e980407c54
Added tests for salt.utils.pbm.get_capability_definitions
2017-09-25 18:18:45 -04:00
Alexandru Bleotu
68f48d123a
Added tests for salt.utils.pbm.get_placement_solver
2017-09-25 18:18:39 -04:00
Alexandru Bleotu
6b2ddffb4c
Added tests for salt.utils.pbm.get_profile_manager
2017-09-25 18:18:34 -04:00
Alexandru Bleotu
dd54f8ab15
Added tests for salt.utils.vmware.get_new_service_instance_stub
2017-09-25 18:18:27 -04:00
twangboy
922e60fa67
Add os agnostic paths
2017-09-25 15:25:31 -06:00
twangboy
dc1b36b7e2
Change expected return for Windows
2017-09-25 15:06:44 -06:00
Erik Johnson
5b3be6e8af
Fix failing unit test
2017-09-25 16:06:33 -05:00
rallytime
f98a555f98
Missed updating one of the master unit test mocks
2017-09-25 15:37:38 -04:00
Alexandru Bleotu
3c26d4e3be
Updated all list_differ tests to compare dicts so the key order is not assumed
2017-09-25 13:11:08 -04:00
Alexandru Bleotu
cdb028b794
Added key sorting to have deterministing string repr of RecursiveDictDiffer objects
2017-09-25 13:09:47 -04:00
rallytime
846af152b2
Update mocked values in some master/masterapi unit tests
...
The addition of checking for the `auth_list` in PR #43467 requires
that the mocked return of `get_auth_list` actually contains something
in the list. These mock calls need to be updated so we can check
for the SaltInvocationErrors.
2017-09-25 12:54:32 -04:00
twangboy
d73ef44cf6
Mock with uppercase KEY
2017-09-25 09:37:15 -06:00
twangboy
048e16883f
Use uppercase KEY
2017-09-25 09:37:15 -06:00
twangboy
056f3bb4c0
Use with to open temp file
2017-09-25 09:35:25 -06:00
twangboy
716e99c453
Fix py3 bytestring problems
2017-09-25 09:35:24 -06:00
twangboy
543610570c
Fix bytestring issues, fix errored tests
2017-09-25 09:35:24 -06:00
twangboy
9fe83a34a5
Remove old variable declaration
2017-09-25 09:35:23 -06:00
twangboy
c5cf5e92c1
Fix many tests
2017-09-25 09:35:23 -06:00
Jochen Breuer
85b0a8c401
Improved delete_deployment test for kubernetes module
...
This is a follow up of this PR: https://github.com/saltstack/salt/pull/43235
With the fix in PR 43235, we are polling the status of the deletion via
show_deployment. This is now also reflected in the tests with this change.
2017-09-25 17:29:27 +02:00
rallytime
281cbbe048
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/cloud/clouds/libvirt.py
- salt/daemons/masterapi.py
- salt/modules/file.py
- salt/modules/yumpkg.py
- salt/states/archive.py
- salt/states/file.py
- salt/utils/files.py
- salt/utils/minions.py
2017-09-25 09:40:18 -04:00
Alexandru Bleotu
2d2f094810
Merge branch 'develop' into dvs_states-gh
2017-09-25 11:22:45 +01:00
Mike Place
68fa74e88f
Merge pull request #43571 from nadvornik/raid_add
...
Add missing devices to RAID array
2017-09-24 19:54:10 -06:00
Mike Place
cae79d2020
Merge pull request #43699 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-09-24 19:27:17 -06:00
Alexandru Bleotu
847debab7a
Fix failing storage and listdiffer tests
2017-09-22 17:50:09 -04:00
Gareth J. Greenaway
ca3f77f81e
Adding test_btmp_beacon.
2017-09-22 14:24:31 -07:00
Gareth J. Greenaway
6fe02e3c6c
Updating btmp & wtmp beacons to work with python3. Adding ability to fire alerts for specific users & specific times. Adding some unit tests for both.
2017-09-22 14:24:31 -07:00
Silvio Moioli
d53550de35
process_count_max: add unit test
2017-09-22 21:57:04 +02:00
Silvio Moioli
04ab9a6102
process_count_max: adapt existing unit tests
2017-09-22 21:57:04 +02:00
Mike Place
3ad43a5a67
Merge pull request #43470 from alexbleotu/esxdatacenter-gh
...
Fix to esxdatacenter proxy
2017-09-22 13:18:54 -06:00
rallytime
03ce4d81b7
Reactor Test: Fix incorrect merge conflict resolution
2017-09-22 15:01:11 -04:00
Alexandru Bleotu
3c7c202216
Fixed assert_has_calls in vmware.utils.dvs tests
2017-09-22 14:35:21 -04:00
Alexandru Bleotu
f811523e80
pylint
2017-09-22 14:35:14 -04:00
Alexandru Bleotu
d4d6ad99c2
Added tests for salt.utils.vmware.remove_dvportgroup
2017-09-22 14:31:48 -04:00
Alexandru Bleotu
d7474f8d30
Added tests for salt.utils.vmware.update_dvportgroup
2017-09-22 14:31:46 -04:00
Alexandru Bleotu
8a84f27adf
Added tests for salt.utils.vmware.create_dvportgroup
2017-09-22 14:31:41 -04:00
Alexandru Bleotu
b8bc8fd581
Added tests for salt.utils.vmware.get_uplink_dvportgroup
2017-09-22 14:31:34 -04:00
Alexandru Bleotu
82f6ae3688
Added tests for salt.utils.vmware.get_dvportgroups
2017-09-22 14:31:29 -04:00
Alexandru Bleotu
aa247b43b8
Added tests for salt.utils.vmware.set_dvs_network_resource_management_enabled
2017-09-22 14:31:24 -04:00
Alexandru Bleotu
f211874462
Added tests for salt.utils.vmware.update_dvs
2017-09-22 14:31:19 -04:00
Alexandru Bleotu
d31d98c2d3
Added tests for salt.utils.vmware.create_dvs
2017-09-22 14:31:14 -04:00
Alexandru Bleotu
4f09bf5e88
Added tests for salt.utils.vmware.get_network_folder
2017-09-22 14:31:08 -04:00
Alexandru Bleotu
3584a91692
Added tests for salt.utils.vmware.get_dvss
2017-09-22 14:31:03 -04:00
Alexandru Bleotu
173a697be2
Added comments and imports for dvs functions in salt.utils.vmware
2017-09-22 14:31:01 -04:00
Mike Place
75dd97ee50
Merge pull request #43645 from alexbleotu/cluster_states-gh
...
VMware cluster states + dependencies
2017-09-22 11:46:25 -06:00
rallytime
cbae45bec4
Lint: Remove extra line at end of file
2017-09-22 10:33:10 -04:00
rallytime
e0ae50e489
Merge branch '2017.7' into 'develop'
...
Conflicts:
- pkg/salt.bash
- salt/client/mixins.py
- salt/minion.py
- salt/modules/aptpkg.py
- salt/modules/boto_vpc.py
- salt/modules/win_pkg.py
- salt/utils/reactor.py
- tests/unit/utils/test_reactor.py
2017-09-22 10:24:04 -04:00
rallytime
fca4e5563a
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- salt/modules/win_pkg.py
- tests/unit/utils/test_parsers.py
2017-09-22 09:40:03 -04:00
Mike Place
e6dc4d64df
Merge pull request #43314 from twangboy/win_fix_unit.utils.test_verify
...
Fix `unit.utils.test_verify` for Windows
2017-09-21 16:26:12 -06:00
Mike Place
426eb92474
Merge branch 'develop' into raid_add
2017-09-21 15:37:31 -06:00
Mike Place
ed22e0f2fd
Merge pull request #43507 from rallytime/replace-utils-calls
...
Update which and is_windows calls to use new paths
2017-09-21 14:11:21 -06:00
Vladimir Nadvornik
1c006db2a6
Fix and extend mdadm unit tests
2017-09-21 17:46:15 +02:00
Nicole Thomas
f66eb1c5ad
Merge pull request #43588 from gtmanfred/do
...
digitalocean should be one word.
2017-09-21 09:25:38 -04:00
Daniel Wallace
2f3be5785b
there were more
2017-09-20 15:55:37 -06:00
Alexandru Bleotu
23f58c0ff3
Even more pylint
2017-09-20 17:07:17 -04:00
Alexandru Bleotu
a41b5072da
more pylint
2017-09-20 13:40:36 -04:00
Daniel Wallace
f54ddae6bb
fix do test where space was seperated by a newline
2017-09-20 09:57:57 -06:00
Jochen Breuer
96f39a420b
Fixed linting
...
Fix for "String format call with un-indexed curly braces".
2017-09-20 16:35:01 +02:00
Alexandru Bleotu
8cdaf01642
pylint
2017-09-20 09:40:22 -04:00
Alexandru Bleotu
4f4db431fa
Fixed tests for the ignore_unset_values change
2017-09-20 09:40:20 -04:00
Jochen Breuer
08fba98735
Fixed several issues with the test
...
* Removed redundant import.
* No longer inheriting from LogSettingsParserTests.
* Replaced test class description with somethin meaninful.
* Fixed identation.
I've also moved the class to the bottom, since all the classes inheriting
from LogSettingsParserTests are in the block above.
2017-09-20 15:37:24 +02:00
Jochen Breuer
3a089e450f
Added tests for pid-file deletion in DaemonMixIn
...
This is a follow up on this PR:
https://github.com/saltstack/salt/pull/43366
Since we can get an OSError durin PIDfile deletion with non-root users, it
would make sense to also test for this. So here are the two test cases.
One with an OSError and the other one without.
2017-09-20 14:34:30 +02:00
Alexandru Bleotu
14deb25379
Added tests for salt.utils.vmware.assign_license
2017-09-20 06:28:51 -04:00
Alexandru Bleotu
e0ae5ecd83
Added tests for salt.utils.vmware.get_assigned_licenses
2017-09-20 06:28:47 -04:00
Alexandru Bleotu
ca33adcee7
Added tests for salt.utils.vmware.add_license
2017-09-20 06:28:44 -04:00
Alexandru Bleotu
e660af495b
Added tests for salt.utils.vmware.get_licenses
2017-09-20 06:28:40 -04:00
Alexandru Bleotu
e844dbceeb
Added tests for salt.utils.vmware.get_license_assignment_manager
2017-09-20 06:28:37 -04:00
Alexandru Bleotu
9f566fbe9c
Added tests for salt.utils.vmware.get_license_manager
2017-09-20 06:28:33 -04:00
Alexandru Bleotu
71b10b81f9
Added tests for salt.modules.vspere.rename_datastore
2017-09-20 06:28:26 -04:00
Alexandru Bleotu
643f38c98c
Added tests for salt.utils.vmware.rename_datastore
2017-09-20 06:28:21 -04:00
Alexandru Bleotu
51e881e5cf
Added tests for salt.utils.vmware.get_datastores
2017-09-20 06:28:18 -04:00
Alexandru Bleotu
457246a871
Added tests for salt.utils.vmware.get_storage_system
2017-09-20 06:28:14 -04:00
Alexandru Bleotu
f042334584
Added tests for list_diff
2017-09-20 06:28:03 -04:00
Alexandru Bleotu
81a02f49e8
Added tests for RecursiveDictDiffer
2017-09-20 06:28:00 -04:00
Alexandru Bleotu
0db8cbaa25
Added tests for utils.vsan._wait_for_tasks
2017-09-20 06:24:16 -04:00
Alexandru Bleotu
6a86104ec8
Added tests for salt.utils.vsan.reconfigure_cluster_vsan
2017-09-20 06:24:11 -04:00
Mike Place
56a8257558
Merge branch 'develop' into fix-nacl-decrypt
2017-09-19 18:15:43 -06:00
Mike Place
5531e2f738
Merge pull request #43489 from garethgreenaway/41510_mount_opts
...
Fix to mount state when options are removed
2017-09-19 18:10:47 -06:00
Daniel Wallace
3bae894306
digitalocean should be one word.
...
Everything on their webpage is a reference to DigitalOcean
2017-09-19 12:47:16 -06:00
Petr Michalec
ad05cc5d98
Fix names of NACL dec. methods
2017-09-19 15:46:12 +02:00
Jochen Breuer
d1b5ec098c
Merge branch '2017.7' into improve-async-operation-handling-in-kubernetes-module
2017-09-19 10:44:31 +02:00
Alexandru Bleotu
eca796c7ad
Merge branch 'develop' into esxdatacenter-gh
2017-09-16 18:00:42 +01:00
Alexandru Bleotu
55e0092519
Merge branch 'develop' into list_cluster-gh
2017-09-16 18:00:18 +01:00
Yagnik
2ccabe296e
Add support for encrypted tag
2017-09-16 00:44:38 -04:00
garethgreenaway
e870ca1ef4
Merge branch 'develop' into 41510_mount_opts
2017-09-15 16:19:09 -07:00
Nicole Thomas
9a66d5cebc
Merge pull request #43495 from rallytime/move_arg_utils
...
Move 2 arg-related utility functions into salt.utils.args.py
2017-09-15 17:29:10 -04:00
rallytime
9afc84091d
Update which and is_windows calls to use new paths
2017-09-15 17:27:02 -04:00
garethgreenaway
2c091ecaae
Merge branch 'develop' into 41510_mount_opts
2017-09-15 12:44:31 -07:00
Alexandru Bleotu
f1bbb84efc
Merge branch 'develop' into esxdatacenter-gh
2017-09-15 20:05:03 +01:00
Alexandru Bleotu
d9b5424aab
Merge branch 'develop' into list_cluster-gh
2017-09-15 20:04:33 +01:00
Mike Place
a1b871304b
Merge pull request #43345 from ribx/develop
...
better atom extraction from portage version string
2017-09-15 12:29:25 -06:00
Mike Place
b262695301
Merge pull request #43493 from rallytime/merge-develop
...
[develop] Merge forward from 2017.7 to develop
2017-09-15 12:23:09 -06:00
garethgreenaway
787f141504
Merge branch 'develop' into 41510_mount_opts
2017-09-15 08:43:06 -07:00
Alexandru Bleotu
4421744882
pylint on own code
2017-09-14 16:22:31 -04:00
Erik Johnson
792cc0eb54
Merge pull request #43203 from rallytime/fix-21969
...
Return a SaltInvocationError when passing incorrect function pattern for wheel/runner functions.
2017-09-14 12:17:48 -05:00
Alexandru Bleotu
d9d78fa35c
Added missing decorators in utils.vmware tests
2017-09-14 12:47:55 -04:00
Alexandru Bleotu
caf9a0578b
Added tests for utils.vmware.get_service_info
2017-09-14 12:47:53 -04:00
Alexandru Bleotu
2c3b4434f8
Added tests for utils.vsan.get_cluster_vsan_info
2017-09-14 12:47:48 -04:00
Alexandru Bleotu
e811eb9c85
Added tests for utils.vsan.get_vsan_cluster_config_system
2017-09-14 12:47:44 -04:00
Alexandru Bleotu
a2f84e6f39
Added tests for utils.vsan.vsan_supported
2017-09-14 12:47:41 -04:00
Alexandru Bleotu
c3d6af502b
Added tests for modules.vsphere.list_cluster
2017-09-14 12:47:34 -04:00
rallytime
75abf0a2a9
Test fix: update mock util path
2017-09-14 11:01:06 -04:00
Alexandru Bleotu
15a2499d27
Added tests for salt.vsphere._get_proxy_target
2017-09-14 10:52:28 -04:00
Nicole Thomas
aee52a20e0
Lint: Add empty line at end of file
2017-09-14 09:48:09 -04:00
Robin Lutz
e1428dec5f
corrected some PEP8 problems reported by jenkins
2017-09-14 14:24:54 +02:00
rallytime
acb98bbce2
Move salt.utils.argspec_report to salt.utils.args.py
2017-09-13 18:12:52 -04:00
rallytime
9df868930a
Move salt.utils.arg_lookup to salt.utils.args.py
2017-09-13 17:37:49 -04:00
Nicole Thomas
f8ef7dce40
Merge pull request #43469 from alexbleotu/test_fixes-gh
...
Fixed several tests
2017-09-13 15:53:53 -04:00
rallytime
bfcfcd75e8
Merge branch '2017.7' into 'develop'
...
Conflicts:
- salt/fileclient.py
- salt/loader.py
- salt/minion.py
- salt/modules/alternatives.py
- salt/modules/genesis.py
- tests/unit/modules/test_hosts.py
- tests/unit/modules/test_ini_manage.py
2017-09-13 15:15:04 -04:00
garethgreenaway
892d459f01
Merge branch 'develop' into 41510_mount_opts
2017-09-13 12:01:42 -07:00
Nicole Thomas
9ada7f626c
Merge branch '2017.7' into win_fix_unit.utils.test_verify
2017-09-13 14:22:38 -04:00
Nicole Thomas
d2b13ce4c0
Merge pull request #43468 from terminalmage/git-configparser
...
Fix unicode handling on PR #43378
2017-09-13 13:57:17 -04:00
Gareth J. Greenaway
132b56d785
Updating mount to allow opts in the state file to be removed and have the volume remounted
2017-09-13 10:30:15 -07:00
Alexandru Bleotu
bf3785739e
Fixed failing config.test_api tests for when the ROOT_DIR is /
2017-09-13 13:01:15 -04:00