nova/nova/tests/functional
Adam Spiers 94d83e40e1 Fix fake DELETE in PlacementFixture
Currently functional tests cannot test the DELETE method on some API
endpoints, e.g.

    DELETE /placement/traits/{name}

This is because it is not setting the request headers to have the
right microversion API - this setting was added for GET / PUT / POST
in I681712ac37f732c7803c68f6c7d1eae9f2877d3d, but not for DELETE.
Therefore the microversion defaults to 1.0 which for some endpoints is
lower than the required version, e.g. the endpoint above requires a
minimum microversion of 1.6, which is when this API was introduced.

This results in any invocation of _fake_delete() receiving a 404
error, although this error has not been experienced so far because
nothing uses _fake_delete() yet.

In order to enable future functional tests which hit this API call,
set the request headers in a manner consistent with the other HTTP
methods for the same endpoint.

Change-Id: I2e2d9a9ae12404fe66eae64f8767e348012d7932
2019-02-19 00:49:15 +00:00
..
api Use external placement in functional tests 2018-12-12 18:46:49 +00:00
api_sample_tests Merge "API microversion 2.69: Handles Down Cells" 2019-02-17 00:01:31 +00:00
compute Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
db Modify InstanceMappingList.get_not_deleted_by_cell_and_project() 2019-02-08 16:28:28 -05:00
libvirt Reduce calls to placement from _ensure 2019-01-16 18:34:34 +00:00
notification_sample_tests Merge "Change live_migration_wait_for_vif_plug=True by default" 2019-02-14 19:24:33 +00:00
regressions Add functional regression recreate test for bug 1790204 2018-12-20 18:09:02 -05:00
wsgi Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
__init__.py Remove args(os=False) in monkey_patch 2019-01-04 21:56:50 +00:00
api_paste_fixture.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
api_samples_test_base.py Merge "Fix os-simple-tenant-usage result order" 2018-10-27 08:57:52 +00:00
fixtures.py Fix fake DELETE in PlacementFixture 2019-02-19 00:49:15 +00:00
integrated_helpers.py Follow up (#2) for the bw resource provider series 2019-02-11 14:35:15 -05:00
test_aggregates.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
test_boot_from_volume.py Properly track local root disk usage during moves 2018-10-08 17:33:49 -04:00
test_compute_mgr.py Use a static resource tracker in compute manager 2019-01-17 06:34:29 +00:00
test_conf_max_attach_disk_devices.py Add configuration of maximum disk devices to attach 2019-01-30 15:47:10 +00:00
test_images.py Add create image functional negative tests 2016-12-26 14:15:14 +09:00
test_instance_actions.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_legacy_v2_compatible_wrapper.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_list_servers_ip_filter.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
test_login.py update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_metadata.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_multiattach.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_nova_manage.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
test_report_client.py Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
test_server_group.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
test_servers.py Merge "API microversion 2.69: Handles Down Cells" 2019-02-17 00:01:31 +00:00