Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safebreach management deployments and API Keys #612

Open
wants to merge 20 commits into
base: XSOARSafebreachContentManagementV1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
d841ee3
Implemented Metadata collection for 3 commands get-all-users, get-use…
satish-metron Sep 4, 2023
d81915e
completed adding metadata for update and delete user endpoints
satish-metron Sep 4, 2023
4c6b767
Completed adding metadata to create,update and delete deployments
satish-metron Sep 4, 2023
6bdc6f3
added generation and deletion of API keys and their metadata objects
satish-metron Sep 4, 2023
f53afb7
formatted code related to simulators to adhere to metadata collection
satish-metron Sep 5, 2023
cb86f95
completed formatting code for metadata collection
satish-metron Sep 5, 2023
53c0f60
Added delete Integration connector errors command
satish-metron Sep 5, 2023
cbb3a75
added readme and docs as part of PR fix
satish-metron Sep 5, 2023
9bc34d2
Added packignore and pack metadata files to file structure
satish-metron Sep 5, 2023
f5e3441
generated readme
satish-metron Sep 5, 2023
a2d2be4
added temporary files to get a working PR
satish-metron Sep 5, 2023
132a642
Fixed issues for readme containing very less data and description not…
satish-metron Sep 5, 2023
46bdab8
made changes suggested by demisto repo
satish-metron Sep 5, 2023
09183e6
Made changes and checked in local related to precommit
satish-metron Sep 6, 2023
1b07998
added changes for pre-commit issues.
satish-metron Sep 6, 2023
dc34572
modified for using built in http request method instead of new implem…
satish-metron Sep 6, 2023
6455b9d
final commit before splitting code into chunks
satish-metron Sep 6, 2023
2b2e11a
Initial commit with deployments and APi keys commands
satish-metron Sep 6, 2023
b9774cd
added unit tests and related changes
satish-metron Sep 18, 2023
e4394a7
migrated new changes to previous PR
satish-metron Sep 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ references:
# poll for neo4j status until available
while ! curl --fail http://127.0.0.1:7474 &> /dev/null; do sleep 1; done

demisto-sdk lint -p 8 -g -vvv --test-xml ./unit-tests --log-path ./artifacts --failure-report ./artifacts --coverage-report $ARTIFACTS_FOLDER/coverage_report --docker-image << parameters.dockerimageflag >> --check-dependent-api-module
demisto-sdk lint -p 8 -g --test-xml ./unit-tests --log-path ./artifacts --failure-report ./artifacts --coverage-report $ARTIFACTS_FOLDER/coverage_report --docker-image << parameters.dockerimageflag >> --check-dependent-api-module

generate_coverage_reports: &generate_coverage_reports
run:
Expand Down
133 changes: 121 additions & 12 deletions .gitlab/ci/.gitlab-ci.bucket-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs-done-check-upload-flow:
extends:
- .jobs-done-check
- .bucket-upload-rule
needs: ['run-unittests-and-lint-upload-flow', 'run-validations-upload-flow', 'mpv2-prepare-testing-bucket-upload-flow', 'upload-id-set-bucket', 'xpanse-prepare-testing-bucket-upload-flow', 'xsoar-prepare-testing-bucket-upload-flow', 'install-packs-in-server6_8', 'install-packs-in-server6_9', 'install-packs-in-server6_10', 'install-packs-in-server6_11', 'install-packs-in-server-master', 'install-packs-in-xsiam-ga', 'sync-buckets-between-projects', 'upload-packs-to-marketplace', 'upload-packs-to-marketplace-v2', 'upload-packs-to-xpanse-marketplace']
needs: ['run-unittests-and-lint-upload-flow', 'run-validations-upload-flow', 'mpv2-prepare-testing-bucket-upload-flow', 'upload-id-set-bucket', 'xpanse-prepare-testing-bucket-upload-flow', 'xsoar-prepare-testing-bucket-upload-flow', 'xsoar-saas-prepare-testing-bucket-upload-flow', 'install-packs-in-server6_8', 'install-packs-in-server6_9', 'install-packs-in-server6_10', 'install-packs-in-server6_11', 'install-packs-in-server-master', 'install-packs-in-xsiam-ga', 'sync-buckets-between-projects', 'upload-packs-to-marketplace', 'upload-packs-to-marketplace-v2', 'upload-packs-to-xpanse-marketplace', 'upload-packs-to-xsoar-saas-marketplace']
tags:
- gke

