| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Thanks for the pr! Could you add a simple test?
Sorry, something went wrong.
|
Added a unit test but since everything is mocked it doesn't actually call HttpBigQueryRpc.listTables (nor as any other listTables test). Please let me know if there is any other way to properly test this change. |
Sorry, something went wrong.
|
There's a non-mocked integration test for list tables in ITBigQueryTest which you could add to, or write a new IT based on it |
Sorry, something went wrong.
|
Thanks. I wasn't able to run the ITBigQueryTests due to ITBigQueryTest.beforeClass throws java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder.. Trying things with a builder didn't help, getting null pointer exceptions. Are there any prerequisite for executing integration tests? |
Sorry, something went wrong.
|
You'll need to set the environment variables GOOGLE_CLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS to specify the project for the test to run on and the credentials json file for that account |
Sorry, something went wrong.
|
The BigtableIT tests may require configuration via system properties. For CI, we set them here. We set bigtable.env, bigtable.project, bigtable.instance, and bigtable.bigtable. |
Sorry, something went wrong.
|
Thanks guys, I found the env variables needed but obviously I don't have credentials to access that project so the test fails on 401 Unauthorized |
Sorry, something went wrong.
|
The idea would be to use your own project instead to test, setting the values of the environment variables to be your own project and credentials |
Sorry, something went wrong.
|
@vvviiimmm, please run the following command to clean up the code formatting:
|
Sorry, something went wrong.
|
@vvviiimmm, please run the following command to clean up the code formatting:
|
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #4306 +/- ##
============================================
- Coverage 49.17% 49.16% -0.01%
- Complexity 20988 21915 +927
============================================
Files 1996 2078 +82
Lines 194629 207084 +12455
Branches 21796 24084 +2288
============================================
+ Hits 95702 101813 +6111
- Misses 90817 97128 +6311
- Partials 8110 8143 +33
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
@JesseLovelace @kolea2 is this something we should:
|
Sorry, something went wrong.
|
@JesseLovelace, can you please finish this review? |
Sorry, something went wrong.
|
@sduskis sure, i will add that to IT test and raise a new PR. |
Sorry, something went wrong.
|
This is replaced by #4701 which includes these changes + integration tests |
Sorry, something went wrong.
* chore: Add gcp resource name span attribute * Update google-cloud-spanner/src/test/java/com/google/cloud/spanner/OpenTelemetrySpanTest.java Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * chore: Add gcp resource name span attribute --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
While getting the list of tables (list endpoint) the information about partitioning and creation time is getting lost. Somewhat related to #3097.