File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2975,6 +2975,12 @@ func TestValidateScanTypes(t *testing.T) {
29752975
29762976 for _ , tt := range tests {
29772977 t .Run (tt .name , func (t * testing.T ) {
2978+ wrappers .ClearCache ()
2979+ mock .Flag = wrappers.FeatureFlagResponseModel {
2980+ Name : wrappers .ScsLicensingV2Enabled ,
2981+ Status : tt .scsLicensingV2 ,
2982+ }
2983+
29782984 cmd := & cobra.Command {}
29792985 cmd .Flags ().String (commonParams .ScanTypes , tt .userScanTypes , "" )
29802986 cmd .Flags ().String (commonParams .SCSEnginesFlag , tt .userSCSScanTypes , "" )
@@ -2984,6 +2990,7 @@ func TestValidateScanTypes(t *testing.T) {
29842990 return tt .allowedEngines , nil
29852991 },
29862992 }
2993+
29872994 featureFlagsWrapper := & mock.FeatureFlagsMockWrapper {}
29882995 err := validateScanTypes (cmd , jwtWrapper , featureFlagsWrapper )
29892996 if tt .expectedError != "" {
You can’t perform that action at this time.
0 commit comments