You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/08/09 12:53:51 UTC

[GitHub] [camel-quarkus] JiriOndrusek opened a new issue, #3970: Google-pubsub cover authentication options with tests

JiriOndrusek opened a new issue, #3970:
URL: https://github.com/apache/camel-quarkus/issues/3970

   When google-pubsuv test coverage was improved (see [ticket](https://github.com/apache/camel-quarkus/issues/3910)), several authentication configurations without coverage were discovered. It would be nice to cover all of them (if possible). Manual test may be required for such cases.
   
   [Documentation](https://cloud.google.com/docs/authentication#:~:text=You%20need%20to%20pass%20the,using%20the%20GOOGLE_APPLICATION_CREDENTIALS%20environment%20variable.) of the google cloud lists following configurations:
   
   - `Accessing public data anonymously`- covered via emulated tests.
   - `Accessing private data on behalf of an end user` **NOT** covered.
   - `Accessing private data on behalf of a service account inside Google Cloud environments - Environment-provided service account` - **NOT** covered.
   - `Accessing private data on behalf of a service account outside Google Cloud environments - Service account key` - covered via real account tests.
   
   Cover also the call of the api from Camel from the `GooglePubsubComponent` (see [code](https://github.com/apache/camel/blob/main/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubComponent.java#L223))
   
   >ServiceAccountCredentials.fromStream(ResourceHelper
                               .resolveMandatoryResourceAsInputStream(getCamelContext(), endpoint.getServiceAccountKey()))
                               .createScoped(PublisherStubSettings.getDefaultServiceScopes()))
   
   
   


-- 
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: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org