placement/placement/tests/unit
Chris Dent 3772132579 Microversion 1.38: API support for consumer types
Update allocations, reshaper and usage APIs to accept and present
consumer_type in microversion 1.38.

ensure_consumer in placement/handlers/util.py is updated to be consumer
type aware.

allocation, usage and reshaper schema and handlers are updated

gabbits/consumer-types-1.38.yaml adds tests across the various URIs

A TODO is left in placement/handlers/allocation.py where the database
is being accessed in a way that is not ideal. This will be cleared
up in a followup patch (to add use of an AttributeCache).

Co-Authored-By: Surya Seetharaman <suryaseetharaman.9@gmail.com>
Co-Authored-By: melanie witt <melwittt@gmail.com>

Story: 2005473
Task: 36421

Change-Id: I24c2315093e07dbf25c4fb53152e6a4de7477a51
2021-08-05 23:23:47 +00:00
..
cmd Remove all usage of six library 2020-06-09 14:13:53 +02:00
handlers Microversion 1.38: API support for consumer types 2021-08-05 23:23:47 +00:00
objects Add consumer_types migration, database and object changes 2021-08-05 23:23:46 +00:00
__init__.py Empty __init__.py files that should be empty 2018-09-04 10:31:26 -05:00
base.py Make a TraitCache similar to ResourceClassCache 2019-07-24 11:23:50 +01:00
policy_fixture.py policy: Don't persist default rule changes in tests 2021-01-27 16:55:20 +00:00
test_auth.py Make placement base API return version without auth 2019-08-05 13:33:05 +00:00
test_context.py Use unittest.mock instead of third party mock 2020-04-30 12:01:27 -05:00
test_db_api.py Use unittest.mock instead of third party mock 2020-04-30 12:01:27 -05:00
test_db_conf.py Remove all usage of six library 2020-06-09 14:13:53 +02:00
test_deploy.py Remove pep8 whitespace ignores 2019-03-05 18:18:30 -06:00
test_fault_wrap.py Use unittest.mock instead of third party mock 2020-04-30 12:01:27 -05:00
test_handler.py Use unittest.mock instead of third party mock 2020-04-30 12:01:27 -05:00
test_microversion.py Use unittest.mock instead of third party mock 2020-04-30 12:01:27 -05:00
test_policy.py policy: Remove the deprecated 'placement' rule 2021-02-02 20:06:12 +00:00
test_requestlog.py Use unittest.mock instead of third party mock 2020-04-30 12:01:27 -05:00
test_util.py Remove all usage of six library 2020-06-09 14:13:53 +02:00