Expand All @@ -85,6 +85,19 @@ xsoar-prepare-testing-bucket-upload-flow:
- if: '$FORCE_BUCKET_UPLOAD == "true"'


xsoar-saas-prepare-testing-bucket-upload-flow:
extends:
- xsoar-saas-prepare-testing-bucket
variables:
IFRA_ENV_TYPE: "Bucket-Upload"
ARTIFACTS_FOLDER: "${ARTIFACTS_FOLDER_XSOAR_SAAS}"
rules:
- if: '$CI_COMMIT_BRANCH =~ /pull\/[0-9]+/'
when: never
- if: '$BUCKET_UPLOAD == "true"'
- if: '$FORCE_BUCKET_UPLOAD == "true"'


mpv2-prepare-testing-bucket-upload-flow:
extends:
- mpv2-prepare-testing-bucket
Expand Down Expand Up @@ -133,11 +146,13 @@ xpanse-prepare-testing-bucket-upload-flow:
- .default-job-settings
script:
- EXIT_CODE=0
- section_start "Download configuration"
- ./Tests/scripts/download_conf_repos.sh >> $ARTIFACTS_FOLDER/logs/installations.log
- section_start "Download content-test-conf and infra" --collapsed
- ./Tests/scripts/download_conf_repos.sh 2>&1 | tee --append "${ARTIFACTS_FOLDER}/logs/download_conf_repos.log"
- section_end "Download content-test-conf and infra"
- section_start "Secrets Fetch" --collapsed
- SECRET_CONF_PATH=$(cat secret_conf_path)
- python3 ./Tests/scripts/add_secrets_file_to_build.py -sa "$GSM_SERVICE_ACCOUNT" -sf "$SECRET_CONF_PATH" -u "$DEMISTO_USERNAME" -p "$DEMISTO_PASSWORD" -gpidd "$GSM_PROJECT_ID_DEV" -gpidp "$GSM_PROJECT_ID" >> $ARTIFACTS_FOLDER/logs/handle_secrets.log
- section_end "Download configuration"
- section_end "Secrets Fetch"
- !reference [.ssh-config-setup]
- section_start "Get Instance Variables"
- echo INSTANCE_ROLE="$INSTANCE_ROLE"
Expand Down Expand Up @@ -207,11 +222,13 @@ install-packs-in-server-master:
- .default-job-settings
script:
- EXIT_CODE=0
- section_start "Download configuration"
- ./Tests/scripts/download_conf_repos.sh >> $ARTIFACTS_FOLDER/logs/installations.log
- section_start "Download content-test-conf and infra" --collapsed
- ./Tests/scripts/download_conf_repos.sh 2>&1 | tee --append "${ARTIFACTS_FOLDER}/logs/download_conf_repos.log"
- section_end "Download content-test-conf and infra"
- section_start "Secrets Fetch" --collapsed
- SECRET_CONF_PATH=$(cat secret_conf_path)
- python3 ./Tests/scripts/add_secrets_file_to_build.py -sa "$GSM_SERVICE_ACCOUNT" -sf "$SECRET_CONF_PATH" -u "$DEMISTO_USERNAME" -p "$DEMISTO_PASSWORD" -gpidd "$GSM_PROJECT_ID_DEV" -gpidp "$GSM_PROJECT_ID" >> $ARTIFACTS_FOLDER/logs/handle_secrets.log
- section_end "Download configuration"
- section_end "Secrets Fetch"
- section_start "Lock Machine"
- |
if [[ $TEST_UPLOAD == "true" ]]; then
Expand All @@ -237,7 +254,7 @@ install-packs-in-server-master:
- |
if [ "$INSTANCE_ROLE" == XSIAM ]; then
section_start "Run end to end sanity tests"

python3 -m pytest ./Tests/tests_end_to_end_xsiam -v --cloud_machine "$CLOUD_CHOSEN_MACHINE_ID" --cloud_servers_path "$CLOUD_SERVERS_PATH" --cloud_servers_api_keys "cloud_api_keys.json" --disable-warnings
section_end "Run end to end sanity tests"
fi
Expand Down Expand Up @@ -320,7 +337,10 @@ upload-packs-to-marketplace:
STORAGE_BASE_PATH="upload-flow/builds/$CI_COMMIT_BRANCH/$CI_PIPELINE_ID/content"
fi

