From c42935363a68122c620b708d60aca140321447b2 Mon Sep 17 00:00:00 2001 From: Russ Housley Date: Thu, 20 May 2021 20:15:49 +0000 Subject: [PATCH] Add test for creation of RG Chairs in the irtg.org domain. Commit ready for merge. - Legacy-Id: 19022 --- ietf/group/tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ietf/group/tests.py b/ietf/group/tests.py index 398969038..6323211a8 100644 --- a/ietf/group/tests.py +++ b/ietf/group/tests.py @@ -161,6 +161,10 @@ class GenerateGroupAliasesTests(TestCase): role2 = RoleFactory(name_id='ad', group__type_id='area', group__acronym='done', group__state_id='conclude') done = role2.group done_ad = role2.person + irtf = Group.objects.get(acronym='irtf') + testrg = GroupFactory(type_id='rg', acronym='testrg', parent=irtf) + testrgchair = PersonFactory(user__username='testrgchair') + testrg.role_set.create(name_id='chair', person=testrgchair, email=testrgchair.email()) individual = PersonFactory() args = [ ] @@ -202,6 +206,7 @@ class GenerateGroupAliasesTests(TestCase): marssecr.email_address(), ameschair.email_address(), recentchair.email_address(), + testrgchair.email_address(), ]])) self.assertFalse(all([x in vcontent for x in [ done_ad.email_address(), @@ -217,6 +222,9 @@ class GenerateGroupAliasesTests(TestCase): 'xfilter-' + ames.acronym + '-chairs', 'xfilter-' + recent.acronym + '-ads', 'xfilter-' + recent.acronym + '-chairs', + 'xfilter-' + testrg.acronym + '-chairs', + testrg.acronym + '-chairs@ietf.org', + testrg.acronym + '-chairs@irtf.org', ]])) self.assertFalse(all([x in vcontent for x in [ 'xfilter-' + done.acronym + '-ads',