@@ -345,3 +345,152 @@ 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 JSON String order functionality
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+ Then Override Service account details if set in environment variables
419+ Then Override Service account details if set in environment variables
420+ And Enter input plugin property: "datasetProject" with value: "datasetprojectId"
421+ And Replace input plugin property: "dataset" with value: "dataset"
422+ And Replace input plugin property: "table" with value: "bqSourceTable"
423+ Then Click on the Get Schema button
424+ Then Validate "BigQuery" plugin properties
425+ And Close the Plugin Properties page
426+ Then Navigate to the properties page of plugin: "BigQuery2"
427+ Then Replace input plugin property: "project" with value: "projectId"
428+ Then Override Service account details if set in environment variables
429+ Then Enter input plugin property: "datasetProject" with value: "projectId"
430+ Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
431+ Then Enter input plugin property: "dataset" with value: "dataset"
432+ Then Enter input plugin property: "table" with value: "bqTargetTable"
433+ Then Click on the Add Button of the property: "jsonStringFields" with value:
434+ | jsonStringValue |
435+ Then Validate "BigQuery" plugin properties
436+ Then Close the BigQuery properties
437+ Then Save the pipeline
438+ Then Preview and run the pipeline
439+ Then Wait till pipeline preview is in running state
440+ Then Open and capture pipeline preview logs
441+ Then Verify the preview run status of pipeline in the logs is "succeeded"
442+ Then Close the pipeline logs
443+ Then Close the preview
444+ Then Deploy the pipeline
445+ Then Run the Pipeline in Runtime
446+ Then Wait till pipeline is in running state
447+ Then Open and capture logs
448+ Then Verify the pipeline status is "Succeeded"
449+ Then Validate the values of records transferred to BQ sink is equal to the values from source BigQuery table
450+
451+ @BQ_SOURCE_DATATYPE_TEST @BQ_SINK_TEST
452+ Scenario :Validate successful records transfer from BigQuery to BigQuery with BQ Job Labels with Key and Value pairs
453+ Given Open Datafusion Project to configure pipeline
454+ When Expand Plugin group in the LHS plugins list: "Source"
455+ When Select plugin: "BigQuery" from the plugins list as: "Source"
456+ When Expand Plugin group in the LHS plugins list: "Sink"
457+ When Select plugin: "BigQuery" from the plugins list as: "Sink"
458+ Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
459+ Then Navigate to the properties page of plugin: "BigQuery"
460+ And Enter input plugin property: "referenceName" with value: "Reference"
461+ And Replace input plugin property: "project" with value: "projectId"
462+ And Enter input plugin property: "datasetProject" with value: "projectId"
463+ And Replace input plugin property: "dataset" with value: "dataset"
464+ Then Override Service account details if set in environment variables
465+ And Enter input plugin property: "table" with value: "bqSourceTable"
466+ Then Click on the Get Schema button
467+ Then Validate "BigQuery" plugin properties
468+ And Close the Plugin Properties page
469+ Then Navigate to the properties page of plugin: "BigQuery2"
470+ Then Replace input plugin property: "project" with value: "projectId"
471+ Then Override Service account details if set in environment variables
472+ Then Enter input plugin property: "datasetProject" with value: "projectId"
473+ Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
474+ Then Enter input plugin property: "dataset" with value: "dataset"
475+ Then Enter input plugin property: "table" with value: "bqTargetTable"
476+ Then Click plugin property: "truncateTable"
477+ Then Click plugin property: "updateTableSchema"
478+ Then Click on the Add Button of the property: "jobLabels" with value:
479+ | jobLabelKey |
480+ Then Click on the Add Button of the property: "jobLabels" with value:
481+ | jobLabelValue |
482+ Then Enter BigQuery sink property partition field "bqPartitionFieldTime"
483+ Then Validate "BigQuery" plugin properties
484+ Then Close the BigQuery properties
485+ Then Save the pipeline
486+ Then Preview and run the pipeline
487+ Then Wait till pipeline preview is in running state
488+ Then Open and capture pipeline preview logs
489+ Then Verify the preview run status of pipeline in the logs is "succeeded"
490+ Then Close the pipeline logs
491+ Then Close the preview
492+ Then Deploy the pipeline
493+ Then Run the Pipeline in Runtime
494+ Then Wait till pipeline is in running state
495+ Then Open and capture logs
496+ Then Verify the pipeline status is "Succeeded"
0 commit comments