Skip to content

Commit fc0a818

Browse files
committed
Remove test references to generate_rfc0015_branch_protection_rules
1 parent c036efc commit fc0a818

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

orgs/test_org_management.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@
164164
bots:
165165
- github: bot-wg1-a5
166166
name: WG3 Area5 Bot
167-
config:
168-
generate_rfc0015_branch_protection_rules: true
169167
"""
170168

171169
wg4_other_org = """
@@ -206,8 +204,6 @@
206204
- cloudfoundry2/repo3
207205
- cloudfoundry2/repo4
208206
- cloudfoundry/repo5
209-
config:
210-
generate_rfc0015_branch_protection_rules: true
211207
"""
212208

213209
toc = """
@@ -231,7 +227,6 @@
231227
repositories:
232228
- cloudfoundry/community
233229
config:
234-
generate_rfc0015_branch_protection_rules: true
235230
github_project_sync:
236231
mapping:
237232
cloudfoundry: 31
@@ -732,8 +727,8 @@ def test_generate_branch_protection(self):
732727
bp_repos = o.branch_protection["branch-protection"]["orgs"]["cloudfoundry"]["repos"]
733728
# TOC and wg3 opted in, wg1 and wg2 not
734729
# note: repo1..4 are shared between wg1 (opt out) and wg3 (opt in) - wg3 wins
735-
self.assertSetEqual({f"repo{i}" for i in range(1, 6)} | {"community"}, set(bp_repos.keys()))
736-
# repo1 has static config that wins over generated branch protection rules
730+
self.assertSetEqual({f"repo{i}" for i in list(range(1, 6)) + [10, 11]} | {"community"}, set(bp_repos.keys()))
731+
# repo1 has static config that wins over generated branch protection rulesp
737732
self.assertTrue(bp_repos["repo1"]["protect"])
738733
self.assertNotIn("required_pull_request_reviews", bp_repos["repo1"])
739734

@@ -749,7 +744,7 @@ def test_generate_branch_protection_multiple_orgs(self):
749744
bp_repos = o.branch_protection["branch-protection"]["orgs"]["cloudfoundry"]["repos"]
750745
# TOC and wg3 opted in, wg1 and wg2 not
751746
# note: repo1..4 are shared between wg1 (opt out) and wg3 (opt in) - wg3 wins
752-
self.assertSetEqual({f"repo{i}" for i in range(1, 6)} | {"community"}, set(bp_repos.keys()))
747+
self.assertSetEqual({f"repo{i}" for i in list(range(1, 6)) + [10, 11]} | {"community"}, set(bp_repos.keys()))
753748
# repo1 has static config that wins over generated branch protection rules
754749
self.assertTrue(bp_repos["repo1"]["protect"])
755750
self.assertNotIn("required_pull_request_reviews", bp_repos["repo1"])

0 commit comments

Comments
 (0)