mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
Small fix for inventory source unit tests if the source is custom during check_inventory_source
This commit is contained in:
@@ -1229,6 +1229,8 @@ class InventoryUpdatesTest(BaseTransactionTest):
|
|||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
data.update({'source': inventory_source.source})
|
data.update({'source': inventory_source.source})
|
||||||
|
if inventory_source.source == 'custom':
|
||||||
|
data['source_script'] = inventory_source.source_script.pk
|
||||||
response = self.put(inv_src_url2, data, expect=400)
|
response = self.put(inv_src_url2, data, expect=400)
|
||||||
self.assertTrue('source' in response, response)
|
self.assertTrue('source' in response, response)
|
||||||
# Make sure we can delete the inventory update.
|
# Make sure we can delete the inventory update.
|
||||||
|
|||||||
Reference in New Issue
Block a user