Added integration tests for wildcard eauth usernames

This commit is contained in:
Seth House 2014-10-02 18:11:29 -06:00
parent a5d861314b
commit 0d07099444
2 changed files with 20 additions and 0 deletions

View file

@ -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

View file

@ -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)