Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gherkin for integration of tekton hub with pipeline builder #9747

Conversation

sanketpathak
Copy link
Contributor

@sanketpathak sanketpathak commented Aug 6, 2021

Epic: https://issues.redhat.com/browse/ODC-4315
Story: https://issues.redhat.com/browse/ODC-5972

Acceptance criteria:

  • Search/filter tasks
  • See task description
  • User can search for tasks that are available in the Tekton Hub and install the latest or a particular version of the Task on the cluster
  • User can upgrade tasks that are already installed on the cluster-
  • User can see which tasks are already installed within the search results from Tekton Hub

Checks required for approving Epic gherkin scripts PR:

  • Add @epic-number to the scenarios or feature file [e.g: @odc-xxx]
  • Add @to-do for automation possible scenarios
  • Add @regression or @smoke based on the importance of the scenario
  • Update the test scenarios count in Automation status confluence Report
  • Check for the linter issues by executing yarn run gherkin-lint on frontend folder [Skip epic number tags related linter issues]

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 6, 2021
@openshift-ci openshift-ci bot added the component/pipelines Related to pipelines-plugin label Aug 6, 2021
@sanketpathak sanketpathak force-pushed the improve-pipeline-builder-tekton-hub-integration-ODC-4315 branch 3 times, most recently from cc3151e to 49e1293 Compare August 6, 2021 15:09
@sanketpathak sanketpathak changed the title [WIP] Gherkin for integration of tekton hub with pipeline builder Gherkin for integration of tekton hub with pipeline builder Aug 6, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 6, 2021
@sanketpathak sanketpathak force-pushed the improve-pipeline-builder-tekton-hub-integration-ODC-4315 branch from 49e1293 to 78f385f Compare August 6, 2021 15:17
@@ -27,7 +27,9 @@ Feature: Create the pipeline from builder page
Scenario Outline: Create a pipeline with series tasks: P-02-TC02
Given user is at Pipeline Builder page
When user enters pipeline name as "<pipeline_name>"
And user selects "<task_name>" from Task drop down
And user clicks on Add task
And user searches "<task_name>" in quick search bar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
And user searches "<task_name>" in quick search bar
And user searches "<cluster_task_name>" in quick search bar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@@ -69,7 +75,9 @@ Feature: Create the pipeline from builder page
Scenario Outline: Create pipeline with "<resource_type>" as resource type from pipeline builder page: P-02-TC05
Given user is at Pipeline Builder page
When user enters pipeline name as "<pipeline_name>"
And user selects "<task_name>" from Task drop down
And user clicks on Add task
And user searches "<task_name>" in quick search bar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add option will be shown only for already installed clusterTask or namespace task through tektonhub. so change this in all the Add button scenarios to make it more readable.

Suggested change
And user searches "<task_name>" in quick search bar
And user searches "<cluster_task_name>" in quick search bar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

And user searches "kn" in quick search bar
And user clicks on "Add" in "kn" task
And user adds a task in series
And user scrolls over to the newly added task
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
And user scrolls over to the newly added task
And user hovers over the newly added task

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

And user adds a task in series
And user scrolls over to the newly added task
And user clicks on delete icon
Then user can see the taks in series gets removed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Then user can see the taks in series gets removed
Then user can see the task in series gets removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected

Given user is at Pipeline Builder page
When user enters pipeline name as "<pipeline_name>"
And user clicks on Add task
And user searches and select "<task_name>" in the list of items based on the provider="tekton" in quick search bar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change like this ?

Suggested change
And user searches and select "<task_name>" in the list of items based on the provider="tekton" in quick search bar
And user searches and select "<task_name>" in the list of items based on the "tekton" provider in quick search bar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

And user clicks on Add task
And user searches and select "<task_name>" in the list of items based on the provider="tekton" in quick search bar
And user clicks on "Install and Add" in "<task_name>" task
And user clicks Create button on Pipeline Builder page
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
And user clicks Create button on Pipeline Builder page
And user should see the loading node until the installation is complete
And user should see the Create button enabled after installation
And user clicks Create button on Pipeline Builder page

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@sanketpathak sanketpathak force-pushed the improve-pipeline-builder-tekton-hub-integration-ODC-4315 branch from 78f385f to e0b2a0f Compare August 19, 2021 05:36
Copy link
Contributor

@gajanan-more gajanan-more left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 19, 2021
And user clicks on Add task
And user searches "openshift-client" in quick search bar
And user changes version to latest
And user clicks on "Updated and Add" button
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
And user clicks on "Updated and Add" button
And user clicks on "Update and Add" button

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link
Contributor

@karthikjeeyar karthikjeeyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you have added tektonHub scenarios

  1. Install and Add
  2. update and Add

Shall we also include Add flow, for already installed tektonhub or a ClusterTask ?

@sanketpathak sanketpathak force-pushed the improve-pipeline-builder-tekton-hub-integration-ODC-4315 branch from e0b2a0f to 3415fad Compare August 19, 2021 11:32
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 19, 2021
@sanketpathak
Copy link
Contributor Author

@karthikjeeyar Updated the pr with Add flow scenario for already installed tektonhub tasks

Copy link
Contributor

@karthikjeeyar karthikjeeyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 19, 2021
@regression @to-do @odc-4315
Scenario Outline: Create a pipeline with TektonHub task present in cluster from pipeline builder page: P-02-TC010
Given user is at Pipeline Builder page
And user has installed tekton hub "<task_name>" kn in cluster
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
And user has installed tekton hub "<task_name>" kn in cluster
And user has installed tekton hub "<task_name>" task in cluster

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

And user clicks on "Update and Add" button
And user clicks Create button on Pipeline Builder page
Then user will be redirected to Pipeline Details page with header name "<pipeline_name>"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sanketpathak Don't you miss the Examples section here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edited the name part

@sanketpathak sanketpathak force-pushed the improve-pipeline-builder-tekton-hub-integration-ODC-4315 branch from 3415fad to 28a1b22 Compare August 26, 2021 06:18
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2021
@psrna
Copy link
Contributor

psrna commented Aug 26, 2021

/lgtm

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 26, 2021
@psrna
Copy link
Contributor

psrna commented Aug 26, 2021

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 26, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gajanan-more, karthikjeeyar, psrna, sanketpathak

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sanketpathak
Copy link
Contributor Author

As this does not change feature code
/label px-approved
/label docs-approved
/label qe-approved

@openshift-ci openshift-ci bot added px-approved Signifies that Product Support has signed off on this PR docs-approved Signifies that Docs has signed off on this PR qe-approved Signifies that QE has signed off on this PR labels Aug 26, 2021
@openshift-merge-robot openshift-merge-robot merged commit 31a0082 into openshift:master Aug 26, 2021
@spadgett spadgett added this to the v4.9 milestone Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/pipelines Related to pipelines-plugin docs-approved Signifies that Docs has signed off on this PR lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants