|
| 1 | +# Copyright © 2023 Cask Data, Inc. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | +# use this file except in compliance with the License. You may obtain a copy of |
| 5 | +# the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | +# License for the specific language governing permissions and limitations under |
| 13 | +# the License. |
| 14 | + |
| 15 | +@Controlcenter |
| 16 | + |
| 17 | +Feature: Controlcenter - Validate control center page flow |
| 18 | + |
| 19 | + Scenario: Verify user is able to click the control center tab and successfully navigates to control center page |
| 20 | + Given Open Datafusion Project to configure pipeline |
| 21 | + Then Click on the Hamburger bar on the left panel |
| 22 | + Then Click on Control Center link from the hamburger menu |
| 23 | + Then Verify that the user is navigated to control center page successfully |
| 24 | + |
| 25 | + @BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST |
| 26 | + Scenario: Verify that user is able to create a pipeline and then validate the presence of created pipeline in control center. |
| 27 | + Given Open Datafusion Project to configure pipeline |
| 28 | + Then Click on the Hamburger bar on the left panel |
| 29 | + Then Click on Control Center link from the hamburger menu |
| 30 | + Then Click on the Plus Green Button to import the pipelines |
| 31 | + Then Verify user is able to click on the create button to create a pipeline successfully |
| 32 | + When Expand Plugin group in the LHS plugins list: "Source" |
| 33 | + When Select plugin: "BigQuery" from the plugins list as: "Source" |
| 34 | + When Expand Plugin group in the LHS plugins list: "Sink" |
| 35 | + When Select plugin: "BigQuery" from the plugins list as: "Sink" |
| 36 | + Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection |
| 37 | + Then Navigate to the properties page of plugin: "BigQuery" |
| 38 | + And Enter input plugin property: "referenceName" with value: "Reference" |
| 39 | + And Replace input plugin property: "project" with value: "projectId" |
| 40 | + And Enter input plugin property: "datasetProject" with value: "projectId" |
| 41 | + And Replace input plugin property: "dataset" with value: "dataset" |
| 42 | + Then Override Service account details if set in environment variables |
| 43 | + And Enter input plugin property: "table" with value: "bqSourceTable" |
| 44 | + Then Click on the Get Schema button |
| 45 | + Then Validate "BigQuery" plugin properties |
| 46 | + And Close the Plugin Properties page |
| 47 | + Then Navigate to the properties page of plugin: "BigQuery2" |
| 48 | + Then Replace input plugin property: "project" with value: "projectId" |
| 49 | + Then Override Service account details if set in environment variables |
| 50 | + Then Enter input plugin property: "datasetProject" with value: "projectId" |
| 51 | + Then Enter input plugin property: "referenceName" with value: "BQReferenceName" |
| 52 | + Then Enter input plugin property: "dataset" with value: "dataset" |
| 53 | + Then Enter input plugin property: "table" with value: "bqTargetTable" |
| 54 | + Then Validate "BigQuery" plugin properties |
| 55 | + And Close the Plugin Properties page |
| 56 | + Then Save the pipeline |
| 57 | + Then Deploy the pipeline |
| 58 | + Then Run the Pipeline in Runtime |
| 59 | + Then Wait till pipeline is in running state |
| 60 | + Then Verify the pipeline status is "Succeeded" |
| 61 | + Then Click on the Hamburger bar on the left panel |
| 62 | + Then Click on Control Center link from the hamburger menu |
| 63 | + Then Verify the pipeline created successfully is present in control center page |
| 64 | + |
| 65 | + @BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST |
| 66 | + Scenario: Verify that user is able to delete the created pipeline in control center successfully. |
| 67 | + Given Open Datafusion Project to configure pipeline |
| 68 | + Then Click on the Hamburger bar on the left panel |
| 69 | + Then Click on Control Center link from the hamburger menu |
| 70 | + Then Click on the Plus Green Button to import the pipelines |
| 71 | + Then Verify user is able to click on the create button to create a pipeline successfully |
| 72 | + When Expand Plugin group in the LHS plugins list: "Source" |
| 73 | + When Select plugin: "BigQuery" from the plugins list as: "Source" |
| 74 | + When Expand Plugin group in the LHS plugins list: "Sink" |
| 75 | + When Select plugin: "BigQuery" from the plugins list as: "Sink" |
| 76 | + Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection |
| 77 | + Then Navigate to the properties page of plugin: "BigQuery" |
| 78 | + And Enter input plugin property: "referenceName" with value: "Reference" |
| 79 | + And Replace input plugin property: "project" with value: "projectId" |
| 80 | + And Enter input plugin property: "datasetProject" with value: "projectId" |
| 81 | + And Replace input plugin property: "dataset" with value: "dataset" |
| 82 | + Then Override Service account details if set in environment variables |
| 83 | + And Enter input plugin property: "table" with value: "bqSourceTable" |
| 84 | + Then Click on the Get Schema button |
| 85 | + Then Validate "BigQuery" plugin properties |
| 86 | + And Close the Plugin Properties page |
| 87 | + Then Navigate to the properties page of plugin: "BigQuery2" |
| 88 | + Then Replace input plugin property: "project" with value: "projectId" |
| 89 | + Then Override Service account details if set in environment variables |
| 90 | + Then Enter input plugin property: "datasetProject" with value: "projectId" |
| 91 | + Then Enter input plugin property: "referenceName" with value: "BQReferenceName" |
| 92 | + Then Enter input plugin property: "dataset" with value: "dataset" |
| 93 | + Then Enter input plugin property: "table" with value: "bqTargetTable" |
| 94 | + Then Validate "BigQuery" plugin properties |
| 95 | + And Close the Plugin Properties page |
| 96 | + Then Save the pipeline |
| 97 | + Then Deploy the pipeline |
| 98 | + Then Click on the Hamburger bar on the left panel |
| 99 | + Then Click on Control Center link from the hamburger menu |
| 100 | + Then Click on the delete icon of the created pipeline and pipeline should get deleted successfully |
| 101 | + Then Verify the deleted pipeline is not present in the control center page |
0 commit comments