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

[New Feature Automation] RHSTOR-4624 ODF used capacity trend #10520

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nagendra202
Copy link
Contributor

Automated below two test cases.

  1. Verify the widget for “Consumption trend”
    steps:
    1. Login to the ODF dashboard and check the widget for “Consumption trend” is displayed or not.
    3. Verify the text information on the widget
  2. Verify the accuracy of ‘Estimated days until full’ in the widget
    steps:
    1. Get the value of storage utilised, total storage, age of the cluster
    and calculate Average of storage consumption and 'Estimated days until full'.
    2. Compare the above calculated value with the ‘Estimated days until full’ in the widget (UI)

…y trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automationodf capacity trend automation

Signed-off-by: nagendra202 <[email protected]>
@nagendra202 nagendra202 requested a review from a team as a code owner September 18, 2024 07:51
@nagendra202 nagendra202 self-assigned this Sep 18, 2024
@nagendra202 nagendra202 requested a review from a team as a code owner September 18, 2024 07:51
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines label Sep 18, 2024
Copy link

openshift-ci bot commented Sep 18, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: nagendra202

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: nagreddy-s17-bzv
Cluster Configuration:
PR Test Suite: tier2
PR Test Path: tests/functional/ui/test_odf_storage_consumption_trend.py
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job PASSED.

@nagendra202 nagendra202 added the Verified Mark when PR was verified and log provided label Sep 19, 2024
Convert the storage values from bytes to gibibytes

Returns:
[total_used_in_gibibytes, total_capacity_in_gibibytes]: (list) ex: Used capacity and Available capacity
Copy link
Contributor

Choose a reason for hiding this comment

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

it is preferred to return a tuple

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

This will fetch information from DataFoundation>>Storage>>Block and File page>>Consumption trend card

Returns:
[get_est_days_from_element, get_avg_from_element]: (list)
Copy link
Contributor

Choose a reason for hiding this comment

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

it is preferred to return a tuple

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Further it looks for the Consumption trend card

Returns:
list_of_days_and_avg: (list) ex: [Estimated days, Average]
Copy link
Contributor

Choose a reason for hiding this comment

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

it is preferred to return a tuple

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor Author

@nagendra202 nagendra202 left a comment

Choose a reason for hiding this comment

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

addressed review comments.

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

Unknown PR validation on existing cluster

Cluster Name: nagreddy-s19
Cluster Configuration:
PR Test Suite: tier2
PR Test Path: tests/
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job state: ABORTED.

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

Unknown PR validation on existing cluster

Cluster Name: nagreddy-s19
Cluster Configuration:
PR Test Suite: tier2
PR Test Path: tests/functional/ui/test_odf_storage_consumption_trend.py
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job state: ABORTED.

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: nagreddy-s17-bzv
Cluster Configuration:
PR Test Suite: tier2
PR Test Path: tests/functional/ui/test_odf_storage_consumption_trend.py
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job UNSTABLE (some or all tests failed).

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: nagreddy-s20
Cluster Configuration:
PR Test Suite: tier2
PR Test Path: tests/functional/ui/test_odf_storage_consumption_trend.py
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job PASSED.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature size/L PR that changes 100-499 lines Verified Mark when PR was verified and log provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants