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
Bug 1872644: gherkin script for HPA-add,edit an delete-ODC-3556 #6442
Bug 1872644: gherkin script for HPA-add,edit an delete-ODC-3556 #6442
Conversation
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 haven't added the file extension to any file. Can you please add it? Also create bugzilla and add it here.
ffa1cad
to
c0b6b2e
Compare
@sanketpathak: This pull request references Bugzilla bug 1872644, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
ece1d12
to
3f7be81
Compare
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.
Please update the suggested changes.
...console/integration-tests/features/topology/horizonta_pod_autoscaling/Add_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...console/integration-tests/features/topology/horizonta_pod_autoscaling/Add_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...console/integration-tests/features/topology/horizonta_pod_autoscaling/Add_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...console/integration-tests/features/topology/horizonta_pod_autoscaling/Add_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...console/integration-tests/features/topology/horizonta_pod_autoscaling/Add_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...onsole/integration-tests/features/topology/horizonta_pod_autoscaling/Edit_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...onsole/integration-tests/features/topology/horizonta_pod_autoscaling/Edit_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...onsole/integration-tests/features/topology/horizonta_pod_autoscaling/Edit_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...onsole/integration-tests/features/topology/horizonta_pod_autoscaling/Edit_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...onsole/integration-tests/features/topology/horizonta_pod_autoscaling/Edit_HPA_Action.feature
Outdated
Show resolved
Hide resolved
20daa0e
to
945001d
Compare
...console/integration-tests/features/topology/horizonta_pod_autoscaling/Add_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...console/integration-tests/features/topology/horizonta_pod_autoscaling/Add_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...console/integration-tests/features/topology/horizonta_pod_autoscaling/Add_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...console/integration-tests/features/topology/horizonta_pod_autoscaling/Add_HPA_Action.feature
Outdated
Show resolved
Hide resolved
...console/integration-tests/features/topology/horizonta_pod_autoscaling/Add_HPA_Action.feature
Outdated
Show resolved
Hide resolved
And user checks the YAML | ||
And user changes values of cpu and memory under metrics.resource.target.averageUtilization | ||
And user changes minimum and maximum pods value in minReplicas and maxReplicas | ||
And user edits the name value under metadata.name |
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.
So you can't edit the name from Form view but you can edit it from YAML view, right?
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 can be edited but you can't save it as the name should not be changed
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.
Are you able to save the changed name through YAML? If yes, then don't you think it's a bug? Can you please confirm it from Andrew?
...ntegration-tests/features/topology/horizonta_pod_autoscaling/HPA _Topology_&_Sidebar.feature
Outdated
Show resolved
Hide resolved
...ntegration-tests/features/topology/horizonta_pod_autoscaling/HPA _Topology_&_Sidebar.feature
Outdated
Show resolved
Hide resolved
...ntegration-tests/features/topology/horizonta_pod_autoscaling/HPA _Topology_&_Sidebar.feature
Outdated
Show resolved
Hide resolved
...ntegration-tests/features/topology/horizonta_pod_autoscaling/HPA _Topology_&_Sidebar.feature
Outdated
Show resolved
Hide resolved
e13801c
to
9c8c852
Compare
/lgtm |
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 seem to (unless I missed it) not cover what if the user doesn't set the cpu / memory limits and the disabled form.
And user selects on resource tab | ||
Then user can see two pods under pod section | ||
And user can see Horizontal Pod Autoscalers section | ||
And user can see the example with HPA tag associated present under HPA section |
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 can see the example with HPA tag associated present under HPA section | |
And user can see the 'example' with HPA tag associated present under HPA section |
Thoughts? example
is a bad word imo for tests, because I read this as "an example" rather than "the 'example' named resource"
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.
Agreed
And user has created a deployment | ||
And user has added CPU resource limit | ||
And user has added Memory resource limit | ||
And user is in topology |
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 has created an HPA on this deployment
?
None of the edit flows make sense without this pre-step
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've included this in the given statement of the scenarios
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 understand that, but what's the purpose of a background if not to reduce repeat?
And user has a workload with HPA assigned to it | ||
|
||
@regression @manual | ||
Scenario: Changes due to HPA in Workload Sidebar |
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 should also check that there is also no set pod count
in the actions.
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.
Yeah, I'm checking for Edit Pod Count
option in the action 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.
Must have missed it.
And user clicks on details tab | ||
Then user can see the scaling of the pod disabled | ||
And user can see the arrows to increase and decrease pods are not present | ||
And user can see 'Autoscaling to' inside the pod donut |
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 wouldn't tie to this text, it should settle when the HPA cleans up. And thus this may say 'Autoscaled to'.
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.
Fair enough I'll edit it
9c8c852
to
f265111
Compare
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.
/lgtm
You should get Balaji to give the approval.
And user adds name 'example' | ||
And user assigns minimum pods value to 2 | ||
And user assigns maximum pods value to 5 | ||
And user gives CPU Utilizationvalue as 60 | ||
And user gives Memory Utilization value as 30 |
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.
Include the test data 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.
Scenarios looks good, make sure below acceptance criteria is added
As a user, when i create an HPA from the HPA page in the Admin perspective, I should be brought to the YAML editor with default YAML aligned with v2beta2
As a user, I want to Search for HPAs, click on the Create button and be brought to the YAML editor with default YAML aligned with v2beta2
Please note: Add test data wherever aplicable
And user assigns name value as example | ||
And user gives value to averageUtilization under cpu target as 60 |
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.
Add test data in ""
|
||
@regression | ||
Scenario: Edit HPA action form view | ||
Given user has a workload with HPA assigned to it |
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.
Include the test data wherever applicable i.e, workload as below
user has a workload "nodejs-ex-git-1" with HPA assigned to it
And user checks and edit the cpu value | ||
And user checks and edit the memory value |
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.
Add test data for cpu, memory values
f265111
to
6caea33
Compare
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, gajanan-more, makambalaji, sanketpathak The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@sanketpathak: All pull requests linked via external trackers have merged: Bugzilla bug 1872644 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Gherkin script for the HPA -Add, Edit and Delete
Epic: https://issues.redhat.com/browse/ODC-3556
Story: https://issues.redhat.com/browse/ODC-4339