mirror of
https://github.com/ansible/awx.git
synced 2026-03-31 07:45:08 -02:30
enforce muutally exclusivity on update_on_project_update and update_on_launch for scm inventory
This commit is contained in:
@@ -403,9 +403,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)
|
||||
|
||||
Reference in New Issue
Block a user