mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 09:18:48 -03:30
Merge pull request #180 from chrismeyersfsu/fix-7383
fix single update_on_project_update per-inventory
This commit is contained in:
@@ -404,9 +404,8 @@ class TestControlledBySCM:
|
||||
{'update_on_project_update': True,},
|
||||
admin_user, expect=400)
|
||||
content = json.loads(res.content)
|
||||
assert content['update_on_project_update'] == ["Cannot update SCM-based inventory source on launch if set to update on "
|
||||
"project update. Instead, configure the corresponding source project to "
|
||||
"update on launch."]
|
||||
assert content['update_on_project_update'] == ["More than one SCM-based inventory source with update on project update "
|
||||
"on per-inventory not allowed."]
|
||||
|
||||
def test_adding_inv_src_without_proj_access_prohibited(self, post, project, inventory, rando):
|
||||
inventory.admin_role.members.add(rando)
|
||||
|
||||
@@ -58,6 +58,9 @@ class TestSCMClean:
|
||||
inv_src1.clean_update_on_project_update()
|
||||
inv_src1.save()
|
||||
|
||||
inv_src1.source_vars = '---\nhello: world'
|
||||
inv_src1.clean_update_on_project_update()
|
||||
|
||||
inv_src2 = InventorySource(inventory=inventory,
|
||||
update_on_project_update=True,
|
||||
source='scm')
|
||||
|
||||
Reference in New Issue
Block a user