Supersaiyan101 opened a new pull request, #40921:
URL: https://github.com/apache/beam/pull/40921

   This PR ports `ReadSpannerSchemaTest` in 
`sdks/java/io/google-cloud-platform` off of the deprecated `DoFnTester`:
   
   - Modernized `simple()` and `pgSimple()` to run end-to-end within 
`TestPipeline`.
   - Used `ParDo.of(new ReadSpannerSchema(config, 
dialectView)).withSideInputs(dialectView)` on `Create.of((Void) null)` rather 
than manually passing side inputs to `DoFnTester`.
   - Used `PAssert.that(schemas).satisfies(...)` for asserting schema table, 
column, and primary key correctness.
   - Assigned explicit transform names (`"CreateDialect"` and `"CreateVoid"`) 
to ensure stable unique transform names in the pipeline graph.
   
   Verified with `./gradlew :sdks:java:io:google-cloud-platform:test --tests 
"org.apache.beam.sdk.io.gcp.spanner.ReadSpannerSchemaTest"` (2/2 passed) and 
formatted with `:sdks:java:io:google-cloud-platform:spotlessApply`.


-- 
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