Skip to content

Commit

Permalink
control center cdap phase2 review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
priyabhatnagar25 committed Nov 29, 2023
1 parent 9fa8169 commit 5e69a46
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Feature: Controlcenter - Validate control center page flow design time features.
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Select dropdown : "Filter" with option value: "Artifacts" in control center
Then Verify the all entities message is displayed with the filter selection
Then Verify the all entities message is displayed with the filter selection: "allEntitiesDisplayedMessage"

Scenario: Verify User is able to switch between Schema and programs of the dataset.
Given Open Datafusion Project to configure pipeline
Expand All @@ -45,13 +45,13 @@ Feature: Controlcenter - Validate control center page flow design time features.
Then Click on the Hamburger bar on the left panel
Then Click on Control Center link from the hamburger menu
Then Select the sort by dropdown with option value: "Newest"
Then Verify the entities are sorted by the newest option
Then Verify the entities are sorted by the newest option: "newFilterMessage"
Then Select the sort by dropdown with option value: "Oldest"
Then Verify the entities are sorted by the oldest option
Then Verify the entities are sorted by the oldest option: "oldestFilterMessage"
Then Select the sort by dropdown with option value: "A - Z"
Then Verify the entities are sorted by the A to Z option
Then Verify the entities are sorted by the Z to A option: "aToZFilterMessage"
Then Select the sort by dropdown with option value: "Z - A"
Then Verify the entities are sorted by the Z to A option
Then Verify the entities are sorted by the A to Z option: "zToAFilterMessage"

Scenario: Verify the user is able to navigate to and from details page of a dataset inside control center
Given Open Datafusion Project to configure pipeline
Expand All @@ -72,11 +72,23 @@ Feature: Controlcenter - Validate control center page flow design time features.
Then Click on the plus button to add the tag for a dataset entity
Then Verify user is able to enter the values in tag input field: "testingTag"
Then Enter the text in search tab "testingTag" in control center
Then Verify the searched tag is displayed successfully on control center page
Then Verify the searched tag is displayed successfully on control center page: "searchedTagDisplayedMessage"

Scenario: Verify that User is able to click on the dataset entity and is navigated to the details page of the dataset 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 Verify the user is able to click dataset entity icon to navigate to details page
Then Verify user is navigated to the details page of the dataset entity icon successfully

Scenario: Verify that tags counts should be increased and decreased in case User perform Add or Remove actions on dataset entity.
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 Verify the user is able to click dataset entity icon to navigate to details page
Then Click on the plus button to add the tag for a dataset entity
Then Verify user is able to enter the values in tag input field: "testingTag"
Then Verify the tag count of dataset entity when user adds the tag
Then Click on the close icon of tag added
Then Verify the tag count of dataset entity decreases message: "tagCountDecreaseMessage"
Then Click on close link to close the details page of dataset entity
45 changes: 0 additions & 45 deletions cdap-e2e-tests/src/e2e-test/features/controlcenter/RunTime.feature
Original file line number Diff line number Diff line change
Expand Up @@ -184,51 +184,6 @@ Feature: Controlcenter - Validate control center page flow run time features.
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 tags counts should be increased and decreased in case User perform Add or Remove actions on dataset entity.
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: "ReferenceDatasetTag"
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: "BQReferenceNameDatasetTag"
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 user is able to click dataset entity icon to navigate to details page
Then Click on the plus button to add the tag for a dataset entity
Then Verify user is able to enter the values in tag input field: "testingTag"
Then Verify the tag count of dataset entity when user adds the tag
Then Click on the close icon of tag added and verify the tag count decreases
Then Click on close link to close the details page of dataset entity

@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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ datasetprojectId=cdf-athena
keyValue=projectId
value=cdf-athena
Artifacts=Artifacts-input
newFilterMessage=Displaying Applications, Datasets, sorted by Newest
oldestFilterMessage=Displaying Applications, Datasets, sorted by Oldest
zToAFilterMessage=Displaying Applications, Datasets, sorted by Z - A
aToZFilterMessage=Displaying Applications, Datasets, sorted by A - Z
tagCountDecreaseMessage=Tags (0):
searchedTagDisplayedMessage=Search results for "testingTag", filtered by Applications, Datasets
allEntitiesDisplayedMessage=Displaying all entities, sorted by Newest
## CONTROLCENTER-END

0 comments on commit 5e69a46

Please sign in to comment.