mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Added integration tests for wildcard eauth usernames
This commit is contained in:
parent
a5d861314b
commit
0d07099444
2 changed files with 20 additions and 0 deletions
|
@ -89,6 +89,16 @@ class RunnerModuleTest(integration.ClientCase):
|
|||
self.assertEqual(ret['kwargs']['foo'], 'Foo!')
|
||||
self.assertEqual(ret['kwargs']['bar'], 'Bar!')
|
||||
|
||||
def test_wildcard_auth(self):
|
||||
low = {
|
||||
'username': 'the_s0und_of_t3ch',
|
||||
'password': 'willrockyou',
|
||||
'eauth': 'auto',
|
||||
'fun': 'test.arg',
|
||||
'foo': 'Foo!',
|
||||
'bar': 'Bar!',
|
||||
}
|
||||
self.runner.cmd_sync(low)
|
||||
|
||||
if __name__ == '__main__':
|
||||
from integration import run_tests
|
||||
|
|
|
@ -57,6 +57,16 @@ class WheelModuleTest(integration.ClientCase):
|
|||
'token': token['token'],
|
||||
})
|
||||
|
||||
def test_wildcard_auth(self):
|
||||
low = {
|
||||
'username': 'the_s0und_of_t3ch',
|
||||
'password': 'willrockyou',
|
||||
'eauth': 'auto',
|
||||
'fun': 'key.list_all',
|
||||
}
|
||||
|
||||
self.wheel.cmd_sync(low)
|
||||
|
||||
if __name__ == '__main__':
|
||||
from integration import run_tests
|
||||
run_tests(WheelModuleTest, needs_daemon=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue