Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18277

Google Pubsub: MessageOrderingIT test does not work with real account

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.18.0
    • Future
    • camel-google-pubsub, tests
    • 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)
       

       

      Attachments

        Activity

          People

            jondruse Jiri Ondrusek
            jondruse Jiri Ondrusek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: