Fixing zuul issues

This commit is contained in:
John Westcott IV
2020-09-23 09:03:03 -04:00
parent c5df37777b
commit cb1ba9e3a4
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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