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: [email protected]

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

Reply via email to