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 export of application in topology #9887

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
@odc-2148
Feature: Export of application
As a user, I have an unmanaged application which I want to export. I'd like to be able to later add that code to git or some shared location so that I can share with others, or import into a new cluster or same cluster but different project, or be able to apply updates to an existing application.



#The operator mentioned below is not yet available on operator hub
Background:
Given user has installed Gitops primer Operator
And user is at developer perspective
And user has created or selected namespace "aut-export-application"


@smoke @to-do
Scenario: Export application button in topology: EA-02-TC01
Given user has created a deployment workload "nodejs-ex-git-1"
When user navigates to Topology page
And user clicks on Export Application button
Then user can see a toast message saying "Export of resources in aut-export-application has started."
And user can see primer job created in topology


@regression @to-do
Scenario: Export Application modal when export application is in progress: EA-02-TC02
Given user is at Topology page
When user clicks on Export Application button
And user clicks on Export Application button again
Then user can see a "Cancel Export", "Restart Export", and "Ok" button


@manual @to-do
Scenario: Restart Export when export application is in progress: EA-02-TC02
Given user is at Topology page
And Export Application has already started
When user clicks on Export Application button
And user clicks on Restart button
Then user can see a toast message saying "Export of resources in aut-export-application has started."


@manual @to-do
Scenario: Cancel Export when export application is in progress: EA-02-TC02
Given user is at Topology page
And Export Application has already started
When user clicks on Export Application button again
And user clicks on Cancel button
Then user can see primer job gets deleted in topology


@regression @to-do
Scenario: Export application button in empty topology view: EA-02-TC03
Given user has created or selected namespace "aut-export-applicatio-temp"
When user navigates to Topology page
Then user can see Export Application button disabled


@regression @manual
Scenario: Export Application is created: EA-02-TC04
Given user is at Topology page
And Export Application is completed
Then user can see a toast message on export completion along with a link to download
And user can see a deployment workload for primer is created


@regression @manual
Scenario: Download the exported application: EA-02-TC05
Given user is at Topology page
And Export Application is completed
And user clicks on download button from the toast message
And user clicks on "Log in with openshift" on the primer linked
And user clicks on "Allow selected permissions" on Authorize page
Then user can see a zip file is downloaded having the required file