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

Fix alarm conformance tests #559

Conversation

alegacy
Copy link
Collaborator

@alegacy alegacy commented Feb 12, 2025

  • Fix capitalization of alarm event attributes

    The interface spec uses "ID" instead of "Id" as the suffix on several
    alarm event record attributes. Aligning them now to pass the
    conformance tests.

  • Fix filter comparison of boolean fields

    The conformance tests are performance an alarm query with a filter set
    to: (eq,alarmAcknowledged,false) therefore, we need to support boolean
    fields in the filter search evaluator.

The conformance tests are performance an alarm query with a filter set
to: (eq,alarmAcknowledged,false) therefore, we need to support boolean
fields in the filter search evaluator.

Signed-off-by: Allain Legacy <[email protected]>
The interface spec uses "ID" instead of "Id" as the suffix on several
alarm event record attributes.  Aligning them now to pass the
conformance tests.

Signed-off-by: Allain Legacy <[email protected]>
@alegacy
Copy link
Collaborator Author

alegacy commented Feb 12, 2025

/label tide/merge-method-rebase

@openshift-ci openshift-ci bot requested review from donpenney and edcdavid February 12, 2025 13:57
@openshift-ci openshift-ci bot added the tide/merge-method-rebase Denotes a PR that should be rebased by tide when it merges. label Feb 12, 2025
@pixelsoccupied
Copy link
Collaborator

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 12, 2025
Copy link

openshift-ci bot commented Feb 12, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pixelsoccupied

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 12, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit cfc2ad6 into openshift-kni:main Feb 12, 2025
4 checks passed
Comment on lines +242 to +244
case bool:
arg := arg.(bool)
result = value == arg
Copy link
Collaborator

Choose a reason for hiding this comment

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

wonder if there's a cleaner way to handle maybe with another library? feels like we have to keep doing this we find new types (last time you had to tackle float) 🫤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. tide/merge-method-rebase Denotes a PR that should be rebased by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants