enforce muutally exclusivity on update_on_project_update and update_on_launch for scm inventory

This commit is contained in:
Chris Meyers
2017-08-07 10:36:57 -04:00
parent 3c89aeaba4
commit 95c12ac1ab
3 changed files with 19 additions and 5 deletions

View File

@@ -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)