Skip to content

Conversation

@shunghsiyu
Copy link
Contributor

In automl_v1beta1.TablesClient.init(), the credentials are not given to AutoMlClient and PredictionServiceClient, causing inconsistency between the credentials that was passed and the credentials that was actually used for API calls.

This commit ensures that credentials are passed, and add two unittests to catch the behavior.

Fixes #9490

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 17, 2019
In automl_v1beta1.TablesClient.__init__(), the credentials
are not given to AutoMlClient and PredictionServiceClient,
causing inconsistency between the credentials that was passed
and the credentials that was actually used for API calls.

This commit ensures that credentials are passed, and add two
unittests to catch the behavior.

Fixes googleapis#9490
@shunghsiyu shunghsiyu force-pushed the automl_table_client_credentials_fix branch from 60676df to a6a2d05 Compare October 17, 2019 09:21
@shunghsiyu
Copy link
Contributor Author

I'm not sure what is the best way to implements the tests, as the two test cases are actually quite similar.

Open to suggestions and edits.

@busunkim96 busunkim96 requested a review from sirtorry October 17, 2019 16:43
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 17, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 17, 2019
@busunkim96 busunkim96 merged commit 9e5ca9a into googleapis:master Oct 28, 2019
This was referenced Oct 29, 2019
parthea pushed a commit that referenced this pull request Oct 21, 2023
…9491)

In automl_v1beta1.TablesClient.__init__(), the credentials
are not given to AutoMlClient and PredictionServiceClient,
causing inconsistency between the credentials that was passed
and the credentials that was actually used for API calls.

This commit ensures that credentials are passed, and add two
unittests to catch the behavior.

Fixes #9490
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AutoML: pass credentials from Table client to underlying client.

5 participants