mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-22 00:33:35 -05:00
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:
|
||||
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)
|
||||
self.assertTrue('source' in response, response)
|
||||
# Make sure we can delete the inventory update.
|
||||
|
||||
Reference in New Issue
Block a user