forked from cdapio/cdap
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRunTime.feature
More file actions
223 lines (216 loc) · 13.4 KB
/
RunTime.feature
File metadata and controls
223 lines (216 loc) · 13.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
# Copyright © 2023 Cask Data, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
@Controlcenter
Feature: Controlcenter - Validate control center page flow run time features.
@BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST
Scenario: Verify that user is able to create a pipeline and then validate the presence of created pipeline in control center.
Given Open Datafusion Project to configure pipeline
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Click on the Plus Green Button to import the pipelines
Then Click on create button to create a pipeline
When Expand Plugin group in the LHS plugins list: "Source"
When Select plugin: "BigQuery" from the plugins list as: "Source"
When Expand Plugin group in the LHS plugins list: "Sink"
When Select plugin: "BigQuery" from the plugins list as: "Sink"
Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
Then Navigate to the properties page of plugin: "BigQuery"
And Enter input plugin property: "referenceName" with value: "Reference"
And Replace input plugin property: "project" with value: "projectId"
And Enter input plugin property: "datasetProject" with value: "projectId"
And Replace input plugin property: "dataset" with value: "dataset"
Then Override Service account details if set in environment variables
And Enter input plugin property: "table" with value: "bqSourceTable"
Then Click on the Get Schema button
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
Then Navigate to the properties page of plugin: "BigQuery2"
Then Replace input plugin property: "project" with value: "projectId"
Then Override Service account details if set in environment variables
Then Enter input plugin property: "datasetProject" with value: "projectId"
Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
Then Enter input plugin property: "dataset" with value: "dataset"
Then Enter input plugin property: "table" with value: "bqTargetTable"
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
Then Save the pipeline
Then Deploy the pipeline
Then Run the Pipeline in Runtime
Then Wait till pipeline is in running state
Then Verify the pipeline status is "Succeeded"
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Verify the pipeline created successfully is present in control center page
@BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST
Scenario: Verify the user is able to set preferences for a deployed pipeline and use the same while running the pipeline.
Given Open Datafusion Project to configure pipeline
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Click on the Plus Green Button to import the pipelines
Then Click on create button to create a pipeline
When Expand Plugin group in the LHS plugins list: "Source"
When Select plugin: "BigQuery" from the plugins list as: "Source"
When Expand Plugin group in the LHS plugins list: "Sink"
When Select plugin: "BigQuery" from the plugins list as: "Sink"
Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
Then Navigate to the properties page of plugin: "BigQuery"
And Enter input plugin property: "referenceName" with value: "Reference"
Then Click on the Macro button of Property: "project" and set the value to: "projectId"
And Enter input plugin property: "datasetProject" with value: "projectId"
And Replace input plugin property: "dataset" with value: "dataset"
Then Override Service account details if set in environment variables
And Enter input plugin property: "table" with value: "bqSourceTable"
Then Click on the Get Schema button
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
Then Navigate to the properties page of plugin: "BigQuery2"
Then Click on the Macro button of Property: "project" and set the value to: "projectId"
Then Override Service account details if set in environment variables
Then Enter input plugin property: "datasetProject" with value: "projectId"
Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
Then Enter input plugin property: "dataset" with value: "dataset"
Then Enter input plugin property: "table" with value: "bqTargetTable"
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
Then Save the pipeline
Then Deploy the pipeline
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Verify the user is able to set the preferences for the created pipeline in the control center page
Then Verify the user is able to enter the value in the key input field "keyValue"
Then Verify the user is able to enter the value of the key in the value input field "value"
Then Verify user is able to click on save and close button of set preferences
Then Verify user is able to click on the data pipeline added in the control center page
Then Run the Pipeline in Runtime
Then Wait till pipeline is in running state
Then Verify the pipeline status is "Succeeded"
@BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST
Scenario: Verify User is able to delete the preferences by clicking on the delete icon button
Given Open Datafusion Project to configure pipeline
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Click on the Plus Green Button to import the pipelines
Then Click on create button to create a pipeline
When Expand Plugin group in the LHS plugins list: "Source"
When Select plugin: "BigQuery" from the plugins list as: "Source"
When Expand Plugin group in the LHS plugins list: "Sink"
When Select plugin: "BigQuery" from the plugins list as: "Sink"
Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
Then Navigate to the properties page of plugin: "BigQuery"
And Enter input plugin property: "referenceName" with value: "Reference"
Then Click on the Macro button of Property: "project" and set the value to: "projectId"
And Enter input plugin property: "datasetProject" with value: "projectId"
And Replace input plugin property: "dataset" with value: "dataset"
Then Override Service account details if set in environment variables
And Enter input plugin property: "table" with value: "bqSourceTable"
Then Click on the Get Schema button
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
Then Navigate to the properties page of plugin: "BigQuery2"
Then Click on the Macro button of Property: "project" and set the value to: "projectId"
Then Override Service account details if set in environment variables
Then Enter input plugin property: "datasetProject" with value: "projectId"
Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
Then Enter input plugin property: "dataset" with value: "dataset"
Then Enter input plugin property: "table" with value: "bqTargetTable"
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
Then Save the pipeline
Then Deploy the pipeline
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Verify the user is able to set the preferences for the created pipeline in the control center page
Then Verify the user is able to enter the value in the key input field "keyValue"
Then Verify the user is able to enter the value of the key in the value input field "value"
Then Verify user is able to click on save and close button of set preferences
Then Verify the user is able to set the preferences for the created pipeline in the control center page
Then Verify user is able to click on the delete icon of preferences to delete the added preferences successfully
@BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST
Scenario: Verify that User is able to perform Delete and Truncate operation on dataset entity successfully.
Given Open Datafusion Project to configure pipeline
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Click on the Plus Green Button to import the pipelines
Then Click on create button to create a pipeline
When Expand Plugin group in the LHS plugins list: "Source"
When Select plugin: "BigQuery" from the plugins list as: "Source"
When Expand Plugin group in the LHS plugins list: "Sink"
When Select plugin: "BigQuery" from the plugins list as: "Sink"
Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
Then Navigate to the properties page of plugin: "BigQuery"
And Enter input plugin property: "referenceName" with value: "ReferenceDatasetDelete"
And Replace input plugin property: "project" with value: "projectId"
And Enter input plugin property: "datasetProject" with value: "projectId"
And Replace input plugin property: "dataset" with value: "dataset"
Then Override Service account details if set in environment variables
And Enter input plugin property: "table" with value: "bqSourceTable"
Then Click on the Get Schema button
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
Then Navigate to the properties page of plugin: "BigQuery2"
Then Replace input plugin property: "project" with value: "projectId"
Then Override Service account details if set in environment variables
Then Enter input plugin property: "datasetProject" with value: "projectId"
Then Enter input plugin property: "referenceName" with value: "BQReferenceNameDatasetTruncate"
Then Enter input plugin property: "dataset" with value: "dataset"
Then Enter input plugin property: "table" with value: "bqTargetTable"
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
Then Save the pipeline
Then Deploy the pipeline
Then Run the Pipeline in Runtime
Then Wait till pipeline is in running state
Then Verify the pipeline status is "Succeeded"
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Click truncate and verify the successful truncate of dataset entity
Then Click delete and verify the dataset is deleted successfully
Then Verify the deleted dataset "BQReferenceNameDatasetDelete" entity is not present in control center page
@BQ_INSERT_INT_SOURCE_TEST @BQ_SINK_TEST
Scenario: Verify that user is able to delete the created pipeline in control center successfully.
Given Open Datafusion Project to configure pipeline
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Click on the Plus Green Button to import the pipelines
Then Click on create button to create a pipeline
When Expand Plugin group in the LHS plugins list: "Source"
When Select plugin: "BigQuery" from the plugins list as: "Source"
When Expand Plugin group in the LHS plugins list: "Sink"
When Select plugin: "BigQuery" from the plugins list as: "Sink"
Then Connect plugins: "BigQuery" and "BigQuery2" to establish connection
Then Navigate to the properties page of plugin: "BigQuery"
And Enter input plugin property: "referenceName" with value: "Reference"
And Replace input plugin property: "project" with value: "projectId"
And Enter input plugin property: "datasetProject" with value: "projectId"
And Replace input plugin property: "dataset" with value: "dataset"
Then Override Service account details if set in environment variables
And Enter input plugin property: "table" with value: "bqSourceTable"
Then Click on the Get Schema button
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
Then Navigate to the properties page of plugin: "BigQuery2"
Then Replace input plugin property: "project" with value: "projectId"
Then Override Service account details if set in environment variables
Then Enter input plugin property: "datasetProject" with value: "projectId"
Then Enter input plugin property: "referenceName" with value: "BQReferenceName"
Then Enter input plugin property: "dataset" with value: "dataset"
Then Enter input plugin property: "table" with value: "bqTargetTable"
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
Then Save the pipeline
Then Deploy the pipeline
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Click on the delete icon of the created pipeline and pipeline should get deleted successfully
Then Verify the deleted pipeline is not present in the control center page