mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 12:10:06 -03:30
Fixing zuul issues
This commit is contained in:
@@ -3,7 +3,8 @@ __metaclass__ = type
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from awx.main.models import Organization, Application
|
from awx.main.models import Organization
|
||||||
|
from awx.main.models.oauth import OAuth2AccessToken, OAuth2Application
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db
|
@pytest.mark.django_db
|
||||||
@@ -22,7 +23,7 @@ def test_create_application(run_module, admin_user):
|
|||||||
result = run_module('tower_application', module_args, admin_user)
|
result = run_module('tower_application', module_args, admin_user)
|
||||||
assert result.get('changed'), result
|
assert result.get('changed'), result
|
||||||
|
|
||||||
application = Application.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
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
name: "{{ app3_name }}"
|
name: "{{ app3_name }}"
|
||||||
organization: "Default"
|
organization: "Default"
|
||||||
description: "All Trusting Application"
|
description: "All Trusting Application"
|
||||||
skip_authorization: True
|
skip_authorization: true
|
||||||
authorization_grant_type: "password"
|
authorization_grant_type: "password"
|
||||||
client_type: "confidential"
|
client_type: "confidential"
|
||||||
state: present
|
state: present
|
||||||
|
|||||||
Reference in New Issue
Block a user