mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Fixing scooby doo fingers
This commit is contained in:
@@ -98,7 +98,7 @@ EXAMPLES = '''
|
|||||||
when: tower_token is defined
|
when: tower_token is defined
|
||||||
|
|
||||||
- name: Delete a token by its id
|
- name: Delete a token by its id
|
||||||
tower_toekn:
|
tower_token:
|
||||||
existing_token_id: 4
|
existing_token_id: 4
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
'''
|
||||||
|
|||||||
@@ -25,5 +25,5 @@ def test_create_token(run_module, admin_user):
|
|||||||
assert result.get('changed'), result
|
assert result.get('changed'), result
|
||||||
|
|
||||||
tokens = OAuth2AccessToken.objects.filter(description='barfoo')
|
tokens = OAuth2AccessToken.objects.filter(description='barfoo')
|
||||||
assert len(tokens) == 1, 'Rokens with description of barfoo != 0: {0}'.format(len(tokens))
|
assert len(tokens) == 1, 'Tokens with description of barfoo != 0: {0}'.format(len(tokens))
|
||||||
assert tokens[0].scope == 'read', 'Token was not given read access'
|
assert tokens[0].scope == 'read', 'Token was not given read access'
|
||||||
|
|||||||
Reference in New Issue
Block a user