mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Fixing zuul issues
This commit is contained in:
parent
c5df37777b
commit
cb1ba9e3a4
@ -3,7 +3,8 @@ __metaclass__ = type
|
||||
|
||||
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
|
||||
@ -22,7 +23,7 @@ def test_create_application(run_module, admin_user):
|
||||
result = run_module('tower_application', module_args, admin_user)
|
||||
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.organization_id == org.id
|
||||
|
||||
|
||||
@ -56,7 +56,7 @@
|
||||
name: "{{ app3_name }}"
|
||||
organization: "Default"
|
||||
description: "All Trusting Application"
|
||||
skip_authorization: True
|
||||
skip_authorization: true
|
||||
authorization_grant_type: "password"
|
||||
client_type: "confidential"
|
||||
state: present
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user