@@ -3453,21 +3453,13 @@ func TestIsScsScorecardAllowed(t *testing.T) {
34533453 name string
34543454 scsLicensingV2 bool
34553455 hasRepositoryHealthLicense bool
3456- hasScsLicense bool
34573456 expectedAllowed bool
34583457 }{
34593458 {
3460- name : "scsLicensingV2 disabled and has scs license " ,
3459+ name : "scsLicensingV2 disabled" ,
34613460 scsLicensingV2 : false ,
3462- hasScsLicense : true ,
34633461 expectedAllowed : true ,
34643462 },
3465- {
3466- name : "scsLicensingV2 disabled and does not have scs license" ,
3467- scsLicensingV2 : false ,
3468- hasScsLicense : false ,
3469- expectedAllowed : false ,
3470- },
34713463 {
34723464 name : "scsLicensingV2 enabled and has repository health license" ,
34733465 scsLicensingV2 : true ,
@@ -3484,7 +3476,7 @@ func TestIsScsScorecardAllowed(t *testing.T) {
34843476
34853477 for _ , tt := range tests {
34863478 t .Run (tt .name , func (t * testing.T ) {
3487- actualAllowed := isScsScorecardAllowed (tt .scsLicensingV2 , tt .hasRepositoryHealthLicense , tt . hasScsLicense )
3479+ actualAllowed := isScsScorecardAllowed (tt .scsLicensingV2 , tt .hasRepositoryHealthLicense )
34883480 assert .Equal (t , tt .expectedAllowed , actualAllowed )
34893481 })
34903482 }
@@ -3496,28 +3488,18 @@ func TestIsScsSecretDetectionAllowed(t *testing.T) {
34963488 scsLicensingV2 bool
34973489 hasSecretDetectionLicense bool
34983490 hasEnterpriseSecretsLicense bool
3499- hasScsLicense bool
35003491 expectedAllowed bool
35013492 }{
35023493 {
3503- name : "scsLicensingV2 disabled and has scs and enterprise secrets license" ,
3494+ name : "scsLicensingV2 disabled and has enterprise secrets license" ,
35043495 scsLicensingV2 : false ,
35053496 hasEnterpriseSecretsLicense : true ,
3506- hasScsLicense : true ,
35073497 expectedAllowed : true ,
35083498 },
35093499 {
3510- name : "scsLicensingV2 disabled and has enterprise secrets but does not have scs license" ,
3511- scsLicensingV2 : false ,
3512- hasEnterpriseSecretsLicense : true ,
3513- hasScsLicense : false ,
3514- expectedAllowed : false ,
3515- },
3516- {
3517- name : "scsLicensingV2 disabled and has scs license but does not have enterprise secrets license" ,
3500+ name : "scsLicensingV2 disabled but does not have enterprise secrets license" ,
35183501 scsLicensingV2 : false ,
35193502 hasEnterpriseSecretsLicense : false ,
3520- hasScsLicense : true ,
35213503 expectedAllowed : false ,
35223504 },
35233505 {
@@ -3536,7 +3518,7 @@ func TestIsScsSecretDetectionAllowed(t *testing.T) {
35363518
35373519 for _ , tt := range tests {
35383520 t .Run (tt .name , func (t * testing.T ) {
3539- actualAllowed := isScsSecretDetectionAllowed (tt .scsLicensingV2 , tt .hasSecretDetectionLicense , tt .hasEnterpriseSecretsLicense , tt . hasScsLicense )
3521+ actualAllowed := isScsSecretDetectionAllowed (tt .scsLicensingV2 , tt .hasSecretDetectionLicense , tt .hasEnterpriseSecretsLicense )
35403522 assert .Equal (t , tt .expectedAllowed , actualAllowed )
35413523 })
35423524 }
0 commit comments