mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #46117 from Ch3LL/mac_ssh_schema
Add stringutils.to_str in test_roster_config_validate test
This commit is contained in:
commit
0e63decaac
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user