forked from openshift/console
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added cypress scripts for pipeline triggers
- Loading branch information
1 parent
79c6d11
commit 2230a5d
Showing
9 changed files
with
457 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
291 changes: 146 additions & 145 deletions
291
...tend/packages/dev-console/integration-tests/features/pipelines/pipelines-triggers.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,148 +1,149 @@ | ||
@pipelines | ||
Feature: Triggers | ||
As a user, I want to add or remove trigger details and verify the trigger for the git web hooks from pipeline | ||
|
||
Background: | ||
Given user has installed OpenShift Pipelines operator | ||
And user has selected namespace "aut-pipeline-triggers" | ||
And user is at pipelines page | ||
|
||
|
||
@regression, @smoke | ||
Scenario Outline: Add Trigger modal details : P-09-TC01 | ||
Given pipeline "<pipeline_name>" is available with git resource | ||
When user selects "Add Trigger" from the kebab menu for "<pipeline_name>" | ||
Then modal with "Add Trigger" appears | ||
And Git provider type field is enabled | ||
And Add button is disabled | ||
|
||
Examples: | ||
| pipeline_name | | ||
| git-trigger-one | | ||
|
||
|
||
@regression | ||
Scenario: Variables section in Add Trigger modal details : P-09-TC02 | ||
Given user is at Add Trigger modal | ||
When user selects the "github-pullreq" from Git Provider Type field | ||
And user clicks on "show variables" link | ||
Then user should be able to see "Hide Variables" link with varaibles section | ||
And variables section displayed with message "The following variables can be used in the Parameters or when created new Resources." | ||
And Add button is enabled | ||
|
||
|
||
@regression, @smoke | ||
Scenario Outline: Add the trigger to the pipeline from pipelines page : P-09-TC03 | ||
Given "<pipeline_name>" is displayed on pipelines page | ||
When user selects "Add Trigger" from the kebab menu for "<pipeline_name>" | ||
And user selects the "github-pullreq" from Git Provider Type field | ||
And user clicks on Add button present in Add Trigger modal | ||
Then pipelines page is displayed | ||
And "Remove Trigger" is displayed in kebab menu for "<pipeline_name>" | ||
|
||
Examples: | ||
| pipeline_name | | ||
| git-one | | ||
|
||
|
||
@regression, @smoke | ||
Scenario Outline: Pipeline Trigger template display in pipeline details page: P-09-TC04 | ||
Given pipeline "<pipeline_name>" with trigger in pipelines page | ||
When user clicks pipeline "<pipeline_name>" | ||
Then pipeline Details page is displayed with header name "<pipeline_name>" | ||
And Trigger Templates section is displayed | ||
|
||
Examples: | ||
| pipeline_name | | ||
| pipelines-one | | ||
|
||
|
||
@regression, @smoke | ||
Scenario: Trigger template details page : P-09-TC05 | ||
Given Trigger is added to the pipeline "git-pipeline" present in pipeline details page | ||
And user is at pipeline Details page | ||
When user clicks on trigger template | ||
Then user will be redirected to Trigger Template Details page | ||
And user is able to see Details, YAML tabs | ||
And Details tab is displayed with field names Name, Namespace, Labels, Annotations, Created At, Owner, Pipelines and Event Listeners | ||
And Actions dropdown display on the top right corner of the page | ||
|
||
|
||
@regression, @smoke | ||
Scenario: Event Listener Details page : P-09-TC06, P-09-TC07 | ||
Given Trigger is added to the pipeline "git-pipeline-events" present in pipeline details page | ||
And user is at Trigger Template Details page | ||
When user clicks on Event listener | ||
Then user will be redirected to Event Listener Details page | ||
And user is able to see Details, YAML tabs | ||
And Details tab is displayed with field names Name, Namespace, Labels, Annotations, Created At, Owner, Trigger Templates and Trigger Bindings | ||
And Actions dropdown display on the top right corner of the page | ||
|
||
|
||
@regression, @smoke | ||
Scenario: Cluster Trigger Binding Details page : P-09-TC08, P-09-TC09 | ||
Given Trigger is added to the pipeline "git-pipeline-triggerbinding" present in pipeline details page | ||
And user is at Event Listener Details page | ||
When user clicks on Trigger Binding | ||
Then user will be redirected to Cluster Trigger Binding Details page | ||
And user is able to see Details, YAML tabs | ||
And Details tab is displayed with field names Name, Labels, Annotations, Created At, Owner | ||
And Actions dropdown display on Cluster Trigger Binding page | ||
|
||
|
||
@regression, @smoke | ||
Scenario Outline: Remove Trigger modal details : P-09-TC10 | ||
Given Trigger is added to the pipeline "<pipeline_name>" present in pipeline details page | ||
And user is at pipelines page | ||
When user selects "Remove Trigger" from the kebab menu for "<pipeline_name>" | ||
Then modal is displayed with header message "Remove Trigger" | ||
And trigger template dropdown displayed with help text Select Trigger Template | ||
And Remove button will be disabled | ||
|
||
Examples: | ||
| pipeline_name | | ||
| git-pipeline-removetrigger | | ||
|
||
|
||
@regression, @smoke | ||
Scenario Outline: Remove the trigger from pipelines page : P-09-TC11 | ||
Given Trigger is added to the pipeline "<pipeline_name>" present in pipeline details page | ||
And user is at pipelines page | ||
When user selects "Remove Trigger" from the kebab menu for "<pipeline_name>" | ||
And user selects the first option from the Trigger Template drop down field | ||
And user clicks on Remove button | ||
Then option "Remove Trigger" is not availale in kebab menu for "<pipeline_name>" | ||
|
||
Examples: | ||
| pipeline_name | | ||
| git-pipeline-removetrigger-1 | | ||
|
||
|
||
@regression, @manual | ||
Scenario: Start the pipeline with secret by updating the git repo : P-10-TC01 | ||
Given Trigger is added to the pipeline "git-pipeline" present in pipeline details page | ||
And user is at pipeline trigger template page for pipeline "git-pipeline" | ||
When user navigates to github repo url | ||
And user selects webhooks from github settings page | ||
And user clicks Add Webhook | ||
And user enters payload url as trigger template url | ||
And user enters content type as "application/json" | ||
And user clicks on Add Webhook | ||
And update the content in ReadMe file | ||
And user navigates to pipelines page | ||
Then user is able to see new pipeline run for "git-pipeline" in pipelines page | ||
|
||
|
||
@regression, @manual | ||
Scenario: Start the pipeline with secret by updating the git repo : P-10-TC02 | ||
Given Trigger is added to the pipeline "git-pipeline" present in pipeline details page | ||
And user is at pipeline trigger template page for pipeline "git-pipeline" | ||
When user navigates to github repo url | ||
And user selects webhooks from github settings page | ||
And user clicks Add Webhook | ||
And user enters payload url as trigger template url | ||
And user enters content type as "application/json" | ||
And user enters the secret authentication key | ||
And user clicks on Add Webhook | ||
And update the content in ReadMe file | ||
And user navigates to pipelines page | ||
Then user is able to see new pipeline run for "git-pipeline" in pipelines page | ||
Background: | ||
Given user has installed OpenShift Pipelines operator | ||
And user has selected namespace "aut-pipeline-triggers" | ||
And user is at pipelines page | ||
|
||
|
||
@smoke | ||
Scenario Outline: Add Trigger modal details : P-09-TC01 | ||
Given pipeline "<pipeline_name>" is available with git resource | ||
When user selects "Add Trigger" from the kebab menu for "<pipeline_name>" | ||
Then modal with "Add Trigger" appears | ||
And Git provider type field is enabled | ||
And Add button is disabled | ||
|
||
Examples: | ||
| pipeline_name | | ||
| git-trigger-one | | ||
|
||
|
||
@regression | ||
Scenario: Variables section in Add Trigger modal details : P-09-TC02 | ||
Given user is at Add Trigger modal | ||
When user selects the "github-pullreq" from Git Provider Type field | ||
And user clicks on "Show Variables" link | ||
Then user should be able to see "Hide Variables" link with variables section | ||
And variables section displayed with message "The following variables can be used in the Parameters or when created new Resources." | ||
And Add button is enabled | ||
|
||
|
||
@smoke | ||
Scenario Outline: Add the trigger to the pipeline from pipelines page : P-09-TC03 | ||
Given "<pipeline_name>" is displayed on pipelines page | ||
When user selects "Add Trigger" from the kebab menu for "<pipeline_name>" | ||
And user selects the "github-pullreq" from Git Provider Type field | ||
And user clicks on Add button present in Add Trigger modal | ||
Then pipelines page is displayed | ||
And "Remove Trigger" is displayed in kebab menu for "<pipeline_name>" | ||
|
||
Examples: | ||
| pipeline_name | | ||
| git-one | | ||
|
||
|
||
@smoke | ||
Scenario Outline: Pipeline Trigger template display in pipeline details page: P-09-TC04 | ||
Given pipeline "<pipeline_name>" with trigger in pipelines page | ||
When user clicks pipeline "<pipeline_name>" | ||
Then pipeline Details page is displayed with header name "<pipeline_name>" | ||
And Trigger Templates section is displayed | ||
|
||
Examples: | ||
| pipeline_name | | ||
| pipelines-one | | ||
|
||
|
||
@smoke | ||
Scenario: Trigger template details page : P-09-TC05 | ||
Given Trigger is added to the pipeline "git-pipeline" present in pipeline details page | ||
And user is at pipeline Details page | ||
When user clicks on trigger template | ||
Then user will be redirected to Trigger Template Details page | ||
And user is able to see Details, YAML tabs | ||
And Details tab is displayed with field names Name, Namespace, Labels, Annotations, Created At, Owner, Pipelines and Event Listeners | ||
And Actions dropdown display on the top right corner of the page | ||
|
||
|
||
@smoke | ||
Scenario: Event Listener Details page : P-09-TC06, P-09-TC07 | ||
Given Trigger is added to the pipeline "git-pipeline-events" present in pipeline details page | ||
And user is at Trigger Template Details page | ||
When user clicks on Event listener | ||
Then user will be redirected to Event Listener Details page | ||
And user is able to see Details, YAML tabs | ||
And Details tab is displayed with field names Name, Namespace, Labels, Annotations, Created At, Owner, Trigger Templates and Trigger Bindings | ||
And Actions dropdown display on the top right corner of the page | ||
|
||
|
||
@smoke | ||
Scenario: Cluster Trigger Binding Details page : P-09-TC08, P-09-TC09 | ||
Given Trigger is added to the pipeline "git-pipeline-triggerbinding" present in pipeline details page | ||
And user is at Event Listener Details page | ||
When user clicks on Trigger Binding | ||
Then user will be redirected to Cluster Trigger Binding Details page | ||
And user is able to see Details, YAML tabs | ||
And Details tab is displayed with field names Name, Labels, Annotations, Created At, Owner | ||
And Actions dropdown display on Cluster Trigger Binding page | ||
|
||
|
||
@smoke | ||
Scenario Outline: Remove Trigger modal details : P-09-TC10 | ||
Given Trigger is added to the pipeline "<pipeline_name>" present in pipeline details page | ||
And user is at pipelines page | ||
When user selects "Remove Trigger" from the kebab menu for "<pipeline_name>" | ||
Then modal is displayed with header message "Remove Trigger" | ||
And trigger template dropdown displayed with help text Select Trigger Template | ||
And Remove button will be disabled | ||
|
||
Examples: | ||
| pipeline_name | | ||
| git-pipeline-removetrigger | | ||
|
||
|
||
@smoke | ||
Scenario Outline: Remove the trigger from pipelines page : P-09-TC11 | ||
Given Trigger is added to the pipeline "<pipeline_name>" present in pipeline details page | ||
And user is at pipelines page | ||
When user selects "Remove Trigger" from the kebab menu for "<pipeline_name>" | ||
And user selects the first option from the Trigger Template drop down field | ||
And user clicks on Remove button | ||
Then option "Remove Trigger" is not available in kebab menu for "<pipeline_name>" | ||
|
||
Examples: | ||
| pipeline_name | | ||
| git-pipeline-removetrigger-1 | | ||
|
||
|
||
@regression, @manual | ||
Scenario: Start the pipeline with secret by updating the git repo : P-10-TC01 | ||
Given Trigger is added to the pipeline "git-pipeline" present in pipeline details page | ||
And user is at pipeline trigger template page for pipeline "git-pipeline" | ||
When user navigates to github repo url | ||
And user selects webhooks from github settings page | ||
And user clicks Add Webhook | ||
And user enters payload url as trigger template url | ||
And user enters content type as "application/json" | ||
And user clicks on Add Webhook | ||
And update the content in ReadMe file | ||
And user navigates to pipelines page | ||
Then user is able to see new pipeline run for "git-pipeline" in pipelines page | ||
|
||
|
||
@regression, @manual | ||
Scenario: Start the pipeline with secret by updating the git repo : P-10-TC02 | ||
Given Trigger is added to the pipeline "git-pipeline" present in pipeline details page | ||
And user is at pipeline trigger template page for pipeline "git-pipeline" | ||
When user navigates to github repo url | ||
And user selects webhooks from github settings page | ||
And user clicks Add Webhook | ||
And user enters payload url as trigger template url | ||
And user enters content type as "application/json" | ||
And user enters the secret authentication key | ||
And user clicks on Add Webhook | ||
And update the content in ReadMe file | ||
And user navigates to pipelines page | ||
Then user is able to see new pipeline run for "git-pipeline" in pipelines page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.