mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Code cleanup. We aren't even using mock!
This commit is contained in:
parent
62cf3c454e
commit
019225ec47
@ -7,17 +7,9 @@ from __future__ import absolute_import
|
|||||||
from salt import acl
|
from salt import acl
|
||||||
|
|
||||||
# Import Salt Testing Libs
|
# Import Salt Testing Libs
|
||||||
from salttesting import TestCase, skipIf
|
from salttesting import TestCase
|
||||||
from salttesting.mock import (
|
|
||||||
NO_MOCK,
|
|
||||||
NO_MOCK_REASON,
|
|
||||||
)
|
|
||||||
from salttesting.helpers import ensure_in_syspath
|
|
||||||
|
|
||||||
ensure_in_syspath('../../')
|
|
||||||
|
|
||||||
|
|
||||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
|
||||||
class ClientACLTestCase(TestCase):
|
class ClientACLTestCase(TestCase):
|
||||||
'''
|
'''
|
||||||
Unit tests for salt.acl.ClientACL
|
Unit tests for salt.acl.ClientACL
|
||||||
@ -68,8 +60,3 @@ class ClientACLTestCase(TestCase):
|
|||||||
|
|
||||||
self.assertTrue(client_acl.cmd_is_blacklisted(['cmd.run', 'state.sls']))
|
self.assertTrue(client_acl.cmd_is_blacklisted(['cmd.run', 'state.sls']))
|
||||||
self.assertFalse(client_acl.cmd_is_blacklisted(['state.highstate', 'state.sls']))
|
self.assertFalse(client_acl.cmd_is_blacklisted(['state.highstate', 'state.sls']))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
from integration import run_tests
|
|
||||||
run_tests(ClientACLTestCase, needs_daemon=False)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user