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

Fixes incorrect comparison for test_bucket_used_bytes_metric #10536

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

udaysk23
Copy link
Contributor

@udaysk23 udaysk23 commented Sep 19, 2024

Fixes #9489

Response receiving to method:
19:30:27 - MainThread - mcg.test_noobaa_prometheus - INFO - {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'NooBaa_bucket_used_bytes', 'bucket_name': 's3-bucket-2617cd552c404b46833d0f2712abd0', 'container': 'core', 'endpoint': 'mgmt', 'instance': '10.131.0.27:8080', 'job': 'noobaa-mgmt', 'namespace': 'openshift-storage', 'pod': 'noobaa-core-0', 'service': 'noobaa-mgmt'}, 'value': [1726754427.034, '0']}]}}

The type of 'value': [1726754427.034, '0'] is str and it is getting compared with int 0 in below test
tests/functional/object/mcg/test_noobaa_prometheus.py::TestNoobaaaPrometheus::test_bucket_used_bytes_metric

@udaysk23 udaysk23 requested a review from a team as a code owner September 19, 2024 14:20
@udaysk23 udaysk23 added MCG Multi Cloud Gateway / NooBaa related issues Squad/Red labels Sep 19, 2024
@udaysk23 udaysk23 added the Verified Mark when PR was verified and log provided label Sep 19, 2024
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: ukurundw-37
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/object/mcg/test_noobaa_prometheus.py::TestNoobaaaPrometheus::test_bucket_used_bytes_metric
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job PASSED.

Copy link

openshift-ci bot commented Sep 23, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: keesturam, sagihirshfeld, udaysk23

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

@keesturam keesturam merged commit 66af8d2 into red-hat-storage:master Sep 23, 2024
6 of 7 checks passed
nagendra202 pushed a commit to nagendra202/ocs-ci that referenced this pull request Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm MCG Multi Cloud Gateway / NooBaa related issues size/XS Squad/Red Verified Mark when PR was verified and log provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_bucket_used_bytes_metric method is comparing string to int
4 participants