@@ -345,3 +345,154 @@ Feature: BigQuery sink - Verification of BigQuery to BigQuery successful data tr
345345 Then Close the pipeline logs
346346 Then Verify the pipeline status is "Succeeded"
347347 Then Validate the values of records transferred to BQ sink is equal to the values from source BigQuery table
348+
349+ @BQ_INSERT_SOURCE_TEST @BQ_SINK_TEST @EXISTING_BQ_CONNECTION @BigQuery_Sink_Required @ITN_TEST
350+ Scenario Outline :Validate successful records transfer from BigQuery to BigQuery with different time partioning type options
351+ Given Open Datafusion Project to configure pipeline
352+ When Expand Plugin group in the LHS plugins list: "Source"
353+ When Select plugin: "BigQuery" from the plugins list as: "Source"
354+ When Expand Plugin group in the LHS plugins list: "Sink"
355+ When Select plugin: "BigQuery" from the plugins list as: "Sink"
356+ Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
357+ Then Navigate to the properties page of plugin: "BigQuery"
358+ Then Click plugin property: "switch-useConnection"
359+ Then Click on the Browse Connections button
360+ Then Select connection: "bqConnectionName"
361+ Then Click on the Browse button inside plugin properties
362+ Then Select connection data row with name: "dataset"
363+ Then Select connection data row with name: "bqSourceTable"
364+ Then Wait till connection data loading completes with a timeout of 60 seconds
365+ Then Verify input plugin property: "dataset" contains value: "dataset"
366+ Then Verify input plugin property: "table" contains value: "bqSourceTable"
367+ Then Click on the Get Schema button
368+ Then Validate "BigQuery" plugin properties
369+ And Close the Plugin Properties page
370+ Then Navigate to the properties page of plugin: "BigQuery2"
371+ Then Click plugin property: "useConnection"
372+ Then Click on the Browse Connections button
373+ Then Select connection: "bqConnectionName"
374+ Then Enter input plugin property: "referenceName" with value: "BQSinkReferenceName"
375+ Then Click on the Browse button inside plugin properties
376+ Then Click SELECT button inside connection data row with name: "dataset"
377+ Then Wait till connection data loading completes with a timeout of 60 seconds
378+ Then Verify input plugin property: "dataset" contains value: "dataset"
379+ Then Enter input plugin property: "table" with value: "bqTargetTable"
380+ And Select radio button plugin property: "operation" with value: "upsert"
381+ And Select radio button plugin property: "timePartitioningType" with value: "<options>"
382+ Then Click on the Add Button of the property: "relationTableKey" with value:
383+ | TableKey |
384+ Then Validate "BigQuery" plugin properties
385+ And Close the Plugin Properties page
386+ Then Save the pipeline
387+ Then Preview and run the pipeline
388+ Then Wait till pipeline preview is in running state
389+ Then Open and capture pipeline preview logs
390+ Then Verify the preview run status of pipeline in the logs is "succeeded"
391+ Then Close the pipeline logs
392+ Then Close the preview
393+ Then Deploy the pipeline
394+ Then Run the Pipeline in Runtime
395+ Then Wait till pipeline is in running state
396+ Then Open and capture logs
397+ Then Close the pipeline logs
398+ Then Verify the pipeline status is "Succeeded"
399+ Then Validate the values of records transferred to BQ sink is equal to the values from source BigQuery table
400+ Examples :
401+ | options |
402+ | DAY |
403+ | HOUR |
404+ | MONTH |
405+ | YEAR |
406+
407+ @BQ_SOURCE_DATATYPE_TEST @BQ_SINK_TEST
408+ Scenario :Validate successful records transfer from BigQuery to BigQuery with BQ Job Labels with Key and Value pairs
409+ Given Open Datafusion Project to configure pipeline
410+ When Expand Plugin group in the LHS plugins list: "Source"
411+ When Select plugin: "BigQuery" from the plugins list as: "Source"
412+ When Expand Plugin group in the LHS plugins list: "Sink"
413+ When Select plugin: "BigQuery" from the plugins list as: "Sink"
414+ Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
415+ Then Navigate to the properties page of plugin: "BigQuery"
416+ And Enter input plugin property: "referenceName" with value: "Reference"
417+ And Replace input plugin property: "project" with value: "projectId"
418+ And Enter input plugin property: "datasetProject" with value: "projectId"
419+ And Replace input plugin property: "dataset" with value: "dataset"
420+ Then Override Service account details if set in environment variables
421+ And Enter input plugin property: "table" with value: "bqSourceTable"
422+ Then Click on the Get Schema button
423+ Then Validate "BigQuery" plugin properties
424+ And Close the Plugin Properties page
425+ Then Navigate to the properties page of plugin: "BigQuery2"
426+ Then Replace input plugin property: "project" with value: "projectId"
427+ Then Override Service account details if set in environment variables
428+ Then Enter input plugin property: "datasetProject" with value: "projectId"
429+ Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
430+ Then Enter input plugin property: "dataset" with value: "dataset"
431+ Then Enter input plugin property: "table" with value: "bqTargetTable"
432+ Then Click plugin property: "truncateTable"
433+ Then Click plugin property: "updateTableSchema"
434+ Then Click on the Add Button of the property: "jobLabels" with value:
435+ | jobLabelKey |
436+ Then Click on the Add Button of the property: "jobLabels" with value:
437+ | jobLabelValue |
438+ Then Enter BigQuery sink property partition field "bqPartitionFieldTime"
439+ Then Validate "BigQuery" plugin properties
440+ Then Close the BigQuery properties
441+ Then Save the pipeline
442+ Then Preview and run the pipeline
443+ Then Wait till pipeline preview is in running state
444+ Then Open and capture pipeline preview logs
445+ Then Verify the preview run status of pipeline in the logs is "succeeded"
446+ Then Close the pipeline logs
447+ Then Close the preview
448+ Then Deploy the pipeline
449+ Then Run the Pipeline in Runtime
450+ Then Wait till pipeline is in running state
451+ Then Open and capture logs
452+ Then Verify the pipeline status is "Succeeded"
453+
454+ @BQ_SOURCE_DATATYPE_TEST @BQ_SINK_TEST
455+ Scenario :Validate successful records transfer from BigQuery to BigQuery with Partition Filter
456+ Given Open Datafusion Project to configure pipeline
457+ When Expand Plugin group in the LHS plugins list: "Source"
458+ When Select plugin: "BigQuery" from the plugins list as: "Source"
459+ When Expand Plugin group in the LHS plugins list: "Sink"
460+ When Select plugin: "BigQuery" from the plugins list as: "Sink"
461+ Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
462+ Then Navigate to the properties page of plugin: "BigQuery"
463+ And Enter input plugin property: "referenceName" with value: "Reference"
464+ And Replace input plugin property: "project" with value: "projectId"
465+ And Enter input plugin property: "datasetProject" with value: "projectId"
466+ And Replace input plugin property: "dataset" with value: "dataset"
467+ Then Override Service account details if set in environment variables
468+ And Enter input plugin property: "table" with value: "bqSourceTable"
469+ Then Click on the Get Schema button
470+ Then Validate "BigQuery" plugin properties
471+ And Close the Plugin Properties page
472+ Then Navigate to the properties page of plugin: "BigQuery2"
473+ Then Replace input plugin property: "project" with value: "projectId"
474+ Then Override Service account details if set in environment variables
475+ Then Enter input plugin property: "datasetProject" with value: "projectId"
476+ Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
477+ Then Enter input plugin property: "dataset" with value: "dataset"
478+ Then Enter input plugin property: "table" with value: "bqTargetTable"
479+ Then Click plugin property: "truncateTable"
480+ Then Click plugin property: "updateTableSchema"
481+ And Select radio button plugin property: "operation" with value: "upsert"
482+ Then Click on the Add Button of the property: "relationTableKey" with value:
483+ | TableKey |
484+ Then Enter input plugin property: "partitionFilter" with value: "bqPartitionFilter"
485+ Then Validate "BigQuery" plugin properties
486+ Then Close the BigQuery properties
487+ Then Save the pipeline
488+ Then Preview and run the pipeline
489+ Then Wait till pipeline preview is in running state
490+ Then Open and capture pipeline preview logs
491+ Then Verify the preview run status of pipeline in the logs is "succeeded"
492+ Then Close the pipeline logs
493+ Then Close the preview
494+ Then Deploy the pipeline
495+ Then Run the Pipeline in Runtime
496+ Then Wait till pipeline is in running state
497+ Then Open and capture logs
498+ Then Verify the pipeline status is "Succeeded"
0 commit comments