summaryrefslogtreecommitdiff
path: root/nova/tests/unit/test_policy.py
diff options
context:
space:
mode:
authorRené Ribaud <rribaud@redhat.com>2022-06-13 15:22:43 +0200
committerRené Ribaud <rribaud@redhat.com>2022-07-22 10:22:34 +0200
commit09239fc2eadcf266b42c640e386c7cebad715eea (patch)
treee9488d10c9e7a12a9f2792dd83ceb9e7cdd23a1d /nova/tests/unit/test_policy.py
parenta263fa46f861c091d93782d4796c8302f9c30f4a (diff)
downloadnova-09239fc2eadcf266b42c640e386c7cebad715eea.tar.gz
Allow unshelve to a specific host (REST API part)
This adds support to the REST API, in a new microversion, for specifying a destination host to unshelve server action when the server is shelved offloaded. This patch also supports the ability to unpin the availability_zone of an instance that is bound to it. Note that the functional test changes are due to those tests using the "latest" microversion 2.91. Implements: blueprint unshelve-to-host Change-Id: I9e95428c208582741e6cd99bd3260d6742fcc6b7
Diffstat (limited to 'nova/tests/unit/test_policy.py')
-rw-r--r--nova/tests/unit/test_policy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/tests/unit/test_policy.py b/nova/tests/unit/test_policy.py
index c78b4bfba6..3aabe5a717 100644
--- a/nova/tests/unit/test_policy.py
+++ b/nova/tests/unit/test_policy.py
@@ -358,6 +358,7 @@ class RealRolePolicyTestCase(test.NoDBTestCase):
"os_compute_api:os-services:update",
"os_compute_api:os-services:delete",
"os_compute_api:os-shelve:shelve_offload",
+"os_compute_api:os-shelve:unshelve_to_host",
"os_compute_api:os-availability-zone:detail",
"os_compute_api:os-assisted-volume-snapshots:create",
"os_compute_api:os-assisted-volume-snapshots:delete",