googleapis / google-cloud-rust

Google Cloud Platform Rust [Experimental] Client Libraries
Apache License 2.0
276 stars 20 forks source link

Fix auth library integration tests to work in GHA #21

Open coryan opened 1 month ago

coryan commented 1 month ago

One of the auth library tests is really an integration test, it depends on things in the environment:

https://github.com/googleapis/google-cloud-rust/blob/1e1ed307e39c16c18cfaf3895ec16d4138349353/auth/src/lib.rs#L354-L362

This test breaks under GHA. I do not know exactly what the problem might be. I am going to skip the test when GCE is not detected. That will unblock other development, and we can fix auth later.

coryan commented 4 weeks ago

If you have Docker installed in your workstation you can repro locally using:

docker run --user $UID --workdir /workspace  --volume $PWD:/workspace  \
    --rm -it rust:latest cargo test --package google-cloud-auth