nova/nova/tests/unit
Stephen Finucane eef4b5435e api: Reject non-spawn operations for vTPM
We're going to gradually introduce support for the various instance
operations when using vTPM due to the complications of having to worry
about the state of the vTPM device on the host. Add in API checks to
reject all manner of requests until we get to include support for each
one. With this change, the upcoming patch to turn everything on will
allow a user to create, delete and reboot an instance with vTPM, while
evacuate, rebuild, cold migration, live migration, resize, rescue and
shelve will not be supported immediately.

While we're here, we rename two unit test files so that their names
match the files they are testing and one doesn't have to spend time
finding them.

Change-Id: I3862a06ca28b383d525bcc9dcbc6fb1d4062f193
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-08-24 19:37:01 +01:00
..
accelerator Delete ARQs by UUID if Cyborg ARQ bind fails. 2020-07-23 15:26:07 +08:00
api api: Reject non-spawn operations for vTPM 2020-08-24 19:37:01 +01:00
cmd Add nova-status upgrade check and reno for policy new defaults 2020-05-01 15:32:51 +00:00
compute api: Reject non-spawn operations for vTPM 2020-08-24 19:37:01 +01:00
conductor Delete ARQs by UUID if Cyborg ARQ bind fails. 2020-07-23 15:26:07 +08:00
conf Support different vGPU types per pGPU 2020-04-09 17:54:26 +02:00
console Merge "Allow TLS ciphers/protocols to be configurable for console proxies" 2020-02-24 17:27:02 +00:00
db Fix configure() called after DatabaseAtVersion fixture 2020-05-22 17:45:14 +01:00
fake_loadables
image Merge "Move image verification and writing out of download method" 2020-07-21 14:22:14 +00:00
keymgr
network Merge "Switch from unittest2 compat methods to Python 3.x methods" 2020-07-21 13:57:40 +00:00
notifications scheduler: Request vTPM trait based on flavor or image 2020-07-16 17:54:44 +01:00
objects Remove six.PY2 and six.PY3 2020-08-15 07:45:23 +00:00
pci Lookup nic feature by PCI address 2020-08-04 22:25:02 +00:00
policies api: Reject non-spawn operations for vTPM 2020-08-24 19:37:01 +01:00
privsep images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
scheduler Merge "scheduler: Request vTPM trait based on flavor or image" 2020-07-24 09:23:54 +00:00
servicegroup Handle ServiceNotFound in DbDriver._report_state 2019-12-04 09:50:17 -05:00
ssl_cert
virt Merge "libvirt: Pass context, instance to '_create_guest'" 2020-08-24 17:43:16 +00:00
volume Merge "Add retry to cinder API calls related to volume detach" 2020-04-20 17:36:33 +00:00
__init__.py
cast_as_call.py
conf_fixture.py Support different vGPU types per pGPU 2020-04-09 17:54:26 +02:00
fake_block_device.py
fake_build_request.py
fake_console_auth_token.py
fake_crypto.py
fake_diagnostics.py
fake_flavor.py
fake_hosts.py
fake_instance.py objects: Update keypairs when saving an instance 2020-07-22 12:29:19 +00:00
fake_ldap.py
fake_network.py nova-net: Kill it 2020-01-14 21:25:56 +00:00
fake_network_cache_model.py
fake_notifier.py
fake_pci_device_pools.py
fake_policy.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
fake_processutils.py
fake_request_spec.py objects: Introduce 'pcpuset' field for InstanceNUMACell 2020-07-14 00:38:34 +08:00
fake_requests.py
fake_server_actions.py Store instance action event exc_val fault details 2020-03-21 06:08:34 +00:00
fake_volume.py
image_fixtures.py
matchers.py
policy_fixture.py Fix the suppress of policy deprecation warnings 2020-01-07 17:58:09 +00:00
test_api_validation.py Remove six.PY2 and six.PY3 2020-08-15 07:45:23 +00:00
test_availability_zones.py trivial: Fetch 'Service' objects once when building AZs 2020-02-05 21:26:23 +00:00
test_baserpc.py
test_block_device.py utils: Move 'get_bdm_image_metadata' to nova.block_device 2020-07-08 11:56:01 +01:00
test_cache.py
test_cinder.py
test_conf.py test cleanup: Make base TestCase subclass oslotest 2019-11-22 22:38:22 +00:00
test_configdrive2.py
test_context.py Revert "Log CellTimeout traceback in scatter_gather_cells" 2019-10-22 17:12:28 -04:00
test_crypto.py Remove six.PY2 and six.PY3 2020-08-15 07:45:23 +00:00
test_exception.py Remove six.PY2 and six.PY3 2020-08-15 07:45:23 +00:00
test_fake_notifier.py
test_fixtures.py Fix configure() called after DatabaseAtVersion fixture 2020-05-22 17:45:14 +01:00
test_flavors.py
test_hacking.py Remove hacking rules for python 2/3 compatibility 2020-06-17 08:19:13 +00:00
test_identity.py
test_instance_types_extra_specs.py
test_json_ref.py Tests: autospecs all the mock.patch usages 2019-08-19 09:43:10 -05:00
test_loadables.py
test_matchers.py
test_metadata.py metadata: export the vCPU IDs that are pinning on the host CPUs 2020-07-21 21:31:41 +08:00
test_notifications.py nova-net: Remove dependency on nova-net from fake cache 2020-01-08 13:54:12 +00:00
test_notifier.py
test_policy.py Add new default roles in FIP policies 2020-08-17 09:56:55 -05:00
test_profiler.py Remove 'nova.image.api' module 2020-02-18 11:45:39 +00:00
test_quota.py nova-net: Convert remaining unit tests to neutron 2019-12-16 09:58:42 +00:00
test_rpc.py
test_safeutils.py
test_service.py nova-net: Remove final references to nova-network 2020-01-08 13:54:12 +00:00
test_service_auth.py
test_test.py
test_test_utils.py Extend is_ipv6_supported() to cover more error cases 2020-06-29 15:13:55 +02:00
test_utils.py utils: Move 'get_bdm_image_metadata' to nova.block_device 2020-07-08 11:56:01 +01:00
test_versions.py
test_weights.py
test_wsgi.py Remove six.PY2 and six.PY3 2020-08-15 07:45:23 +00:00
utils.py Extend is_ipv6_supported() to cover more error cases 2020-06-29 15:13:55 +02:00