mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Small fix for inventory source unit tests if the source is custom during check_inventory_source
This commit is contained in:
parent
901af011a1
commit
cc7edc770e
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user