python3 ./Tests/Marketplace/copy_and_upload_packs.py -a $PACK_ARTIFACTS -e $EXTRACT_FOLDER -pb "$GCS_MARKET_BUCKET" -bb "$GCS_BUILD_BUCKET" -s $GCS_MARKET_KEY -n $CI_PIPELINE_ID -c $CI_COMMIT_BRANCH -pbp "$STORAGE_BASE_PATH/packs" --marketplace xsoar
if [[ -z $PACKS_TO_UPLOAD ]]; then
PACKS_TO_UPLOAD="All"
fi
python3 ./Tests/Marketplace/copy_and_upload_packs.py -a $PACK_ARTIFACTS -e $EXTRACT_FOLDER -pb "$GCS_MARKET_BUCKET" -bb "$GCS_BUILD_BUCKET" -s $GCS_MARKET_KEY -n $CI_PIPELINE_ID -c $CI_COMMIT_BRANCH -p "${PACKS_TO_UPLOAD}" -pbp "$STORAGE_BASE_PATH/packs" --marketplace xsoar
fi
- section_end "Upload Packs To Marketplace Storage"

Expand Down Expand Up @@ -397,12 +417,22 @@ upload-packs-to-marketplace-v2:
fi
echo "Set storage base path to $STORAGE_BASE_PATH"
fi
python3 ./Tests/Marketplace/copy_and_upload_packs.py -a $PACK_ARTIFACTS -e $EXTRACT_FOLDER -pb "$GCS_MARKET_V2_BUCKET" -bb "$GCS_BUILD_BUCKET" -s $GCS_MARKET_KEY -n $CI_PIPELINE_ID -c $CI_COMMIT_BRANCH -pbp "$STORAGE_BASE_PATH/packs" --marketplace marketplacev2
if [[ -z $PACKS_TO_UPLOAD ]]; then
PACKS_TO_UPLOAD="All"
fi
python3 ./Tests/Marketplace/copy_and_upload_packs.py -a $PACK_ARTIFACTS -e $EXTRACT_FOLDER -pb "$GCS_MARKET_V2_BUCKET" -bb "$GCS_BUILD_BUCKET" -s $GCS_MARKET_KEY -n $CI_PIPELINE_ID -c $CI_COMMIT_BRANCH -p "${PACKS_TO_UPLOAD}" -pbp "$STORAGE_BASE_PATH/packs" --marketplace marketplacev2
fi
- section_end "Upload Packs To Marketplace Storage"

- section_start "Download packs from GCP"
- |
if [[ $GCS_MARKET_V2_BUCKET == $GCS_PRODUCTION_V2_BUCKET ]] && [[ -z $STORAGE_BASE_PATH ]]; then
STORAGE_BASE_PATH="content"
fi
if [[ $GCS_MARKET_V2_BUCKET != $GCS_PRODUCTION_V2_BUCKET ]] && [[ -z $STORAGE_BASE_PATH ]]; then
STORAGE_BASE_PATH="upload-flow/builds/$CI_COMMIT_BRANCH/$CI_PIPELINE_ID/content"
fi

