You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 23:04:57 UTC

[GitHub] [beam] kennknowles opened a new issue, #19263: BigQueryIO test using FakeBigQueryServices

kennknowles opened a new issue, #19263:
URL: https://github.com/apache/beam/issues/19263

   The BigQueryIO can be tested using various FakeServices like
    * [FakeBigQueryServices.java](https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/FakeBigQueryServices.java)
    * [FakeJobService.java](https://github.com/apache/beam/blob/release-2.4.0/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/FakeJobService.java)
    * etc
   
   when we can create FakeBigQueryServices object using FakeDatasetService and FakeJobService. The FakeBigQueryServices should be used with BigQueryIO using withTestServices in order to test in a fake/mock way.
   
   The BigQueryIO has withTestServices annotated as  VisibleForTesting, that means if anybody would like to use FakeBigQueryServices they have to create test cases in test cases under  org.apache.beam.sdk.io.gcp.bigquery package only.
   
   It makes sense to provide these FakeBigQueryServices and testing BigQueryIO, in a way that it can be used by application builder to test them from their application code with any package implementation. 
   
   Imported from Jira [BEAM-6642](https://issues.apache.org/jira/browse/BEAM-6642). Original Jira may contain additional context.
   Reported by: asethia.


-- 
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: github-unsubscribe@beam.apache.org.apache.org

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