nova/nova/tests/functional/api_sample_tests
Andrea Rosa cf34a32820 Enable volume operations for shelved instances
This change enables the attach and detach volume operations for
instances which are in shelve and shelved_offloaded state.
The code to manage the actual attach and detach is implemented by this
change: https://review.openstack.org/259528
New tempest tests are going to be written for testing the new feature.

APIImpact
DocImpact by this change we are allowing operations which were not
allowed before, we need to track this change in the documentation.

Partially implements blueprint: volume-ops-when-shelved

Change-Id: I43b67a50d998d43a6ff78c917093c513231b6ff2
2016-02-03 17:51:26 +00:00
..
api_samples Enable volume operations for shelved instances 2016-02-03 17:51:26 +00:00
README.rst add api-samples tox target 2015-12-03 22:43:26 +00:00
__init__.py Move legacy v2 api smaple tests 2015-08-15 12:30:20 +10:00
api_sample_base.py Fixed incorrect names/comments for API version 2.18 2016-01-25 11:36:47 +03:00
test_access_ips.py Enable all extension for server PUT API sample tests 2016-01-28 14:06:36 +09:00
test_admin_actions.py Fix order of arguments in assertEqual 2015-08-30 23:50:56 -07:00
test_admin_password.py Fix order of arguments in assertEqual 2015-08-30 23:50:56 -07:00
test_agents.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_aggregates.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_assisted_volume_snapshots.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_attach_interfaces.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_availability_zone.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_baremetal_nodes.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_block_device_mapping_boot.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_cells.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_certificates.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_cloudpipe.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_config_drive.py Replace stubs.Set with stub_out (fakes) 2016-01-13 22:19:38 -05:00
test_console_auth_tokens.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_console_output.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_consoles.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_create_backup.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_deferred_delete.py Fix order of arguments in assertEqual 2015-08-30 23:50:56 -07:00
test_disk_config.py Enable all extension for server PUT API sample tests 2016-01-28 14:06:36 +09:00
test_evacuate.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_extended_availability_zone.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_extended_server_attributes.py Add host_status attribute for servers/detail and servers/{server_id} 2016-01-16 20:07:49 +02:00
test_extended_status.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_extended_volumes.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_extension_info.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_fixed_ips.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_flavor_access.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_flavor_extraspecs.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_flavor_manage.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_flavor_rxtx.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_flavors.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_floating_ip_dns.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_floating_ip_pools.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_floating_ips.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_floating_ips_bulk.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_fping.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_hide_server_addresses.py Move the v2 api_sample functional tests 2015-08-18 15:25:41 +08:00
test_hosts.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_hypervisors.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_images.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_instance_actions.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_instance_usage_audit_log.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_keypairs.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_limits.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_lock_server.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_migrate_server.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_migrations.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_multinic.py Fix order of arguments in assertEqual 2015-08-31 00:34:16 -07:00
test_multiple_create.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_networks.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_networks_associate.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_pause_server.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_pci.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_personality.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_preserve_ephemeral_rebuild.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_quota_classes.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_quota_sets.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_remote_consoles.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_rescue.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_scheduler_hints.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_security_group_default_rules.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_security_groups.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_server_diagnostics.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_server_external_events.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_server_groups.py ServerGroupsV213SampleJsonTest should actually test v2.13 2016-01-14 14:48:40 -08:00
test_server_metadata.py remove unused extends_name attribute 2015-12-18 07:59:07 -05:00
test_server_password.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_server_usage.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_servers.py Enable all extension for server PUT API sample tests 2016-01-28 14:06:36 +09:00
test_servers_ips.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_services.py Add service status notification 2016-01-20 15:31:55 +01:00
test_shelve.py Fix order of arguments in assertEqual 2015-08-31 00:01:09 -07:00
test_simple_tenant_usage.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_suspend_server.py remove ctype from classes 2015-12-14 10:16:52 -05:00
test_tenant_networks.py Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05:00
test_used_limits.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_user_data.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_versions.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_virtual_interfaces.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_volumes.py Pass attachment_id to Cinder when detach a volume 2016-01-20 22:16:27 +01:00

README.rst

Api Samples

This part of the tree contains templates for API samples. The documentation in doc/api_samples is completely autogenerated from the tests in this directory.

To add a new api sample, add tests for the common passing and failing cases in this directory for your extension, and modify test_samples.py for your tests.

Then run the following command:

tox -e api-samples

Which will create the files on doc/api_samples.

If new tests are added or the .tpl files are changed due to bug fixes, the samples must be regenerated so they are in sync with the templates, as there is an additional test which reloads the documentation and ensures that it's in sync.

Debugging sample generation

If a .tpl is changed, its matching .json must be removed else the samples won't be generated. If an entirely new extension is added, a directory for it must be created before its samples will be generated.