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

[Functional test] [WIP] Cluster feature #1063

Closed
wants to merge 5 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 80 additions & 1 deletion test/behavior/tendrl/cluster.feature
Original file line number Diff line number Diff line change
@@ -1 +1,80 @@
Feature: CLUSTER
Feature: CLUSTER

Copy link
Member

Choose a reason for hiding this comment

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

the first scenario should be the user is on cluster list page and user is able to see one cluster at least.

Scenario: User views available cluster
Copy link
Member

Choose a reason for hiding this comment

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

Scenario doesn't start with the user.

Scenario: Cluster is available

Given User is on "cluster list" page
Then User sees one or more clusters available

Scenario: Import Cluster page should be available
Given User is on "cluster list" page
And User has at least one "unmanaged" cluster
When User should see the "import" button
And User clicks on "import" button
Then User sees the "import-clusters" page

Scenario: Unmanage a cluster
Copy link
Member

Choose a reason for hiding this comment

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

This scenario should come once the import is done so move it after Scenario: Naming an imported cluster

Copy link
Member

Choose a reason for hiding this comment

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

will move this also in import and unmanage feature file

Given User is on "cluster list" page
And User has at least one "managed" cluster
When User clicks on kebab menu
And User clicks on "unmanage" button

Choose a reason for hiding this comment

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

Need consistency with being generic or not generic

And User sees "Unmanage Cluster" dialog box
And User clicks on "unmanage" button
Then User sees "Cluster Task" dialog box
And User closes "Cluster Tast" dialog box

Choose a reason for hiding this comment

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

Task

And User sees that cluster is unmanaged

Scenario: Filter by valid cluster name
Given User is on "cluster list" page
And User has at least one "managed" cluster
When User filters by a "valid" cluster name
Then User should see the cluster name

Scenario: Filter by invalid cluster name
Given User is on "cluster list" page
And User has at least one "managed" cluster
When User filters by an "invalid" cluster name
Then User should see no clusters

Scenario: Cluster status Icon in list view
Given User is on "cluster list" page
And User has at least one "managed" cluster
Then User should see the Cluster Status Icon

Scenario: Cluster name in list view
Given User is on "clusters" page
And User has at least one "managed" cluster
And User sees the hyperlink on "Cluster Name"
When User clicks on "Cluster Name"
Then User should see the "cluster hosts" page

Scenario: Hosts in list view
Given User is on "clusters" page
And User has at least one "managed" cluster
And User sees the hyperlink on "Host Number"
When User clicks on "Host Number"
Then User should see the "hosts" dialog box

Scenario: Cluster options dropdown is clicked
Given User is on "clusters" page
And User has at least one "managed" cluster
When User clicks cluster dropdown
Then The cluster names are listed

Scenario: Sort the Clusters by Name
Given User is on "clusters" page
When User should select "name" from the dropdown
Then User should see the List view sorted on basis of "name"

Scenario: Sort the Clusters by Status
Given User is on "clusters" page
When User should select "status" from the dropdown
Then User should see the List view sorted on basis of "status"

Scenario: Sort the Clusters by Cluster Version
Given User is on "clusters" page
When User should select "status" from the dropdown
Then User should see the List view sorted on basis of "cluster version"

Scenario: Sort the Clusters by Managed
Given User is on "clusters" page
When User should select "utilization" from the dropdown
Then User should see the List view sorted on basis of "managed"