keystone/keystone/tests
Boris Bobrov 7b6364a4f8 Use the driver to get limits
@response_truncated was used to set the limit of returned entries. It
asked the driver about the limit and set it to hints. With
domain-specific configs, there are multiple driver instances and each of
them carries domain-specific config.

However, with domain-specific configs, the driver is not yet configured
at that point, because sometimes the manager needs to perform additional
actions in order to understand what domain it works with. Because of
that, @response_truncated always got the limit from the default driver,
not from the one actually used for the domain.

Move the logic of setting the limit from the decorator to a private
method, call it after determining the domain and driver.

Change-Id: I1748d491b047e33712380da731c272f9d471ec0a
Closes-Bug: 1495669
2016-02-17 18:53:20 +03:00
..
common Adds a base class for functional tests 2015-12-14 15:46:31 +01:00
functional Correct docstrings 2016-02-01 21:35:15 -05:00
hacking Adds a hacking check looking for Logger.warn usage 2016-01-06 19:56:51 +00:00
unit Use the driver to get limits 2016-02-17 18:53:20 +03:00
__init__.py Move existing tests to unit 2015-02-13 15:54:29 -06:00