mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 20:50:06 -03:30
Merge pull request #903 from ansible/item_copy
Implement item copy feature
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user