From 65e8a41b906a6b69a152bafcde0f2c03d547eae6 Mon Sep 17 00:00:00 2001 From: An Phi Date: Thu, 31 Aug 2023 15:49:53 -0400 Subject: [PATCH] omnibus: fix test for GHC variant (#745) --- installers/omnibus/variants/ghc/test.sh | 33 +++---------------------- 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/installers/omnibus/variants/ghc/test.sh b/installers/omnibus/variants/ghc/test.sh index d5670b4d2..1877c0427 100644 --- a/installers/omnibus/variants/ghc/test.sh +++ b/installers/omnibus/variants/ghc/test.sh @@ -34,40 +34,13 @@ check_status() done } -# Test for SDLC with In-Memory backend -echo -e "${YELLOW}Testing SDLC with In-Memory backend...${NC}" +# Test for SDLC with File-System backend +echo -e "${YELLOW}Testing SDLC with File-System backend...${NC}" TEST_CONTAINER=$(docker run \ --platform=linux/amd64 \ -dit \ -p $LEGEND_OMNIBUS_NGINX_PORT:$LEGEND_OMNIBUS_NGINX_PORT \ - --env LEGEND_OMNIBUS_CONFIG_SDLC_MODE="in-memory" \ - $IMAGE) -docker logs -f $TEST_CONTAINER & -check_status -docker stop $TEST_CONTAINER - -# Test for SDLC with Gitlab (PAT) backend -echo -e "${YELLOW}Testing SDLC with Gitlab (PAT) backend...${NC}" -TEST_CONTAINER=$(docker run \ - --platform=linux/amd64 \ - -dit \ - -p $LEGEND_OMNIBUS_NGINX_PORT:$LEGEND_OMNIBUS_NGINX_PORT \ - --env LEGEND_OMNIBUS_CONFIG_SDLC_MODE="gitlab-pat" \ - --env LEGEND_OMNIBUS_CONFIG_GITLAB_PAT="$LEGEND_OMNIBUS_CONFIG_GITLAB_PAT" \ - $IMAGE) -docker logs -f $TEST_CONTAINER & -check_status -docker stop $TEST_CONTAINER - -# Test for SDLC with Gitlab (OAuth) backend -echo -e "${YELLOW}Testing SDLC with Gitlab (OAuth) backend...${NC}" -TEST_CONTAINER=$(docker run \ - --platform=linux/amd64 \ - -dit \ - -p $LEGEND_OMNIBUS_NGINX_PORT:$LEGEND_OMNIBUS_NGINX_PORT \ - --env LEGEND_OMNIBUS_CONFIG_SDLC_MODE="gitlab-oauth" \ - --env LEGEND_OMNIBUS_CONFIG_GITLAB_OAUTH_APPLICATION_ID="$LEGEND_OMNIBUS_CONFIG_GITLAB_OAUTH_APPLICATION_ID" \ - --env LEGEND_OMNIBUS_CONFIG_GITLAB_OAUTH_APPLICATION_SECRET="$LEGEND_OMNIBUS_CONFIG_GITLAB_OAUTH_APPLICATION_SECRET" \ + --env LEGEND_OMNIBUS_CONFIG_SDLC_MODE="fileSystem" \ $IMAGE) docker logs -f $TEST_CONTAINER & check_status