1
0
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:
Matthew Jones 2014-10-01 16:25:53 -04:00
parent 90bf8966b9
commit bd0d4463ef

View File

@ -1561,6 +1561,7 @@ class InventoryUpdatesTest(BaseTransactionTest):
def test_update_from_custom_script(self):
# Create the inventory script
self.create_test_license_file()
inventory_scripts = reverse('api:inventory_script_list')
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())