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 1 commit
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
79 changes: 34 additions & 45 deletions test/behavior/tendrl/cluster.feature
Original file line number Diff line number Diff line change
@@ -1,78 +1,67 @@
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: Import a cluster
Given User is on "clusters" page
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 "clusters" page
When User clicks on cluster dropdown
And User clicks on unmanage button
And User sees "Unmanage Cluster" dialogue box
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

Then User should see "unmanage cluster" "task page"
And User closes "task page"
And User sees cluster is unmanaged

Scenario: Naming an imported cluster
Given User is on "clusters" page
And User should see the "import" button
And User clicks on "import" button
And User sees the "import-clusters" page
When User enters cluster name
And User clicks on "import" button
Then User sees "task submitted" page
And User clicks on "close" button
Then User sees the "cluster" page
And User sees name in cluster list view
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 "clusters" page
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 "clusters" page
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 "clusters" page
When I see "cluster" list view available
Then I should see the 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
When I see "cluster" list view available
And I should see the hyperlink on Cluster Name
And I click on Cluster name
Then I should see the object detail view

Scenario: Cluster version in list view
Given User is on "clusters" page
When I see "cluster" list view available
And I should see the hyperlink on Cluster Name
And I click on Cluster name
Then I should see the object detail view
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
When I see "cluster" list view available
And I should see the hyperlink on Hosts number
And I click on the Number
Then I should see the "cluster-hosts" page
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 opens the clusters page
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 dropdownzz
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
Expand Down