Skip to content

Commit 1803dda

Browse files
committed
[_505] test local users both with and without zone
1 parent 64b8701 commit 1803dda

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

irods/test/access_test.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,17 +499,19 @@ def test_iRODSAccess_cannot_be_constructed_using_unsupported_type__issue_558(sel
499499

500500
def test_atomic_acls_505(self):
501501
ses = self.sess
502-
zone = user1 = user2 = group = None
502+
zone = user1 = user2 = user3 = group = None
503503
try:
504504
zone = ses.zones.create("twilight","remote")
505505
user1 = ses.users.create("test_user_505", "rodsuser")
506506
user2 = ses.users.create("rod_serling_505#twilight", "rodsuser")
507+
user3 = ses.users.create("local_test_user_505", "rodsuser")
507508
group = ses.groups.create("test_group_505")
508509
ses.acls._call_atomic_acl_api(
509510
self.coll_path,
510-
a1:=ACLOperation("write", user1.name, user1.zone),
511+
a1:=ACLOperation("write", user1.name, user1.zone),
511512
a2:=ACLOperation("read", user2.name, user2.zone),
512-
a3:=ACLOperation("read", group.name),
513+
a3:=ACLOperation("read", user3.name, user3.zone),
514+
a4:=ACLOperation("read", group.name),
513515
)
514516

515517
normalize = lambda access: access.copy(decanonicalize=True, implied_zone=ses.zone)
@@ -520,12 +522,15 @@ def test_atomic_acls_505(self):
520522
self.assertIn(normalize(a1), accesses)
521523
self.assertIn(normalize(a2), accesses)
522524
self.assertIn(normalize(a3), accesses)
525+
self.assertIn(normalize(a4), accesses)
523526

524527
finally:
525528
if user1:
526529
user1.remove()
527530
if user2:
528531
user2.remove()
532+
if user3:
533+
user3.remove()
529534
if group:
530535
group.remove()
531536
if zone:

0 commit comments

Comments
 (0)