osc-placement/osc_placement/tests/functional
Tetsuro Nakamura a4ac717a48 Add "--resource-class" to allocation unset
The ``openstack resource provider allocation unset`` command now
supports ``--resource-class`` option, which accepts string of a
resource class. This will remove allocations for the given resource
class from all the providers. If ``--provider`` option is also
specified, allocations to remove will be limited to the given resource
class of the given resource provider.

example1::

  # remove VGPU allocation from provider P for this consumer.
  allocation unset <consumer_uuid> --provider P --resource-class VGPU

example2::

  # remove VGPU allocations from all providers for this consumer.
  allocation unset <consumer_uuid> --resource-class VGPU

Change-Id: I91baf9de5205ec15023706a1646556850302d3d9
Story: #2006779
Task: #37304
2021-05-13 06:23:54 +00:00
..
__init__.py Initial commit 2017-03-22 11:58:28 +02:00
base.py Add "--resource-class" to allocation unset 2021-05-13 06:23:54 +00:00
test_aggregate.py Add support for 1.19 microversion 2019-03-06 18:23:03 +00:00
test_allocation.py Add "--resource-class" to allocation unset 2021-05-13 06:23:54 +00:00
test_allocation_candidate.py Support granular allocation candidate list 2020-09-11 06:23:09 +00:00
test_inventory.py Include usage in 'inventory list', 'inventory show' 2020-08-07 15:12:02 +01:00
test_plugin.py Update tox and tests to work with modern setups 2019-03-01 04:12:18 +00:00
test_resource_class.py Resource class set (v1.7) 2018-05-17 09:54:17 -04:00
test_resource_provider.py Support multiple member_of query parameter 2020-09-11 06:23:09 +00:00
test_trait.py Fix error message asserts in functional test 2018-05-17 09:54:17 -04:00
test_usage.py Use PlacementFixture in functional tests 2019-05-03 15:04:56 -06:00