mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
Fixing linting/doc issues
This commit is contained in:
@@ -34,7 +34,6 @@ options:
|
|||||||
authorization_grant_type:
|
authorization_grant_type:
|
||||||
description:
|
description:
|
||||||
- The grant type the user must use for acquire tokens for this application.
|
- The grant type the user must use for acquire tokens for this application.
|
||||||
default: "password"
|
|
||||||
choices: ["password", "authorization-code"]
|
choices: ["password", "authorization-code"]
|
||||||
type: str
|
type: str
|
||||||
required: False
|
required: False
|
||||||
@@ -52,7 +51,8 @@ options:
|
|||||||
redirect_uris:
|
redirect_uris:
|
||||||
description:
|
description:
|
||||||
- Allowed urls list, space separated. Required when authorization-grant-type=authorization-code
|
- Allowed urls list, space separated. Required when authorization-grant-type=authorization-code
|
||||||
type: str
|
type: list
|
||||||
|
elements: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
@@ -62,8 +62,9 @@ options:
|
|||||||
skip_authorization:
|
skip_authorization:
|
||||||
description:
|
description:
|
||||||
- Set True to skip authorization step for completely trusted applications.
|
- Set True to skip authorization step for completely trusted applications.
|
||||||
default: false
|
|
||||||
type: bool
|
type: bool
|
||||||
|
|
||||||
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
@@ -104,7 +105,7 @@ def main():
|
|||||||
organization=dict(required=True),
|
organization=dict(required=True),
|
||||||
redirect_uris=dict(type="list", elements='str'),
|
redirect_uris=dict(type="list", elements='str'),
|
||||||
state=dict(choices=['present', 'absent'], default='present'),
|
state=dict(choices=['present', 'absent'], default='present'),
|
||||||
skip_authorization=dict(type=bool)
|
skip_authorization=dict(type='bool')
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create a module for ourselves
|
# Create a module for ourselves
|
||||||
|
|||||||
@@ -26,4 +26,3 @@ def test_create_application(run_module, admin_user):
|
|||||||
application = OAuth2Application.objects.get(name='foo_app')
|
application = OAuth2Application.objects.get(name='foo_app')
|
||||||
assert application.description == 'barfoo'
|
assert application.description == 'barfoo'
|
||||||
assert application.organization_id == org.id
|
assert application.organization_id == org.id
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user