From 7aa31bb51b7b08f9e3954cfb605134c6b181f23f Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Thu, 23 Jun 2016 11:15:08 -0400 Subject: [PATCH] Updated old test case to allow org admins to create inventory scripts This was added in https://github.com/ansible/ansible-tower/commit/e9fe45389d7287d1b817d10389367214ab440690 --- awx/main/tests/old/inventory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/main/tests/old/inventory.py b/awx/main/tests/old/inventory.py index 301f6e4e9e..9c4dee8294 100644 --- a/awx/main/tests/old/inventory.py +++ b/awx/main/tests/old/inventory.py @@ -285,10 +285,10 @@ class InventoryTest(BaseTest): got = self.get(inventory_scripts, expect=200, auth=self.get_super_credentials()) self.assertEquals(got['count'], 1) - new_failed_script = dict(name="Shouldfail", description="This test should fail", script=TEST_SIMPLE_INVENTORY_SCRIPT, organization=self.organizations[0].id) - self.post(inventory_scripts, data=new_failed_script, expect=403, auth=self.get_normal_credentials()) + new_failed_script = dict(name="Should not fail", description="This test should not fail", script=TEST_SIMPLE_INVENTORY_SCRIPT, organization=self.organizations[0].id) + self.post(inventory_scripts, data=new_failed_script, expect=201, auth=self.get_normal_credentials()) - failed_no_shebang = dict(name="ShouldAlsoFail", descript="This test should also fail", script=TEST_SIMPLE_INVENTORY_SCRIPT_WITHOUT_HASHBANG, + failed_no_shebang = dict(name="ShouldFail", descript="This test should fail", script=TEST_SIMPLE_INVENTORY_SCRIPT_WITHOUT_HASHBANG, organization=self.organizations[0].id) self.post(inventory_scripts, data=failed_no_shebang, expect=400, auth=self.get_super_credentials())