forked from DimensionDataResearch/salt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2016.11' into 'develop'
Conflicts: - salt/cloud/clouds/vmware.py - salt/modules/win_dsc.py - salt/modules/win_psget.py - tests/unit/utils/vmware_test/test_cluster.py - tests/unit/utils/vmware_test/test_common.py - tests/unit/utils/vmware_test/test_connection.py - tests/unit/utils/vmware_test/test_datacenter.py - tests/unit/utils/vmware_test/test_host.py
- Loading branch information
Showing
12 changed files
with
123 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=========================== | ||
Salt 2016.3.7 Release Notes | ||
=========================== | ||
|
||
Version 2016.3.7 is a bugfix release for :ref:`2016.3.0 <release-2016-3-0>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import absolute_import | ||
|
||
from salt.modules import tuned | ||
|
||
from salttesting import skipIf, TestCase | ||
from salttesting.mock import NO_MOCK, NO_MOCK_REASON, MagicMock, patch | ||
|
||
|
||
tuned.__salt__ = {} | ||
|
||
|
||
@skipIf(NO_MOCK, NO_MOCK_REASON) | ||
class TunedListTestCase(TestCase): | ||
""" | ||
Test the tuned.list_() method for different versions of tuned-adm | ||
""" | ||
def test_v_241(self): | ||
""" | ||
Test the list_ function for older tuned-adm (v2.4.1) | ||
as shipped with CentOS-6 | ||
""" | ||
tuned_list = '''Available profiles: | ||
- throughput-performance | ||
- virtual-guest | ||
- latency-performance | ||
- laptop-battery-powersave | ||
- laptop-ac-powersave | ||
- virtual-host | ||
- desktop-powersave | ||
- server-powersave | ||
- spindown-disk | ||
- sap | ||
- enterprise-storage | ||
- default | ||
Current active profile: throughput-performance''' | ||
mock_cmd = MagicMock(return_value=tuned_list) | ||
with patch.dict(tuned.__salt__, {'cmd.run': mock_cmd}): | ||
self.assertEqual( | ||
tuned.list_(), | ||
['throughput-performance', 'virtual-guest', | ||
'latency-performance', 'laptop-battery-powersave', | ||
'laptop-ac-powersave', 'virtual-host', | ||
'desktop-powersave', 'server-powersave', | ||
'spindown-disk', 'sap', 'enterprise-storage', 'default']) | ||
|
||
def test_v_271(self): | ||
""" | ||
Test the list_ function for newer tuned-adm (v2.7.1) | ||
as shipped with CentOS-7 | ||
""" | ||
tuned_list = '''Available profiles: | ||
- balanced - General non-specialized tuned profile | ||
- desktop - Optmize for the desktop use-case | ||
- latency-performance - Optimize for deterministic performance | ||
- network-latency - Optimize for deterministic performance | ||
- network-throughput - Optimize for streaming network throughput. | ||
- powersave - Optimize for low power-consumption | ||
- throughput-performance - Broadly applicable tuning that provides-- | ||
- virtual-guest - Optimize for running inside a virtual-guest. | ||
- virtual-host - Optimize for running KVM guests | ||
Current active profile: virtual-guest | ||
''' | ||
mock_cmd = MagicMock(return_value=tuned_list) | ||
with patch.dict(tuned.__salt__, {'cmd.run': mock_cmd}): | ||
self.assertEqual( | ||
tuned.list_(), | ||
['balanced', 'desktop', 'latency-performance', | ||
'network-latency', 'network-throughput', 'powersave', | ||
'throughput-performance', 'virtual-guest', | ||
'virtual-host']) |