PACKS_SRC="gs://$GCS_MARKET_V2_BUCKET/$STORAGE_BASE_PATH/packs"
ZIP_FOLDER=$(mktemp -d)
gcloud auth activate-service-account --key-file="$GCS_MARKET_KEY" >> $ARTIFACTS_FOLDER/logs/auth.out
Expand Down Expand Up @@ -443,7 +473,7 @@ upload-packs-to-xpanse-marketplace:
- *check_user_permissions_to_upload_packs
- section_start "Upload Packs To Marketplace Storage"
- |
if [[ "$CI_COMMIT_BRANCH" == "master" ]] || [[ "$CI_COMMIT_BRANCH" == "xpanse-marketplace" ]] || [[ "$GCS_MARKET_XPANSE_BUCKET" != "$GCS_PRODUCTION_XPANSE_BUCKET" ]]; then
if [[ "$CI_COMMIT_BRANCH" == "master" ]] || [[ "$GCS_MARKET_XPANSE_BUCKET" != "$GCS_PRODUCTION_XPANSE_BUCKET" ]]; then
EXTRACT_FOLDER=$(mktemp -d)
PACK_ARTIFACTS=$ARTIFACTS_FOLDER/content_packs.zip
PACKS_DEPENDENCIES=$ARTIFACTS_FOLDER/packs_dependencies.json
Expand All @@ -457,12 +487,22 @@ upload-packs-to-xpanse-marketplace:
fi
echo "Set storage base path to $STORAGE_BASE_PATH"
fi
python3 ./Tests/Marketplace/copy_and_upload_packs.py -a $PACK_ARTIFACTS -e $EXTRACT_FOLDER -pb "$GCS_MARKET_XPANSE_BUCKET" -bb "$GCS_BUILD_BUCKET" -s $GCS_MARKET_KEY -n $CI_PIPELINE_ID -c $CI_COMMIT_BRANCH -pbp "$STORAGE_BASE_PATH/packs" --marketplace xpanse
if [[ -z $PACKS_TO_UPLOAD ]]; then
PACKS_TO_UPLOAD="All"
fi
python3 ./Tests/Marketplace/copy_and_upload_packs.py -a $PACK_ARTIFACTS -e $EXTRACT_FOLDER -pb "$GCS_MARKET_XPANSE_BUCKET" -bb "$GCS_BUILD_BUCKET" -s $GCS_MARKET_KEY -n $CI_PIPELINE_ID -c $CI_COMMIT_BRANCH -p "${PACKS_TO_UPLOAD}" -pbp "$STORAGE_BASE_PATH/packs" --marketplace xpanse
fi
- section_end "Upload Packs To Marketplace Storage"

- section_start "Download packs from GCP"
- |
if [[ $GCS_MARKET_XPANSE_BUCKET == $GCS_PRODUCTION_XPANSE_BUCKET ]] && [[ -z $STORAGE_BASE_PATH ]]; then
STORAGE_BASE_PATH="content"
fi
if [[ $GCS_MARKET_XPANSE_BUCKET != $GCS_PRODUCTION_XPANSE_BUCKET ]] && [[ -z $STORAGE_BASE_PATH ]]; then
STORAGE_BASE_PATH="upload-flow/builds/$CI_COMMIT_BRANCH/$CI_PIPELINE_ID/content"
fi

PACKS_SRC="gs://$GCS_MARKET_XPANSE_BUCKET/$STORAGE_BASE_PATH/packs"
ZIP_FOLDER=$(mktemp -d)
gcloud auth activate-service-account --key-file="$GCS_MARKET_KEY" >> $ARTIFACTS_FOLDER/logs/auth.out
Expand All @@ -479,6 +519,75 @@ upload-packs-to-xpanse-marketplace:
- section_end "Zip Content Packs From GCS"
- job-done

