Skip to content

Commit b8b3047

Browse files
committed
Merged in [19022] from housley@vigilsec.com:
Add test for creation of RG Chairs in the irtg.org domain. - Legacy-Id: 19023 Note: SVN reference [19022] has been migrated to Git commit c429353
2 parents ed68a97 + c429353 commit b8b3047

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ietf/group/tests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ def testManagementCommand(self):
161161
role2 = RoleFactory(name_id='ad', group__type_id='area', group__acronym='done', group__state_id='conclude')
162162
done = role2.group
163163
done_ad = role2.person
164+
irtf = Group.objects.get(acronym='irtf')
165+
testrg = GroupFactory(type_id='rg', acronym='testrg', parent=irtf)
166+
testrgchair = PersonFactory(user__username='testrgchair')
167+
testrg.role_set.create(name_id='chair', person=testrgchair, email=testrgchair.email())
164168
individual = PersonFactory()
165169

166170
args = [ ]
@@ -202,6 +206,7 @@ def testManagementCommand(self):
202206
marssecr.email_address(),
203207
ameschair.email_address(),
204208
recentchair.email_address(),
209+
testrgchair.email_address(),
205210
]]))
206211
self.assertFalse(all([x in vcontent for x in [
207212
done_ad.email_address(),
@@ -217,6 +222,9 @@ def testManagementCommand(self):
217222
'xfilter-' + ames.acronym + '-chairs',
218223
'xfilter-' + recent.acronym + '-ads',
219224
'xfilter-' + recent.acronym + '-chairs',
225+
'xfilter-' + testrg.acronym + '-chairs',
226+
testrg.acronym + '-chairs@ietf.org',
227+
testrg.acronym + '-chairs@irtf.org',
220228
]]))
221229
self.assertFalse(all([x in vcontent for x in [
222230
'xfilter-' + done.acronym + '-ads',

0 commit comments

Comments
 (0)