directory
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Dec 19, 2024
License: MIT
Opens a new window with license information.
README
¶
AX learn tests
To run these test, you can use the included DOCKERFILE via docker or podman.
Certificates
- Start the the go-gcsproxy
- Use an environment variable for the generated certs so we can pick them up for the test client.
- gcs-goproxy with env var set: PROXY_CERT_PATH=<root path>/go-gcsproxy/test
GCP authentication
- The container expects the ADC key in ~/.config/gcloud
- This is populated automatically if you run
sudo gcloud application-default login
on the host.
Run tests
GO-GCSPROXY
For now, GO-GCSPROXY needs to use a patched go, net/http is updated to handle TE:identity.
Follow the instruction below to build a patched go command and toolchain:
git clone git@github.com:golang/go.git
git checkout go1.23.0
go-gcsproxy uses 1.23
- Make changes to [your-go-repo-root]/src/net/http/transfer.go. Search "eshen" in here as refernce.
- Run
make.bash
under [your-go-repo-root]/src/. It generates go command under bin/ and toolchain under pkg/
- Add [your-go-repo-root]/bin/ into PATH env, so the patched go command and toolchain will be used when you launch go-gcsproxy.
- Go to go-gcsproxy directory and launch the proxy(make uses the patched go).
Directories
¶
Click to show internal directories.
Click to hide internal directories.