upload-packs-to-xsoar-saas-marketplace:
tags:
- gke
needs: ["run-validations-upload-flow", "run-unittests-and-lint-upload-flow", "xsoar-saas-prepare-testing-bucket-upload-flow"] # "install-packs-in-xsoar-saas-dev"
stage: upload-to-marketplace
artifacts:
expire_in: 48 hrs
paths:
- /builds/xsoar/content/artifacts/*
- /builds/xsoar/content/pipeline_jobs_folder/*
when: always
variables:
MARKETPLACE_VERSION: "xsoar_saas"
ARTIFACTS_FOLDER: "${ARTIFACTS_FOLDER_XSOAR_SAAS}"
INSTANCE_ROLE: "Server Master"
INSTANCE_CREATED: "true"
SSH_TUNNEL_TIMEOUT: 10
TIME_TO_LIVE: ""
extends:
- .bucket-upload-rule
- .default-job-settings
script:
- *check_user_permissions_to_upload_packs
- section_start "Upload Packs To Marketplace Storage"
- |
echo "$GCS_MARKET_XSOAR_SAAS_BUCKET"
echo "$GCS_PRODUCTION_XSOAR_SAAS_BUCKET"
if [[ "$CI_COMMIT_BRANCH" == "master" ]] || [[ "$GCS_MARKET_XSOAR_SAAS_BUCKET" != "$GCS_PRODUCTION_XSOAR_SAAS_BUCKET" ]]; then
EXTRACT_FOLDER=$(mktemp -d)
PACK_ARTIFACTS=$ARTIFACTS_FOLDER/content_packs.zip
PACKS_DEPENDENCIES=$ARTIFACTS_FOLDER/packs_dependencies.json
CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH:-unknown}
GCS_BUILD_BUCKET="marketplace-ci-build"
if [[ -z $STORAGE_BASE_PATH ]]; then
if [[ "$GCS_MARKET_XSOAR_SAAS_BUCKET" == "$GCS_PRODUCTION_XSOAR_SAAS_BUCKET" ]]; then
STORAGE_BASE_PATH="content"
else
STORAGE_BASE_PATH="upload-flow/builds/$CI_COMMIT_BRANCH/$CI_PIPELINE_ID/content"
fi
echo "Set storage base path to $STORAGE_BASE_PATH"
fi
python3 ./Tests/Marketplace/copy_and_upload_packs.py -a $PACK_ARTIFACTS -e $EXTRACT_FOLDER -pb "$GCS_MARKET_XSOAR_SAAS_BUCKET" -bb "$GCS_BUILD_BUCKET" -s $GCS_MARKET_KEY -n $CI_PIPELINE_ID -c $CI_COMMIT_BRANCH -pbp "$STORAGE_BASE_PATH/packs" --marketplace xsoar_saas
fi
- section_end "Upload Packs To Marketplace Storage"

- section_start "Download packs from GCP"
- |
if [[ $GCS_MARKET_XSOAR_SAAS_BUCKET == $GCS_PRODUCTION_XSOAR_SAAS_BUCKET ]] && [[ -z $STORAGE_BASE_PATH ]]; then
STORAGE_BASE_PATH="content"
fi
if [[ $GCS_MARKET_XSOAR_SAAS_BUCKET != $GCS_PRODUCTION_XSOAR_SAAS_BUCKET ]] && [[ -z $STORAGE_BASE_PATH ]]; then
STORAGE_BASE_PATH="upload-flow/builds/$CI_COMMIT_BRANCH/$CI_PIPELINE_ID/content"
fi

PACKS_SRC="gs://$GCS_MARKET_XSOAR_SAAS_BUCKET/$STORAGE_BASE_PATH/packs"
ZIP_FOLDER=$(mktemp -d)
gcloud auth activate-service-account --key-file="$GCS_MARKET_KEY" >> $ARTIFACTS_FOLDER/logs/auth.out
echo "successfully activated google cloud service account"
gsutil -m cp -r $PACKS_SRC $ZIP_FOLDER
echo "successfully downloaded index.zip"
- section_end "Download packs from GCP"
- *upload_content_graph
- *upload_dependencies_file
- gcloud auth revoke $GCS_ARTIFACTS_ACCOUNT_NAME

- section_start "Zip Content Packs From GCS"
- python3 ./Tests/Marketplace/zip_packs.py -z $ZIP_FOLDER -a $ARTIFACTS_FOLDER -s $GCS_MARKET_KEY
- section_end "Zip Content Packs From GCS"
- job-done

xsoar-force-pack-upload:
needs: [ "xsoar-prepare-testing-bucket-upload-flow" ]
Expand Down
58 changes: 31 additions & 27 deletions .gitlab/ci/.gitlab-ci.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@


.setup-network-certs: &setup-network-certs
- source .gitlab/helper_functions.sh
- chmod 700 $NETWORK_SETUP
- source $NETWORK_SETUP
- section_start "Setup network certs" --collapsed
- chmod 700 ${CERTIFICATE_SETUP_SCRIPT}
- source ${CERTIFICATE_SETUP_SCRIPT}
- section_end "Setup network certs"

.setup-artifactory: &setup-artifactory
- section_start "Setup Artifactory" --collapsed
- chmod 700 ${ARTIFACTORY_SETUP_SCRIPT}
- source ${ARTIFACTORY_SETUP_SCRIPT}
- section_end "Setup Artifactory"

### Global Script Snippets ###

Expand Down Expand Up @@ -53,11 +58,13 @@
- section_end "Create ID Set"

.download-demisto-conf:
- section_start "Download content-test-conf" --collapsed
- ./Tests/scripts/download_conf_repos.sh >> $ARTIFACTS_FOLDER/logs/download_demisto_conf.log
- section_start "Download content-test-conf and infra" --collapsed
- ./Tests/scripts/download_conf_repos.sh 2>&1 | tee --append "${ARTIFACTS_FOLDER}/logs/download_conf_repos.log"
- section_end "Download content-test-conf and infra"
- section_start "Secrets Fetch" --collapsed
- SECRET_CONF_PATH=$(cat secret_conf_path)
- python3 ./Tests/scripts/add_secrets_file_to_build.py -sa "$GSM_SERVICE_ACCOUNT" -sf "$SECRET_CONF_PATH" -u "$DEMISTO_USERNAME" -p "$DEMISTO_PASSWORD" -gpidd "$GSM_PROJECT_ID_DEV" -gpidp "$GSM_PROJECT_ID" >> $ARTIFACTS_FOLDER/logs/handle_secrets.log
- section_end "Download content-test-conf"
- section_end "Secrets Fetch"

.ssh-config-setup:
- section_start "SSH config setup" --collapsed
Expand Down Expand Up @@ -164,7 +171,9 @@

.default-before-script:
before_script:
- source .gitlab/helper_functions.sh
- *setup-network-certs
- *setup-artifactory
- *stop_contrib_external_build
- *clone_and_export_variables
- *check_build_files_are_up_to_date
Expand Down Expand Up @@ -196,14 +205,28 @@
- .default-cache
- .default-before-script


.trigger-slack-notification:
stage: .post
trigger:
strategy: depend
include:
- local: .gitlab/ci/.gitlab-ci.slack-notify.yml

.validate_content_test_conf_branch_merged:
- section_start "Validate content-test-conf Branch Merged"
- |
if [[ "${CI_COMMIT_BRANCH}" = "master" ]]; then
echo "Skipping, Should not run on master branch."
elif [ 'true' = $(./Tests/scripts/check_if_branch_exist.sh -u "gitlab-ci-token" -t "${CI_JOB_TOKEN}" -h "code.pan.run" --repo "xsoar/content-test-conf" -b "${CI_COMMIT_BRANCH}") ]; then
RED='\033[0;31m'
NC='\033[0m'
echo -e "${RED}ERROR: Found a branch with the same name:${CI_COMMIT_BRANCH} in contest-test-conf repository.\n Merge it in order to merge the current branch into content repo.${NC}"
job-done
exit 1
else
echo "Couldn't find a branch with the name:${CI_COMMIT_BRANCH} in contest-test-conf repository."
fi
- section_end "Validate content-test-conf Branch Merged"

.unittests-and-lint-settings:
tags:
Expand Down Expand Up @@ -333,26 +356,6 @@
- section_start "Check Spelling"
- python3 ./Tests/scripts/circleci_spell_checker.py $CI_COMMIT_BRANCH
- section_end "Check Spelling"
- section_start "Validate content-test-conf Branch Merged"
- |
if [[ $CI_COMMIT_BRANCH = "master" ]]; then
echo "Skipping, Should not run on master branch."
else
# replace slashes ('/') in the branch name, if exist, with underscores ('_')
UNDERSCORE_CI_BRANCH=${CI_COMMIT_BRANCH//\//_}
wget --header "Accept: application/vnd.github.v3.raw" --header "Authorization: token $GITHUB_TOKEN" "https://github.com/demisto/content-test-conf/archive/$UNDERSCORE_CI_BRANCH.zip" --no-check-certificate -q || {
if [ "$?" != "0" ]; then
echo "No such branch in content-test-conf: $UNDERSCORE_CI_BRANCH"
else
RED='\033[0;31m'
NC='\033[0m'
echo -e "${RED}ERROR: Found a branch with the same name in contest-test-conf conf.json - $UNDERSCORE_CI_BRANCH.\n Merge it in order to merge the current branch into content repo.${NC}"
job-done
exit 1
fi
}
fi
- section_end "Validate content-test-conf Branch Merged"
- section_start "Validate landingPageSections.json"
- echo "Download index.zip"
- INDEX_PATH=$(mktemp)
Expand All @@ -369,6 +372,7 @@

- python3 Tests/Marketplace/validate_landing_page_sections.py -i $UNZIP_PATH
- section_end "Validate landingPageSections.json"
- !reference [ .validate_content_test_conf_branch_merged ] # This section should be the last one in the script, do not move it.
- job-done

.jobs-done-check:
Expand Down
Loading