This test sets up and configures local instance of the token server and tests that clients are able to use it.
Prerequisites:
luci-token-server-test-1
service account belonging to this project.gcloud init
). It magically enables GAE dev server to use real OAuth tokens (belonging to your account) when making URL fetch calls (in particular to Cloud IAM).$GOROOT
and $GOPATH
properly configured, $GOBIN
in $PATH
.openssl
tool available in $PATH
.gae.py
tool available in $PATH
.How to run the test:
devserver.sh
. It will start the token server.clrserver.sh
. It will start a server that serves CRLs.run_test.sh
to execute the actual test.Keeping other two services in separate tabs is helpful for two reasons:
Ctrl+C
in a tab seems to do the trick more reliably.