commit b6a99a390caf2c143f3211c40f2ac7f5d51c9c1d
Author: Matt Riedemann <email address hidden>
Date: Wed Mar 1 22:19:09 2017 -0500
Add functional test for ip filtering with regex
There was a bug in Tempest where it would filter the
list of servers by fixed IP address and expected to
only get back one server but sometimes got more than
one. That was because the IP of one server was
a prefix of the IP of another server, and because of
the regex used in the _ip_filter method in the compute
API it will return all matches.
This is how the IP filtering has always worked, but
it's not clear we had a solid test coverage of this
scenario so a functional test was written to confirm
the expected behavior and so that we don't regress it
since it's not documented in the api-ref (yet).
Reviewed: https:/ /review. openstack. org/439969 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b6a99a390ca f2c143f3211c40f 2ac7f5d51c9c1d
Committed: https:/
Submitter: Jenkins
Branch: master
commit b6a99a390caf2c1 43f3211c40f2ac7 f5d51c9c1d
Author: Matt Riedemann <email address hidden>
Date: Wed Mar 1 22:19:09 2017 -0500
Add functional test for ip filtering with regex
There was a bug in Tempest where it would filter the
list of servers by fixed IP address and expected to
only get back one server but sometimes got more than
one. That was because the IP of one server was
a prefix of the IP of another server, and because of
the regex used in the _ip_filter method in the compute
API it will return all matches.
This is how the IP filtering has always worked, but
it's not clear we had a solid test coverage of this
scenario so a functional test was written to confirm
the expected behavior and so that we don't regress it
since it's not documented in the api-ref (yet).
Change-Id: If0e6d7ea7ac61a 8480bf7f0288b26 3902536dc59
Related-Bug: #1668828