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

[Functional test] [WIP] Cluster feature #1063

wants to merge 5 commits into from

Conversation

Josh-Everett
Copy link

  • Initial scenarios for cluster.feature for BDD tests

Tendrl-bug-id: #1058

Signed-off-by: Josh Everett [email protected]

Tendrl-bug-id: #1058

Signed-off-by: Josh Everett <[email protected]>
@Josh-Everett Josh-Everett requested review from a team as code owners August 22, 2018 18:09
@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

1 similar comment
@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

Feature: CLUSTER

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

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

Scenario: Unmanage a cluster
Given User is on "clusters" page
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


Scenario: Unmanage a cluster
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

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.

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

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

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: 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"

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: 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"

Copy link

@nathan-weinberg nathan-weinberg left a 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

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

Feature: CLUSTER

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

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.

will move this also in import and unmanage feature file

@cloudbehl
Copy link
Member

@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.

@cloudbehl
Copy link
Member

@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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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

Copy link
Author

Choose a reason for hiding this comment

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

I'm not sure in what other circumstances this situation arises, but if you unmanage the cluster you are unable to import it again until the task is complete. During this time the import button is greyed out and unusable. Not sure if this is a relevant scenario for us to test.
unable_to_import

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
Copy link
Member

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

Copy link
Author

Choose a reason for hiding this comment

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

Should we still classify the import button as being associated with the kebab menu even though it is a standalone button?
before_import

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
Copy link
Member

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
Copy link
Member

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

@Josh-Everett Josh-Everett deleted the cluster-feature branch January 1, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants