Details
-
Test
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.18.0
-
None
-
Unknown
Description
I'm working on test coverage of camel-pubsub extension in Camel-quarkus ([issue|https://github.com/apache/camel-quarkus/issues/3910).]
I noticed:
- There is no easy way of running integration tests with the real account. It would be nice to have an option to export for example a several env. properties (like export GOOGLE_APPLICATION_CREDENTIALS=.. and export GOOGLE_PROJECT_ID=...) and allow execution of the tests with the real account.
- MessageOrderingIT does not work with the real cloud account. You can see an exception, which is probably caused by the use of regional endpoint.
java.util.concurrent.ExecutionException: com.google.api.gax.rpc.UnauthenticatedException: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:588)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:567)
at com.google.api.core.AbstractApiFuture.get(AbstractApiFuture.java:55)
at org.apache.camel.component.google.pubsub.GooglePubsubProducer.send(GooglePubsubProducer.java:117)