@@ -373,14 +373,14 @@ func TestTrustedSSHKeys(t *testing.T) {
373
373
374
374
username := "user2"
375
375
testCtx := NewAPITestContext (t , username , "repo-test-trusted-ssh-keys" , auth_model .AccessTokenScopeWriteRepository , auth_model .AccessTokenScopeWriteUser )
376
- t .Run ("CheckMainBranchSignedVerified " , doAPIGetBranch (testCtx , "main " , func (t * testing.T , branch api.Branch ) {
376
+ t .Run ("CheckMasterBranchSignedVerified " , doAPIGetBranch (testCtx , "master " , func (t * testing.T , branch api.Branch ) {
377
377
require .NotNil (t , branch .Commit , "no commit provided with branch! %v" , branch )
378
378
require .NotNil (t , branch .Commit .Verification , "no verification provided with branch commit! %v" , branch .Commit )
379
379
require .True (t , branch .Commit .Verification .Verified )
380
380
}))
381
381
382
382
setting .Repository .Signing .TrustedSSHKeys = []string {}
383
- t .Run ("CheckMainBranchSignedUnverified " , doAPIGetBranch (testCtx , "main " , func (t * testing.T , branch api.Branch ) {
383
+ t .Run ("CheckMasterBranchSignedUnverified " , doAPIGetBranch (testCtx , "master " , func (t * testing.T , branch api.Branch ) {
384
384
require .NotNil (t , branch .Commit , "no commit provided with branch! %v" , branch )
385
385
require .NotNil (t , branch .Commit .Verification , "no verification provided with branch commit! %v" , branch .Commit )
386
386
require .False (t , branch .Commit .Verification .Verified )
0 commit comments