oscerd opened a new pull request, #30194:
URL: https://github.com/apache/camel/pull/30194

   **Depends on #29828** (CAMEL-26623), which adds the gRPC address of the 
Floci GCP container: until #29828 is merged,
   this PR also shows its commit. It stays a draft until then.
   
   ## Description
   
   The integration tests of camel-google-secret-manager ran only with a real 
project. [Floci GCP](https://github.com/floci-io/floci-gcp)
   emulates Secret Manager over gRPC and REST: secrets, versions, access, the 
`latest` alias, disable, enable and destroy,
   and the Google test-infra has its container since #29818. This PR:
   
   - adds a `camel-test-infra-google-secret-manager` module: a local Secret 
Manager service on Floci GCP (`camel infra run
     google secret-manager`), which gives its gRPC address and a project id 
(`test-project`: Floci GCP accepts any), and a
     remote one for the project of the `google.secret.manager.project.id` 
system property;
   - runs `GoogleSecretManagerIT` against it: on Floci GCP by default, through 
a client of the emulator (plain text gRPC, no
     credentials), which the endpoints take as their `client` from the registry 
and which is closed when the context stops,
     since the endpoints do not close a client they did not build; and with 
`-Dgoogle.instance.type=remote` against the
     project of `google.secret.manager.project.id`, with the application 
default credentials, such as the key of
     `GOOGLE_APPLICATION_CREDENTIALS`. The test used the project `myProject` 
and passed the path of that key as
     `serviceAccountKey`, which the default credentials read anyway;
   - skips the integration tests on ppc64le and s390x, where the Floci GCP 
image is not available;
   - regenerates the test-infra metadata: `google secret-manager` at version 
`0.12.0`.
   
   `GoogleSecretManagerPropertiesNoEnvSourceTestIT` stays as it is, run only 
against a real project: the `gcp:` properties
   function builds its own client from the service account key and the project 
of the vault configuration, and cannot be
   pointed at another address.
   
   ## Testing
   
   - `GoogleSecretManagerIT` passes against Floci GCP 0.12.0, in 3 runs in a 
row; the unit tests pass.
   - With `-Dgoogle.instance.type=remote`, no container starts and the 
endpoints take the application default credentials
     (checked without any: the test fails on `Your default credentials were not 
found`).
   - Full reactor build; the test-infra metadata is regenerated.
   
   _Claude Code on behalf of Andrea Cosentino_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to