sourcegraph/testing/backend_integration_test_p4.sh

27 lines
692 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
source ./testing/tools/integration_runner.sh || exit 1
tarball="$1"
image_name="$2"
gqltest="$3"
url="http://localhost:$PORT"
# Backend integration tests uses a specific GITHUB_TOKEN that is available as GHE_GITHUB_TOKEN
# because it refers to our internal GitHub enterprise instance used for testing.
GITHUB_TOKEN="$GHE_GITHUB_TOKEN"
export GITHUB_TOKEN
ALLOW_SINGLE_DOCKER_CODE_INSIGHTS="true"
export ALLOW_SINGLE_DOCKER_CODE_INSIGHTS
run_server_image "$tarball" "$image_name" "$url" "$PORT"
echo "--- integration test ./dev/gqltest -long (only TestSubRepoPermissions)"
"$gqltest" -test.run TestSubRepoPermissions -long -base-url "$url"
echo "--- done"