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
92 changes: 91 additions & 1 deletion test/behavior/tendrl/cluster.feature
Original file line number Diff line number Diff line change
@@ -1 +1,91 @@
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: Import 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.

Scenario: Import Cluster page should be available

Given User is on "clusters" page
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
Copy link
Member

Choose a reason for hiding this comment

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

Given User is on cluster page and has at least one cluster available

When User clicks on cluster dropdown
Copy link
Member

Choose a reason for hiding this comment

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

it's a kebab menu.
User clicks on kebab menu

And User clicks on unmanage button
And User sees "Unmanage Cluster" dialogue box
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
Copy link
Member

Choose a reason for hiding this comment

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

This has multiple scenarios.

Normal import
import with name
import with enable profiling
import with disable profiling
import with unchanged profiling
normal import with enable profiling
Normal import with disable profiling
Normal import with unchanged profiling

I suggest we create a new file for import

Choose a reason for hiding this comment

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

I agree

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

Choose a reason for hiding this comment

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

Maybe make cluster name generic so you can assert that what was entered is equal to what appears at the end


Scenario: Filter by valid cluster name
Given User is on "clusters" page
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
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

Choose a reason for hiding this comment

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

Use "User" instead of "I"

Then I should see the Cluster status Icon in list view

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

Choose a reason for hiding this comment

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

This is exactly the same as the scenario above apart from the title


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

Scenario: Cluster options dropdown is clicked
Given User is on "clusters" page
And User opens the clusters page
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

Choose a reason for hiding this comment

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

"dropdownzz"

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"