This test sets up and configures local instance of the token server and tests that clients are able to use it.
luci-token-server-test-1service 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).
openssltool available in
gae.pytool available in
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.shto execute the actual test.
Keeping other two services in separate tabs is helpful for two reasons:
Ctrl+Cin a tab seems to do the trick more reliably.