You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jiri Ondrusek (Jira)" <ji...@apache.org> on 2022/07/18 13:19:00 UTC
[jira] [Created] (CAMEL-18277) Google Pubsub: MessageOrderingIT test does not work with real account
Jiri Ondrusek created CAMEL-18277:
-------------------------------------
Summary: Google Pubsub: MessageOrderingIT test does not work with real account
Key: CAMEL-18277
URL: https://issues.apache.org/jira/browse/CAMEL-18277
Project: Camel
Issue Type: Bug
Components: camel-google-pubsub, tests
Affects Versions: 3.18.0
Reporter: Jiri Ondrusek
Assignee: Jiri Ondrusek
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.
{code:java}
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)
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)