diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-04-02 18:29:06 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-04-02 18:29:06 -0400 |
commit | 3c08531c4e913268b94618b9939a44161d2dc556 (patch) | |
tree | d67d81dbe260c99c5ef4cb0e6f9eb6d47946e15f /tests | |
parent | 3e29f5d729da704f608b2cd2dc7cf16a42d934f4 (diff) | |
download | third_party-cobbler-3c08531c4e913268b94618b9939a44161d2dc556.tar.gz third_party-cobbler-3c08531c4e913268b94618b9939a44161d2dc556.tar.xz third_party-cobbler-3c08531c4e913268b94618b9939a44161d2dc556.zip |
Added some code to allow assignment of default ownership from settings for new
objects. Also, ownership field for new objects in the WebUI is prepopulated with the username of the logged in user, to prevent accidental lockouts. All of this is untested at this point -- will be polished up soon.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.py b/tests/tests.py index f9bc368..2c055ba 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -169,10 +169,10 @@ class Ownership(BootTest): # basmeent2 can not edit. for user in [ "admin1", "superlab1", "superlab2", "basement1" ]: - self.assertTrue(1==authorize(self.api, user, "modify_kickstart", xo), "%s can modify_kickstart" % user) + self.assertTrue(1==authorize(self.api, user, "modify_kickstart", "/tmp/test_cobbler_kickstart"), "%s can modify_kickstart" % user) for user in [ "basement2", "dne" ]: - self.assertTrue(0==authorize(self.api, user, "modify_kickstart", xo), "%s can modify_kickstart" % user) + self.assertTrue(0==authorize(self.api, user, "modify_kickstart", "/tmp/test_cobbler_kickstart"), "%s can modify_kickstart" % user) # ensure admin1 can edit (he's an admin) and do other tasks # same applies to basement1 who is explicitly added as a user |