Merge pull request #6733 from john-westcott-iv/tower_schedule

Initial version of tower_schedule

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-05-21 18:34:57 +00:00
committed by GitHub
7 changed files with 752 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ from requests.models import Response
import pytest
from awx.main.tests.functional.conftest import _request
from awx.main.models import Organization, Project, Inventory, Credential, CredentialType
from awx.main.models import Organization, Project, Inventory, JobTemplate, Credential, CredentialType
try:
import tower_cli # noqa
@@ -221,6 +221,16 @@ def inventory(organization):
)
@pytest.fixture
def job_template(project, inventory):
return JobTemplate.objects.create(
name='test-jt',
project=project,
inventory=inventory,
playbook='helloworld.yml'
)
@pytest.fixture
def machine_credential(organization):
ssh_type = CredentialType.defaults['ssh']()