diff --git a/e2e/flags/.snapshots/TestMetadataFlags-help-scan b/e2e/flags/.snapshots/TestMetadataFlags-help-scan index 903421dbb..5c978517b 100644 --- a/e2e/flags/.snapshots/TestMetadataFlags-help-scan +++ b/e2e/flags/.snapshots/TestMetadataFlags-help-scan @@ -28,6 +28,7 @@ Scan Flags --exit-code int Force a given exit code for the scan command. Set this to 0 (success) to always return a success exit code despite any findings from the scan. (default -1) --external-rule-dir strings Specify directories paths that contain .yaml files with external rules configuration --force Disable the cache and runs the detections again + --hide-progress-bar Hide progress bar from output --internal-domains strings Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains=".*.my-company.com,private.sh" --parallel int Specify the amount of parallelism to use during the scan --quiet Suppress non-essential messages diff --git a/e2e/flags/metadata_flags_test.go b/e2e/flags/metadata_flags_test.go index c91745795..0f78b4381 100644 --- a/e2e/flags/metadata_flags_test.go +++ b/e2e/flags/metadata_flags_test.go @@ -7,7 +7,15 @@ import ( ) func newMetadataTest(name string, arguments []string) testhelper.TestCase { - return testhelper.NewTestCase(name, arguments, testhelper.TestCaseOptions{DisplayStdErr: true, IgnoreForce: true}) + return testhelper.NewTestCase( + name, + arguments, + testhelper.TestCaseOptions{ + DisplayStdErr: true, + IgnoreForce: true, + DisplayProgressBar: true, + }, + ) } func TestMetadataFlags(t *testing.T) { diff --git a/e2e/internal/testhelper/testhelper.go b/e2e/internal/testhelper/testhelper.go index 4af1952ae..e90b52c12 100644 --- a/e2e/internal/testhelper/testhelper.go +++ b/e2e/internal/testhelper/testhelper.go @@ -25,18 +25,20 @@ type TestCase struct { } type TestCaseOptions struct { - DisplayStdErr bool - IgnoreForce bool + DisplayStdErr bool + DisplayProgressBar bool + IgnoreForce bool } func NewTestCase(name string, arguments []string, options TestCaseOptions) TestCase { return TestCase{ - name: name, - arguments: arguments, - ShouldSucceed: true, - options: options, - displayStdErr: options.DisplayStdErr, - ignoreForce: options.IgnoreForce, + name: name, + arguments: arguments, + ShouldSucceed: true, + options: options, + displayStdErr: options.DisplayStdErr, + displayProgressBar: options.DisplayProgressBar, + ignoreForce: options.IgnoreForce, } }