mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Fixes in testing and parameter processing
This commit is contained in:
@@ -22,7 +22,8 @@ def test_create_token(run_module, admin_user):
|
||||
}
|
||||
|
||||
result = run_module('tower_token', module_args, admin_user)
|
||||
assert result, result.get('changed')
|
||||
assert result.get('changed'), result
|
||||
|
||||
tokens = OAuth2AccessToken.objects.filter(description='barfoo')
|
||||
assert len(tokens) == 1, tokens[0].description == 'barfoo'
|
||||
assert len(tokens) == 1, 'Rokens with description of barfoo != 0: {0}'.format(len(tokens))
|
||||
assert tokens[0].scope == 'read', 'Token was not given read access'
|
||||
|
||||
Reference in New Issue
Block a user