tests/api: fix run.sh and docker frontend host
Bugs in the tests/api/run.sh script are fixed:
* The -frontend flag now refers to the correct host
* GO_DISCOVERY_DYNAMIC_CONFIG is set to the empty string, since no
experiments are relevant
Change-Id: If03bcb80358caa54ab767975a4d6af9c6978f434
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/346537
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
diff --git a/devtools/docker/compose.yaml b/devtools/docker/compose.yaml
index 9604eaa..70ea027 100644
--- a/devtools/docker/compose.yaml
+++ b/devtools/docker/compose.yaml
@@ -50,7 +50,7 @@
<<: *go-variables
WAITFORIT_TIMEOUT: 300
entrypoint: ./third_party/wait-for-it/wait-for-it.sh frontend:8080 -- go run
- command: "tests/api/main.go -frontend http://host.docker.internal:8080 -all compare "
+ command: "tests/api/main.go -frontend http://frontend:8080 -all compare "
volumes:
- ../../:/pkgsite
working_dir: /pkgsite
diff --git a/tests/api/run.sh b/tests/api/run.sh
index 352d48f..f091d83 100755
--- a/tests/api/run.sh
+++ b/tests/api/run.sh
@@ -12,6 +12,7 @@
trap docker_cleanup EXIT
trap docker_error ERR
+ export GO_DISCOVERY_CONFIG_DYNAMIC=""
export GO_DISCOVERY_DATABASE_NAME=discovery_api_test
export GO_DISCOVERY_SEED_DB_FILE=tests/api/seed.txt
dockercompose build && dockercompose run seeddb && dockercompose run api