Merge pull request #903 from ansible/item_copy

Implement item copy feature
This commit is contained in:
Alan Rominger
2018-02-08 15:51:16 -05:00
committed by GitHub
19 changed files with 763 additions and 42 deletions

View File

@@ -32,7 +32,8 @@ from awx.main.models.inventory import (
Group,
Inventory,
InventoryUpdate,
InventorySource
InventorySource,
CustomInventoryScript
)
from awx.main.models.organization import (
Organization,
@@ -496,6 +497,13 @@ def inventory_update(inventory_source):
return InventoryUpdate.objects.create(inventory_source=inventory_source)
@pytest.fixture
def inventory_script(organization):
return CustomInventoryScript.objects.create(name='test inv script',
organization=organization,
script='#!/usr/bin/python')
@pytest.fixture
def host(group, inventory):
return group.hosts.create(name='single-host', inventory=inventory)