@@ -3,9 +3,8 @@ import * as path from "path";
3
3
4
4
import test from "ava" ;
5
5
6
- import { Feature } from "./feature-flags" ;
7
6
import { getRunnerLogger , Logger } from "./logging" ;
8
- import { createFeatures , setupTests } from "./testing-utils" ;
7
+ import { setupTests } from "./testing-utils" ;
9
8
import * as uploadLib from "./upload-lib" ;
10
9
import { GitHubVariant , initializeEnvironment , withTmpDir } from "./util" ;
11
10
@@ -457,11 +456,10 @@ test("shouldShowCombineSarifFilesDeprecationWarning when environment variable is
457
456
) ;
458
457
} ) ;
459
458
460
- test ( "throwIfCombineSarifFilesDisabled when on dotcom with feature flag " , async ( t ) => {
459
+ test ( "throwIfCombineSarifFilesDisabled when on dotcom" , async ( t ) => {
461
460
await t . throwsAsync (
462
461
uploadLib . throwIfCombineSarifFilesDisabled (
463
462
[ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
464
- createFeatures ( [ Feature . DisableCombineSarifFiles ] ) ,
465
463
{
466
464
type : GitHubVariant . DOTCOM ,
467
465
} ,
@@ -473,23 +471,10 @@ test("throwIfCombineSarifFilesDisabled when on dotcom with feature flag", async
473
471
) ;
474
472
} ) ;
475
473
476
- test ( "throwIfCombineSarifFilesDisabled when on dotcom without feature flag" , async ( t ) => {
477
- await t . notThrowsAsync (
478
- uploadLib . throwIfCombineSarifFilesDisabled (
479
- [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
480
- createFeatures ( [ ] ) ,
481
- {
482
- type : GitHubVariant . DOTCOM ,
483
- } ,
484
- ) ,
485
- ) ;
486
- } ) ;
487
-
488
474
test ( "throwIfCombineSarifFilesDisabled when on GHES 3.13" , async ( t ) => {
489
475
await t . notThrowsAsync (
490
476
uploadLib . throwIfCombineSarifFilesDisabled (
491
477
[ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
492
- createFeatures ( [ ] ) ,
493
478
{
494
479
type : GitHubVariant . GHES ,
495
480
version : "3.13.2" ,
@@ -502,7 +487,6 @@ test("throwIfCombineSarifFilesDisabled when on GHES 3.14", async (t) => {
502
487
await t . notThrowsAsync (
503
488
uploadLib . throwIfCombineSarifFilesDisabled (
504
489
[ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
505
- createFeatures ( [ ] ) ,
506
490
{
507
491
type : GitHubVariant . GHES ,
508
492
version : "3.14.0" ,
@@ -515,7 +499,6 @@ test("throwIfCombineSarifFilesDisabled when on GHES 3.17", async (t) => {
515
499
await t . notThrowsAsync (
516
500
uploadLib . throwIfCombineSarifFilesDisabled (
517
501
[ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
518
- createFeatures ( [ ] ) ,
519
502
{
520
503
type : GitHubVariant . GHES ,
521
504
version : "3.17.0" ,
@@ -528,7 +511,6 @@ test("throwIfCombineSarifFilesDisabled when on GHES 3.18 pre", async (t) => {
528
511
await t . throwsAsync (
529
512
uploadLib . throwIfCombineSarifFilesDisabled (
530
513
[ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
531
- createFeatures ( [ ] ) ,
532
514
{
533
515
type : GitHubVariant . GHES ,
534
516
version : "3.18.0.pre1" ,
@@ -545,7 +527,6 @@ test("throwIfCombineSarifFilesDisabled when on GHES 3.18 alpha", async (t) => {
545
527
await t . throwsAsync (
546
528
uploadLib . throwIfCombineSarifFilesDisabled (
547
529
[ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
548
- createFeatures ( [ ] ) ,
549
530
{
550
531
type : GitHubVariant . GHES ,
551
532
version : "3.18.0-alpha.1" ,
@@ -562,7 +543,6 @@ test("throwIfCombineSarifFilesDisabled when on GHES 3.18", async (t) => {
562
543
await t . throwsAsync (
563
544
uploadLib . throwIfCombineSarifFilesDisabled (
564
545
[ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
565
- createFeatures ( [ ] ) ,
566
546
{
567
547
type : GitHubVariant . GHES ,
568
548
version : "3.18.0" ,
@@ -579,7 +559,6 @@ test("throwIfCombineSarifFilesDisabled with an invalid GHES version", async (t)
579
559
await t . notThrowsAsync (
580
560
uploadLib . throwIfCombineSarifFilesDisabled (
581
561
[ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
582
- createFeatures ( [ ] ) ,
583
562
{
584
563
type : GitHubVariant . GHES ,
585
564
version : "foobar" ,
@@ -592,7 +571,6 @@ test("throwIfCombineSarifFilesDisabled with only 1 run", async (t) => {
592
571
await t . notThrowsAsync (
593
572
uploadLib . throwIfCombineSarifFilesDisabled (
594
573
[ createMockSarif ( "abc" , "def" ) ] ,
595
- createFeatures ( [ Feature . DisableCombineSarifFiles ] ) ,
596
574
{
597
575
type : GitHubVariant . DOTCOM ,
598
576
} ,
@@ -604,7 +582,6 @@ test("throwIfCombineSarifFilesDisabled with distinct categories", async (t) => {
604
582
await t . notThrowsAsync (
605
583
uploadLib . throwIfCombineSarifFilesDisabled (
606
584
[ createMockSarif ( "abc" , "def" ) , createMockSarif ( "def" , "def" ) ] ,
607
- createFeatures ( [ Feature . DisableCombineSarifFiles ] ) ,
608
585
{
609
586
type : GitHubVariant . DOTCOM ,
610
587
} ,
@@ -616,7 +593,6 @@ test("throwIfCombineSarifFilesDisabled with distinct tools", async (t) => {
616
593
await t . notThrowsAsync (
617
594
uploadLib . throwIfCombineSarifFilesDisabled (
618
595
[ createMockSarif ( "abc" , "abc" ) , createMockSarif ( "abc" , "def" ) ] ,
619
- createFeatures ( [ Feature . DisableCombineSarifFiles ] ) ,
620
596
{
621
597
type : GitHubVariant . DOTCOM ,
622
598
} ,
0 commit comments