@@ -432,9 +432,9 @@ def test_generate_wg_branch_protection(self):
432
432
pr_reviews = repos_bp ["repo1" ]["required_pull_request_reviews" ]
433
433
self .assertEqual (0 , pr_reviews ["required_approving_review_count" ])
434
434
self .assertListEqual (["wg-wg1-name-bots" ], pr_reviews ["bypass_pull_request_allowances" ]["teams" ])
435
- self .assertListEqual (["main" , "v[0-9]*" ], repos_bp ["repo1" ]["include" ])
435
+ self .assertListEqual (["^ main$ " , "^ v[0-9]*$ " ], repos_bp ["repo1" ]["include" ])
436
436
# other default branch
437
- self .assertListEqual (["defbranch" , "v[0-9]*" ], repos_bp ["repo3" ]["include" ])
437
+ self .assertListEqual (["^ defbranch$ " , "^ v[0-9]*$ " ], repos_bp ["repo3" ]["include" ])
438
438
439
439
_wg3 = OrgGenerator ._yaml_load (wg3 )
440
440
repos_bp = o ._generate_wb_branch_protection (_wg3 )
@@ -497,7 +497,7 @@ def test_cf_org(self):
497
497
"cf-deployment" , teams ["wg-app-runtime-deployments" ]["teams" ]["wg-app-runtime-deployments-cf-deployment-approvers" ]["repos" ]
498
498
)
499
499
self .assertIn ("cf-deployment" , teams ["wg-app-runtime-deployments" ]["teams" ]["wg-app-runtime-deployments-bots" ]["repos" ])
500
- self .assertIn ("cf -gitbot" , teams ["wg-app-runtime-deployments" ]["teams" ]["wg-app-runtime-deployments-bots" ]["members" ])
500
+ self .assertIn ("ard-wg -gitbot" , teams ["wg-app-runtime-deployments" ]["teams" ]["wg-app-runtime-deployments-bots" ]["members" ])
501
501
self .assertIn ("toc" , teams )
502
502
self .assertEqual (5 , len (teams ["toc" ]["maintainers" ]))
503
503
self .assertIn ("community" , teams ["toc" ]["repos" ])
0 commit comments