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.
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.utils/ +/908289 /opendev. org/openstack/ oslo.utils/ commit/ 72c80f699371481 6a33d8ce22019ce e5b8180069
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 72c80f699371481 6a33d8ce22019ce e5b8180069
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 7572d4b82117b89 b8d3eb75e56
Change-Id: I444c01219d02ea
Signed-off-by: Adam Rozman <email address hidden>
Co-authored-by: Takashi Kajinami <email address hidden>