Merge pull request #46117 from Ch3LL/mac_ssh_schema

Add stringutils.to_str in test_roster_config_validate test
This commit is contained in:
Nicole Thomas 2018-02-21 09:57:44 -05:00 committed by GitHub
commit 0e63decaac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ from tests.support.unit import TestCase, skipIf
# Import Salt Libs
from salt.config.schemas import ssh as ssh_schemas
from salt.config.schemas.minion import MinionConfiguration
import salt.utils.stringutils
from salt.utils.versions import LooseVersion as _LooseVersion
# Import 3rd-party libs
@ -286,7 +287,7 @@ class RosterItemTest(TestCase):
with self.assertRaises(jsonschema.exceptions.ValidationError) as excinfo:
jsonschema.validate(
{'target-1:1':
{salt.utils.stringutils.to_str('target-1:1'):
{
'host': 'localhost',
'user': 'root',