Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for service account file #6

Open
ametelski opened this issue Feb 8, 2022 · 3 comments
Open

Add support for service account file #6

ametelski opened this issue Feb 8, 2022 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@ametelski
Copy link

See docs https://cloud.google.com/pubsub/docs/quickstart-client-libraries#before-you-begin

@rollno748
Copy link
Owner

Hello,

Rightnow, If you copy the key value pair to the respective fields, it should work.
Do you want the feature to parse the json directly and autopopulate values to its respective fields ?

Thanks

@ametelski
Copy link
Author

ametelski commented Feb 9, 2022

Hi,

I plan to run this on our build server and we will be leveraging the environment variable GOOGLE_APPLICATION_CREDENTIALS to pass the credentials as outlined in step 7 of the docs. Looking at your code I think we just need a option to omit this line.

.setCredentialsProvider(createCredentialsProviderUsingJson(getCredentials())).build();

@rollno748
Copy link
Owner

I don't think GOOGLE_APPLICATION_CREDENTIALS environment variables can be pulled out directly. The GOOGLE_APPLICATION_CREDENTIALS is something used by the applications during the startup to set it as environment variables.

Why can't you use a JSON (K,V) pairs for your test - > That should work properly
I see no reason to add that option, because JMeter runs on a separate machine - If you pass the credentials.json to config element, you should be able to send events to teh topic

Correct me if I am wrong

@rollno748 rollno748 added the question Further information is requested label Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants