From e10404d04e836fa54645ea801ca638e669ac2e92 Mon Sep 17 00:00:00 2001 From: Darren <75614232+dmurray-lacework@users.noreply.github.com> Date: Thu, 29 Jun 2023 17:06:36 +0100 Subject: [PATCH] test: fix failing help tests (#1308) Signed-off-by: Darren Murray --- integration/test_resources/help/generate_cloud-account_aws | 1 - integration/test_resources/help/generate_cloud-account_gcp | 1 - integration/test_resources/help/generate_k8s_eks | 1 - scripts/integration_test_ctx.sh | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/integration/test_resources/help/generate_cloud-account_aws b/integration/test_resources/help/generate_cloud-account_aws index 39413b396..764d5a553 100644 --- a/integration/test_resources/help/generate_cloud-account_aws +++ b/integration/test_resources/help/generate_cloud-account_aws @@ -36,7 +36,6 @@ Flags: --existing_iam_role_externalid string specify existing iam role external_id to use --existing_iam_role_name string specify existing iam role name to use --existing_sns_topic_arn string specify existing SNS topic arn - --force_destroy_s3 enable force destroy S3 bucket -h, --help help for aws --lacework_aws_account_id string the Lacework AWS root account id --output string location to write generated content (default is ~/lacework/aws) diff --git a/integration/test_resources/help/generate_cloud-account_gcp b/integration/test_resources/help/generate_cloud-account_gcp index 9eca85563..3ffcce6cb 100644 --- a/integration/test_resources/help/generate_cloud-account_gcp +++ b/integration/test_resources/help/generate_cloud-account_gcp @@ -28,7 +28,6 @@ Flags: --configuration_integration_name string specify a custom configuration integration name --custom_bucket_name string override prefix based storage bucket name generation with a custom name --custom_filter string Audit Log filter which supersedes all other filter options when defined - --enable_force_destroy_bucket enable force bucket destroy --enable_ubla enable universal bucket level access(ubla) (default true) --existing_bucket_name string specify existing bucket name --existing_service_account_name string specify existing service account name diff --git a/integration/test_resources/help/generate_k8s_eks b/integration/test_resources/help/generate_k8s_eks index b8c2faf5c..73bbb1d8e 100644 --- a/integration/test_resources/help/generate_k8s_eks +++ b/integration/test_resources/help/generate_k8s_eks @@ -29,7 +29,6 @@ Flags: --enable_bucket_versioning enable s3 bucket versioning (default true) --enable_encryption_s3 enable encryption on s3 bucket (default true) --enable_firehose_encryption enable firehose encryption (default true) - --enable_force_destroy enable force destroy s3 bucket --enable_kms_key_rotation enable automatic kms key rotation (default true) --enable_mfa_delete_s3 enable mfa delete on s3 bucket. Requires bucket versioning. --enable_sns_topic_encryption enable encryption on the sns topic (default true) diff --git a/scripts/integration_test_ctx.sh b/scripts/integration_test_ctx.sh index beb716ebb..af6976fa7 100755 --- a/scripts/integration_test_ctx.sh +++ b/scripts/integration_test_ctx.sh @@ -11,7 +11,7 @@ run_integration_tests(){ CHANGES=$(git --no-pager diff --name-only $BRANCH $(git merge-base $BRANCH main)) # Fetch relevant build tags - TAGS=$(go run integration/context/ctx_cfg.go $CHANGES) + TAGS=$(go run integration/context/ctx_cfg.go -- $CHANGES) # if no tags then exit if [ "$TAGS" = "" ]; then