-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
Tendrl-bug-id: #1058 Signed-off-by: Josh Everett <[email protected]>
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
test/behavior/tendrl/cluster.feature
Outdated
Feature: CLUSTER | ||
|
||
Scenario: Import a cluster |
There was a problem hiding this comment.
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
test/behavior/tendrl/cluster.feature
Outdated
Then User sees the "import-clusters" page | ||
|
||
Scenario: Unmanage a cluster |
There was a problem hiding this comment.
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
test/behavior/tendrl/cluster.feature
Outdated
Scenario: Unmanage a cluster | ||
Given User is on "clusters" page | ||
When User clicks on cluster dropdown |
There was a problem hiding this comment.
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
test/behavior/tendrl/cluster.feature
Outdated
|
||
Scenario: Unmanage a cluster | ||
Given User is on "clusters" page |
There was a problem hiding this comment.
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
test/behavior/tendrl/cluster.feature
Outdated
Feature: CLUSTER | ||
|
There was a problem hiding this comment.
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.
test/behavior/tendrl/cluster.feature
Outdated
And User sees cluster is unmanaged | ||
|
||
Scenario: Naming an imported cluster |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree
test/behavior/tendrl/cluster.feature
Outdated
And User clicks on unmanage button | ||
And User sees "Unmanage Cluster" dialogue box | ||
And User clicks on "unmanage" button |
There was a problem hiding this comment.
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
test/behavior/tendrl/cluster.feature
Outdated
And User clicks on "close" button | ||
Then User sees the "cluster" page | ||
And User sees name in cluster list view |
There was a problem hiding this comment.
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
test/behavior/tendrl/cluster.feature
Outdated
Scenario: Cluster status Icon in list view | ||
Given User is on "clusters" page | ||
When I see "cluster" list view available |
There was a problem hiding this comment.
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"
test/behavior/tendrl/cluster.feature
Outdated
And I should see the hyperlink on Cluster Name | ||
And I click on Cluster name | ||
Then I should see the object detail view |
There was a problem hiding this comment.
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
test/behavior/tendrl/cluster.feature
Outdated
Scenario: Sort the Clusters by Name | ||
Given User is on "clusters" page | ||
When User should select "name" from the dropdownzz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"dropdownzz"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than that LGTM
test/behavior/tendrl/cluster.feature
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Task
test/behavior/tendrl/cluster.feature
Outdated
Feature: CLUSTER | ||
|
||
Scenario: User views available cluster |
There was a problem hiding this comment.
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
test/behavior/tendrl/cluster.feature
Outdated
Then User sees the "import-clusters" page | ||
|
||
Scenario: Unmanage a cluster |
There was a problem hiding this comment.
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
@Josh-Everett Can you divide this also in two files one will be the un-imported cluster and managed cluster. Otherwise, the scenarios will clash. |
@Josh-Everett you have rebased your PR with master. I can see the neha's commit on your PR. Please fix |
@@ -0,0 +1,129 @@ | |||
Feature: CLUSTER_UNMANAGED | |||
|
|||
Scenario: User sees cluster lists page after logging in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to do this step as it's handled on login page.
Scenario: User sees cluster is unmanaged | ||
Given User is on the "cluster list" page | ||
And has at least one cluster available | ||
Then User should see "No" under Managed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then User should see "No" under Managed property of cluster
I think this will make more sense
Given User is on the "cluster list" page | ||
And has at least one cluster available | ||
When User hovers over cluster status icon | ||
And User should see status is unknown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And User should see status is "unknown"
@Josh-Everett make it generic as status can be unknown, down and up
When User passes correct login information | ||
Then User should see "cluster list" page | ||
|
||
Scenario: User sees cluster is unmanaged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't start scenarios from User.
Scenario: Cluster is non-imported
And has at least one cluster available | ||
Then User should see "No" under Managed | ||
|
||
Scenario: User sees cluster status icon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't start with user
Then User should see "No" under Managed | ||
|
||
Scenario: User sees cluster status icon | ||
Given User is on the "cluster list" page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above scenario's given statement.
And has at least one cluster available | ||
Then User should see Cluster Version info | ||
|
||
Scenario: User sees hosts information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add one more scenario of checking a host count is correct.
When User clicks on hosts link | ||
Then User should be brought to hosts page | ||
|
||
Scenario: Cluster is unavailable for import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which scenario is this? can you explain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given User is on the "cluster list" page | ||
And has at least one cluster available | ||
When the cluster is available for import | ||
Then the import button should be usable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then the import button should be available in kebab menu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scenario: Cluster is available to import | ||
Given User is on the "cluster list" page | ||
And has at least one cluster available | ||
When the cluster is available for import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the cluster is "Ready to import"
When User filters by an "invalid" cluster name | ||
Then User should see no clusters | ||
|
||
Scenario: User logs out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to handle this
Tendrl-bug-id: #1058
Signed-off-by: Josh Everett [email protected]