Comment 2 for bug 2052619

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.utils (master)

Reviewed: https://review.opendev.org/c/openstack/oslo.utils/+/908289
Committed: https://opendev.org/openstack/oslo.utils/commit/72c80f6993714816a33d8ce22019cee5b8180069
Submitter: "Zuul (22348)"
Branch: master

commit 72c80f6993714816a33d8ce22019cee5b8180069
Author: Adam Rozman <email address hidden>
Date: Wed Feb 7 12:55:30 2024 +0200

    add <range-in> spec DSL operator

    Add a new spec DSL operator called `range-in` that allowes users of
    the spec_matcher to match values against numeric ranges.
    The surrounding brackets determines whether the limit should be
    inclusive or not.

    examples:
     <range-in> [ 10 20 ] : 10 <= x <= 20
     <range-in> ( 10 20 ] : 10 < x <= 20
     <range-in> [ 10 20 ) : 10 <= x < 20
     <range-in> ( 10 20 ) : 10 < x < 20

    Closes-Bug: #2052619
    Change-Id: I444c01219d02ea7572d4b82117b89b8d3eb75e56
    Signed-off-by: Adam Rozman <email address hidden>
    Co-authored-by: Takashi Kajinami <email address hidden>