mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Make sure we setup a license file when running the custom script
inventory update test
This commit is contained in:
parent
90bf8966b9
commit
bd0d4463ef
@ -1561,6 +1561,7 @@ class InventoryUpdatesTest(BaseTransactionTest):
|
|||||||
|
|
||||||
def test_update_from_custom_script(self):
|
def test_update_from_custom_script(self):
|
||||||
# Create the inventory script
|
# Create the inventory script
|
||||||
|
self.create_test_license_file()
|
||||||
inventory_scripts = reverse('api:inventory_script_list')
|
inventory_scripts = reverse('api:inventory_script_list')
|
||||||
new_script = dict(name="Test", description="Test Script", script=TEST_SIMPLE_INVENTORY_SCRIPT)
|
new_script = dict(name="Test", description="Test Script", script=TEST_SIMPLE_INVENTORY_SCRIPT)
|
||||||
script_data = self.post(inventory_scripts, data=new_script, expect=201, auth=self.get_super_credentials())
|
script_data = self.post(inventory_scripts, data=new_script, expect=201, auth=self.get_super_credentials())
|
||||||
|
Loading…
Reference in New Issue
Block a user