Skip to content

Commit be2c4f9

Browse files
control center cdap phase2
1 parent 2bd5171 commit be2c4f9

File tree

7 files changed

+479
-2
lines changed

7 files changed

+479
-2
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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 design time features.
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+
Scenario: Verify the Display message should be updated on the basis of filter selection as per the user
26+
Given Open Datafusion Project to configure pipeline
27+
Then Click on the Hamburger bar on the left panel
28+
Then Click on Control Center link from the hamburger menu
29+
Then Select dropdown : "Filter" with option value: "Artifacts" in control center
30+
Then Verify the all entities message is displayed with the filter selection: "allEntitiesDisplayedMessage"
31+
32+
Scenario: Verify User is able to switch between Schema and programs of the dataset.
33+
Given Open Datafusion Project to configure pipeline
34+
Then Click on the Hamburger bar on the left panel
35+
Then Click on Control Center link from the hamburger menu
36+
Then Verify the user is able to click dataset entity icon to navigate to details page
37+
Then Verify user is navigated to the details page of the dataset entity icon successfully
38+
Then Click on the schema link of the dataset entity details page
39+
Then Verify user is navigated to the schema details page of the dataset entity page
40+
Then Click on the programs link of the dataset entity details page
41+
Then Verify user is navigated to the programs details page of the dataset entity page
42+
43+
Scenario: Verify User is able to sort the entities with all the available filter types in control center.
44+
Given Open Datafusion Project to configure pipeline
45+
Then Click on the Hamburger bar on the left panel
46+
Then Click on Control Center link from the hamburger menu
47+
Then Select the sort by dropdown with option value: "Newest"
48+
Then Verify the entities are sorted by the newest option: "newFilterMessage"
49+
Then Select the sort by dropdown with option value: "Oldest"
50+
Then Verify the entities are sorted by the oldest option: "oldestFilterMessage"
51+
Then Select the sort by dropdown with option value: "A - Z"
52+
Then Verify the entities are sorted by the Z to A option: "aToZFilterMessage"
53+
Then Select the sort by dropdown with option value: "Z - A"
54+
Then Verify the entities are sorted by the A to Z option: "zToAFilterMessage"
55+
56+
Scenario: Verify the user is able to navigate to and from details page of a dataset inside control center
57+
Given Open Datafusion Project to configure pipeline
58+
Then Click on the Hamburger bar on the left panel
59+
Then Click on Control Center link from the hamburger menu
60+
Then Verify the user is able to click dataset entity icon to navigate to details page
61+
Then Click on view details tab of dataset entity
62+
Then Verify user is successfully navigated to details page of the dataset entity
63+
Then Click on the back link of the view details page of dataset entity
64+
Then Click on close link to close the details page of dataset entity
65+
Then Verify that the user is navigated to control center page successfully
66+
67+
Scenario: Verify user should be able to search the dataset using the added tags.
68+
Given Open Datafusion Project to configure pipeline
69+
Then Click on the Hamburger bar on the left panel
70+
Then Click on Control Center link from the hamburger menu
71+
Then Verify the user is able to click dataset entity icon to navigate to details page
72+
Then Click on the plus button to add the tag for a dataset entity
73+
Then Verify user is able to enter the values in tag input field: "testingTag"
74+
Then Enter the text in search tab "testingTag" in control center
75+
Then Verify the searched tag is displayed successfully on control center page: "searchedTagDisplayedMessage"
76+
77+
Scenario: Verify that User is able to click on the dataset entity and is navigated to the details page of the dataset successfully
78+
Given Open Datafusion Project to configure pipeline
79+
Then Click on the Hamburger bar on the left panel
80+
Then Click on Control Center link from the hamburger menu
81+
Then Verify the user is able to click dataset entity icon to navigate to details page
82+
Then Verify user is navigated to the details page of the dataset entity icon successfully
83+
84+
Scenario: Verify that tags counts should be increased and decreased in case User perform Add or Remove actions on dataset entity.
85+
Given Open Datafusion Project to configure pipeline
86+
Then Click on the Hamburger bar on the left panel
87+
Then Click on Control Center link from the hamburger menu
88+
Then Verify the user is able to click dataset entity icon to navigate to details page
89+
Then Click on the plus button to add the tag for a dataset entity
90+
Then Verify user is able to enter the values in tag input field: "testingTag"
91+
Then Verify the tag count of dataset entity when user adds the tag
92+
Then Click on the close icon of tag added
93+
Then Verify the tag count of dataset entity decreases message: "tagCountDecreaseMessage"
94+
Then Click on close link to close the details page of dataset entity
Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
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 run time features.
18+
19+
@BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST
20+
Scenario: Verify that user is able to create a pipeline and then validate the presence of created pipeline in control center.
21+
Given Open Datafusion Project to configure pipeline
22+
Then Click on the Hamburger bar on the left panel
23+
Then Click on Control Center link from the hamburger menu
24+
Then Click on the Plus Green Button to import the pipelines
25+
Then Click on create button to create a pipeline
26+
When Expand Plugin group in the LHS plugins list: "Source"
27+
When Select plugin: "BigQuery" from the plugins list as: "Source"
28+
When Expand Plugin group in the LHS plugins list: "Sink"
29+
When Select plugin: "BigQuery" from the plugins list as: "Sink"
30+
Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
31+
Then Navigate to the properties page of plugin: "BigQuery"
32+
And Enter input plugin property: "referenceName" with value: "Reference"
33+
And Replace input plugin property: "project" with value: "projectId"
34+
And Enter input plugin property: "datasetProject" with value: "projectId"
35+
And Replace input plugin property: "dataset" with value: "dataset"
36+
Then Override Service account details if set in environment variables
37+
And Enter input plugin property: "table" with value: "bqSourceTable"
38+
Then Click on the Get Schema button
39+
Then Validate "BigQuery" plugin properties
40+
And Close the Plugin Properties page
41+
Then Navigate to the properties page of plugin: "BigQuery2"
42+
Then Replace input plugin property: "project" with value: "projectId"
43+
Then Override Service account details if set in environment variables
44+
Then Enter input plugin property: "datasetProject" with value: "projectId"
45+
Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
46+
Then Enter input plugin property: "dataset" with value: "dataset"
47+
Then Enter input plugin property: "table" with value: "bqTargetTable"
48+
Then Validate "BigQuery" plugin properties
49+
And Close the Plugin Properties page
50+
Then Save the pipeline
51+
Then Deploy the pipeline
52+
Then Run the Pipeline in Runtime
53+
Then Wait till pipeline is in running state
54+
Then Verify the pipeline status is "Succeeded"
55+
Then Click on the Hamburger bar on the left panel
56+
Then Click on Control Center link from the hamburger menu
57+
Then Verify the pipeline created successfully is present in control center page
58+
59+
@BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST
60+
Scenario: Verify the user is able to set preferences for a deployed pipeline and use the same while running the pipeline.
61+
Given Open Datafusion Project to configure pipeline
62+
Then Click on the Hamburger bar on the left panel
63+
Then Click on Control Center link from the hamburger menu
64+
Then Click on the Plus Green Button to import the pipelines
65+
Then Click on create button to create a pipeline
66+
When Expand Plugin group in the LHS plugins list: "Source"
67+
When Select plugin: "BigQuery" from the plugins list as: "Source"
68+
When Expand Plugin group in the LHS plugins list: "Sink"
69+
When Select plugin: "BigQuery" from the plugins list as: "Sink"
70+
Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
71+
Then Navigate to the properties page of plugin: "BigQuery"
72+
And Enter input plugin property: "referenceName" with value: "Reference"
73+
Then Click on the Macro button of Property: "project" and set the value to: "projectId"
74+
And Enter input plugin property: "datasetProject" with value: "projectId"
75+
And Replace input plugin property: "dataset" with value: "dataset"
76+
Then Override Service account details if set in environment variables
77+
And Enter input plugin property: "table" with value: "bqSourceTable"
78+
Then Click on the Get Schema button
79+
Then Validate "BigQuery" plugin properties
80+
And Close the Plugin Properties page
81+
Then Navigate to the properties page of plugin: "BigQuery2"
82+
Then Click on the Macro button of Property: "project" and set the value to: "projectId"
83+
Then Override Service account details if set in environment variables
84+
Then Enter input plugin property: "datasetProject" with value: "projectId"
85+
Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
86+
Then Enter input plugin property: "dataset" with value: "dataset"
87+
Then Enter input plugin property: "table" with value: "bqTargetTable"
88+
Then Validate "BigQuery" plugin properties
89+
And Close the Plugin Properties page
90+
Then Save the pipeline
91+
Then Deploy the pipeline
92+
Then Click on the Hamburger bar on the left panel
93+
Then Click on Control Center link from the hamburger menu
94+
Then Verify the user is able to set the preferences for the created pipeline in the control center page
95+
Then Verify the user is able to enter the value in the key input field "keyValue"
96+
Then Verify the user is able to enter the value of the key in the value input field "value"
97+
Then Verify user is able to click on save and close button of set preferences
98+
Then Verify user is able to click on the data pipeline added in the control center page
99+
Then Run the Pipeline in Runtime
100+
Then Wait till pipeline is in running state
101+
Then Verify the pipeline status is "Succeeded"
102+
103+
@BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST
104+
Scenario: Verify User is able to delete the preferences by clicking on the delete icon button
105+
Given Open Datafusion Project to configure pipeline
106+
Then Click on the Hamburger bar on the left panel
107+
Then Click on Control Center link from the hamburger menu
108+
Then Click on the Plus Green Button to import the pipelines
109+
Then Click on create button to create a pipeline
110+
When Expand Plugin group in the LHS plugins list: "Source"
111+
When Select plugin: "BigQuery" from the plugins list as: "Source"
112+
When Expand Plugin group in the LHS plugins list: "Sink"
113+
When Select plugin: "BigQuery" from the plugins list as: "Sink"
114+
Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
115+
Then Navigate to the properties page of plugin: "BigQuery"
116+
And Enter input plugin property: "referenceName" with value: "Reference"
117+
Then Click on the Macro button of Property: "project" and set the value to: "projectId"
118+
And Enter input plugin property: "datasetProject" with value: "projectId"
119+
And Replace input plugin property: "dataset" with value: "dataset"
120+
Then Override Service account details if set in environment variables
121+
And Enter input plugin property: "table" with value: "bqSourceTable"
122+
Then Click on the Get Schema button
123+
Then Validate "BigQuery" plugin properties
124+
And Close the Plugin Properties page
125+
Then Navigate to the properties page of plugin: "BigQuery2"
126+
Then Click on the Macro button of Property: "project" and set the value to: "projectId"
127+
Then Override Service account details if set in environment variables
128+
Then Enter input plugin property: "datasetProject" with value: "projectId"
129+
Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
130+
Then Enter input plugin property: "dataset" with value: "dataset"
131+
Then Enter input plugin property: "table" with value: "bqTargetTable"
132+
Then Validate "BigQuery" plugin properties
133+
And Close the Plugin Properties page
134+
Then Save the pipeline
135+
Then Deploy the pipeline
136+
Then Click on the Hamburger bar on the left panel
137+
Then Click on Control Center link from the hamburger menu
138+
Then Verify the user is able to set the preferences for the created pipeline in the control center page
139+
Then Verify the user is able to enter the value in the key input field "keyValue"
140+
Then Verify the user is able to enter the value of the key in the value input field "value"
141+
Then Verify user is able to click on save and close button of set preferences
142+
Then Verify the user is able to set the preferences for the created pipeline in the control center page
143+
Then Verify user is able to click on the delete icon of preferences to delete the added preferences successfully
144+
145+
@BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST
146+
Scenario: Verify that User is able to perform Delete and Truncate operation on dataset entity successfully.
147+
Given Open Datafusion Project to configure pipeline
148+
Then Click on the Hamburger bar on the left panel
149+
Then Click on Control Center link from the hamburger menu
150+
Then Click on the Plus Green Button to import the pipelines
151+
Then Click on create button to create a pipeline
152+
When Expand Plugin group in the LHS plugins list: "Source"
153+
When Select plugin: "BigQuery" from the plugins list as: "Source"
154+
When Expand Plugin group in the LHS plugins list: "Sink"
155+
When Select plugin: "BigQuery" from the plugins list as: "Sink"
156+
Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
157+
Then Navigate to the properties page of plugin: "BigQuery"
158+
And Enter input plugin property: "referenceName" with value: "ReferenceDatasetDelete"
159+
And Replace input plugin property: "project" with value: "projectId"
160+
And Enter input plugin property: "datasetProject" with value: "projectId"
161+
And Replace input plugin property: "dataset" with value: "dataset"
162+
Then Override Service account details if set in environment variables
163+
And Enter input plugin property: "table" with value: "bqSourceTable"
164+
Then Click on the Get Schema button
165+
Then Validate "BigQuery" plugin properties
166+
And Close the Plugin Properties page
167+
Then Navigate to the properties page of plugin: "BigQuery2"
168+
Then Replace input plugin property: "project" with value: "projectId"
169+
Then Override Service account details if set in environment variables
170+
Then Enter input plugin property: "datasetProject" with value: "projectId"
171+
Then Enter input plugin property: "referenceName" with value: "BQReferenceNameDatasetTruncate"
172+
Then Enter input plugin property: "dataset" with value: "dataset"
173+
Then Enter input plugin property: "table" with value: "bqTargetTable"
174+
Then Validate "BigQuery" plugin properties
175+
And Close the Plugin Properties page
176+
Then Save the pipeline
177+
Then Deploy the pipeline
178+
Then Run the Pipeline in Runtime
179+
Then Wait till pipeline is in running state
180+
Then Verify the pipeline status is "Succeeded"
181+
Then Click on the Hamburger bar on the left panel
182+
Then Click on Control Center link from the hamburger menu
183+
Then Click truncate and verify the successful truncate of dataset entity
184+
Then Click delete and verify the dataset is deleted successfully
185+
Then Verify the deleted dataset "BQReferenceNameDatasetDelete" entity is not present in control center page
186+
187+
@BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST
188+
Scenario: Verify that user is able to delete the created pipeline in control center successfully.
189+
Given Open Datafusion Project to configure pipeline
190+
Then Click on the Hamburger bar on the left panel
191+
Then Click on Control Center link from the hamburger menu
192+
Then Click on the Plus Green Button to import the pipelines
193+
Then Click on create button to create a pipeline
194+
When Expand Plugin group in the LHS plugins list: "Source"
195+
When Select plugin: "BigQuery" from the plugins list as: "Source"
196+
When Expand Plugin group in the LHS plugins list: "Sink"
197+
When Select plugin: "BigQuery" from the plugins list as: "Sink"
198+
Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
199+
Then Navigate to the properties page of plugin: "BigQuery"
200+
And Enter input plugin property: "referenceName" with value: "Reference"
201+
And Replace input plugin property: "project" with value: "projectId"
202+
And Enter input plugin property: "datasetProject" with value: "projectId"
203+
And Replace input plugin property: "dataset" with value: "dataset"
204+
Then Override Service account details if set in environment variables
205+
And Enter input plugin property: "table" with value: "bqSourceTable"
206+
Then Click on the Get Schema button
207+
Then Validate "BigQuery" plugin properties
208+
And Close the Plugin Properties page
209+
Then Navigate to the properties page of plugin: "BigQuery2"
210+
Then Replace input plugin property: "project" with value: "projectId"
211+
Then Override Service account details if set in environment variables
212+
Then Enter input plugin property: "datasetProject" with value: "projectId"
213+
Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
214+
Then Enter input plugin property: "dataset" with value: "dataset"
215+
Then Enter input plugin property: "table" with value: "bqTargetTable"
216+
Then Validate "BigQuery" plugin properties
217+
And Close the Plugin Properties page
218+
Then Save the pipeline
219+
Then Deploy the pipeline
220+
Then Click on the Hamburger bar on the left panel
221+
Then Click on Control Center link from the hamburger menu
222+
Then Click on the delete icon of the created pipeline and pipeline should get deleted successfully
223+
Then Verify the deleted pipeline is not present in the control center page

0 commit comments

Comments
 (0)