Commit Graph

8 Commits

Author SHA1 Message Date
Ding Jin e85c6b6193 Move load_auth_fixtures()
Move load_auth_fixtures() to the BaseTest class.

Change-Id: I838848114acd8a2e24f89b0cf748eeb19738050f
2018-07-05 09:10:17 -04:00
Lohith 902c033af8 Avoid request loops between mixmatch proxies
Closes-Bug:#1763549

Change-Id: I9ad9a2363024ce722c1cb2b1bac27be755fc6888
2018-05-02 16:26:59 -04:00
Jeremy Freudberg a85cf6bf52 Stop using six.b and six.u
For a better developer experience, accomplish removal of six.b and
six.u by changing how Werkzeug response objects are handled in the
relevant unit tests.

Change-Id: Iac36e5fd9eb7ef78e6c8e9e8bff1c596e2e5823e
2017-07-31 17:51:22 +00:00
Kristi Nikolla 6673e2e6f2 Preliminary extension support + Name routing
This introduces preliminary support for extensions.
Extensions are registered to routes, and if the
request matches the registered route they will be
called to handle the request and the response.
The interface is still not finalized and will
progress as more extensions with their different
requirements are added.

Also included dependency on oslo_serialization for
loading the json response. Follow up patch will
change all instances of json.loads to
jsonutils.loads

Change-Id: I9c573ce1d4ebe85c07c8ff219f384e3c6c67b39a
2017-07-21 16:05:13 -04:00
Jeremy Freudberg 22f45add29 Return most specific error instead of 404
Particularly for client-side errors, we ought to at least return the
actual error status instead of a generic 404.

Enablement of negative Tempest tests.

Change-Id: Ieaf658c9bd202dbb5000c10c43bdd1afa15a2aa1
2017-07-03 16:26:59 +00:00
Eric Juma e489214f0a Refactor image tests to match new volume tests
All changes are in test_images.py

Change-Id: I52649ffcca55f392aa5dc85a34e51e64ccf5379b
2017-02-03 10:39:05 -05:00
Eric Juma ba8eb74a24 Handle schema and first keys in aggregation
Add ability to handle 'schema' and 'first' keys in aggregation,
which is necessary for proper aggregation of image responses which
contain these keys. Add test for the change.

Change-Id: Id4a5804994e245174fdca3b09cbc9a29d685be0f
2016-12-22 16:12:53 -05:00
wjdan.alharthi b6adaa8265 Refactor unit tests
changes the structure of unit tests directory by seperating
image tests from volume tests. Created a base for common
classes used by both.

Change-Id: I0e62b25f33d9d30051808927182081dbdc24eced
2016-12-08 16:44:59 +00:00