nova/nova/tests/functional
Brianna Poulos 8c7ca368b1 Add trusted_image_certificates to REST API
This change adds support for the trusted_image_certificates parameter,
which is used to define a list of trusted certificate IDs that can be
used during image signature verification and certificate validation. The
parameter may contain a list of strings, each string representing the ID
of a trusted certificate. The list is restricted to a maximum of 50 IDs.
The list of certificate IDs will be stored in the trusted_certs field of
the instance InstanceExtra and will be used to verify the validity of
the signing certificate of a signed instance image.

The trusted_image_certificates request parameter can be passed to
the server create and rebuild APIs (if allowed by policy):

* POST /servers
* POST /servers/{server_id}/action (rebuild)

The following policy rules were added to restrict the usage of the
``trusted_image_certificates`` request parameter in the server create
and rebuild APIs:

* os_compute_api:servers:create:trusted_certs
* os_compute_api:servers:rebuild:trusted_certs

The trusted_image_certificates parameter will be in the response
body of the following APIs (not restricted by policy):

* GET /servers/detail
* GET /servers/{server_id}
* PUT /servers/{server_id}
* POST /servers/{server_id}/action (rebuild)

APIImpact

Implements blueprint: nova-validate-certificates
Change-Id: Iedd3fea0e86648fae364f075915555dcb2c4f199
2018-06-13 15:52:59 -04:00
..
api Merge "placement: Use INNER JOIN for requied traits" 2018-06-12 16:05:54 +00:00
api_sample_tests Add trusted_image_certificates to REST API 2018-06-13 15:52:59 -04:00
compute Make get_instance_objects_sorted() be smart about cells 2018-05-09 12:52:56 -07:00
db add consumers generation field 2018-06-12 15:27:57 -04:00
libvirt libvirt: Don't report DISK_GB if sharing 2018-06-12 18:19:38 +05:30
notification_sample_tests Transform instance.exists notification 2018-06-05 12:51:30 +00:00
regressions libvirt: Don't report DISK_GB if sharing 2018-06-12 18:19:38 +05:30
wsgi libvirt: Don't report DISK_GB if sharing 2018-06-12 18:19:38 +05:30
__init__.py
api_paste_fixture.py Remove legacy v2 API functional tests 2016-05-04 18:17:23 +08:00
api_samples_test_base.py Add pagination and changes-since for instance-actions 2017-12-14 07:42:17 +00:00
integrated_helpers.py libvirt: Don't report DISK_GB if sharing 2018-06-12 18:19:38 +05:30
test_aggregates.py mirror nova host aggregate members to placement 2018-05-30 12:45:20 -04:00
test_compute_mgr.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
test_images.py Add create image functional negative tests 2016-12-26 14:15:14 +09:00
test_instance_actions.py make microversion a client level construct for tests 2016-02-24 11:02:05 -05:00
test_legacy_v2_compatible_wrapper.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test_list_servers_ip_filter.py Trivial: Nix duplicate PlacementFixture() in test 2017-12-01 15:39:28 -06:00
test_login.py update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_metadata.py Remove unused logging import 2017-02-17 15:17:51 +07:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_multiattach.py [api] Allow multi-attach in compute api 2018-01-22 10:45:13 -05:00
test_nova_manage.py libvirt: Don't report DISK_GB if sharing 2018-06-12 18:19:38 +05:30
test_report_client.py mirror nova host aggregate members to placement 2018-05-30 12:45:20 -04:00
test_server_group.py Add late server group policy check to rebuild 2018-02-06 13:54:12 +01:00
test_servers.py libvirt: Don't report DISK_GB if sharing 2018-06-12 18:19:38 +05:30