Skip to content

Commit

Permalink
omnibus: fix test for GHC variant (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
akphi authored Aug 31, 2023
1 parent 02e05b8 commit 65e8a41
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions installers/omnibus/variants/ghc/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65e8a41

Please sign in to comment.