From 2b1912760d2d97d3d9be676cedf73b05b45df79b Mon Sep 17 00:00:00 2001 From: gabrie30 Date: Sun, 18 May 2025 12:09:38 -0700 Subject: [PATCH] Update integration-tests.sh (#533) --- scripts/local-gitlab/integration-tests.sh | 691 +++++++++++----------- 1 file changed, 345 insertions(+), 346 deletions(-) diff --git a/scripts/local-gitlab/integration-tests.sh b/scripts/local-gitlab/integration-tests.sh index 0903255..12d9a3a 100755 --- a/scripts/local-gitlab/integration-tests.sh +++ b/scripts/local-gitlab/integration-tests.sh @@ -6,8 +6,7 @@ LOCAL_GITLAB_GHORG_DIR=${1:-"${HOME}/ghorg"} TOKEN=${2:-'password'} GITLAB_URL=${3:-'http://gitlab.example.com'} - -# Delete all folders that start with local-gitlab-v15- in the LOCAL_GITLAB_GHORG_DIR +# Delete all folders that start with local-gitlab-latest- in the LOCAL_GITLAB_GHORG_DIR for dir in "${LOCAL_GITLAB_GHORG_DIR}"/local-gitlab-*; do if [ -d "$dir" ]; then rm -rf "$dir" @@ -31,15 +30,15 @@ done ############ CLONE AND TEST ALL-GROUPS, PRESERVE DIR, OUTPUT DIR, SNIPPETS ############ -ghorg clone all-groups --scm=gitlab --base-url="${GITLAB_URL}" --token="$TOKEN" --preserve-dir --output-dir=local-gitlab-v15-repos -ghorg clone all-groups --scm=gitlab --base-url="${GITLAB_URL}" --token="$TOKEN" --preserve-dir --output-dir=local-gitlab-v15-repos +ghorg clone all-groups --scm=gitlab --base-url="${GITLAB_URL}" --token="$TOKEN" --preserve-dir --output-dir=local-gitlab-latest-repos +ghorg clone all-groups --scm=gitlab --base-url="${GITLAB_URL}" --token="$TOKEN" --preserve-dir --output-dir=local-gitlab-latest-repos -GOT=$( ghorg ls local-gitlab-v15-repos/local-gitlab-group1 | grep -o 'local-gitlab-v15-repos/local-gitlab-group1.*') +GOT=$( ghorg ls local-gitlab-latest-repos/local-gitlab-group1 | grep -o 'local-gitlab-latest-repos/local-gitlab-group1.*') WANT=$(cat <