nova/nova/tests/functional/api_sample_tests
EdLeafe 28d2b0df5a Remove more 'v3' references from the code
This is part of the V3 cleanup effort. The 'ApiSampleTestBaseV3' class
has been renamed to 'ApiSampleTestBaseV21', and all references to it
updated. Also, all references to the 'nova.api.v3' extension namespace
have been renamed to 'nova.api.v21'. Finally, some code that used short
variable names like 'v1', 'v2', etc., has been updated to rename these
'vers1', 'vers2', to avoid confusion with the v3 issue.

Change-Id: I23eab21c7158ba319e060bd075ef25afc5365381
2015-09-08 13:56:05 +00:00
..
api_samples Expose VIF net-id attribute in os-virtual-interfaces 2015-08-27 16:50:44 +09:00
README.rst Remove merged sample tests and file for v2 tests 2015-08-24 04:14:41 +00:00
__init__.py Move legacy v2 api smaple tests 2015-08-15 12:30:20 +10:00
api_sample_base.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_access_ips.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00: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 Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_aggregates.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_assisted_volume_snapshots.py Fix order of arguments in assertEqual 2015-08-30 23:50:56 -07:00
test_attach_interfaces.py Fix order of arguments in assertEqual 2015-08-30 23:50:56 -07:00
test_availability_zone.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_baremetal_nodes.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_block_device_mapping_boot.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_cells.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_certificates.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_cloudpipe.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_config_drive.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_console_auth_tokens.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_console_output.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_consoles.py Fix order of arguments in assertEqual 2015-08-30 23:50:56 -07: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 Fix order of arguments in assertEqual 2015-08-30 23:50:56 -07:00
test_evacuate.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_extended_availability_zone.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_extended_server_attributes.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_extended_status.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_extended_volumes.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_extension_info.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_fixed_ips.py Fix order of arguments in assertEqual 2015-08-30 23:50:56 -07:00
test_flavor_access.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00: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 more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_flavor_rxtx.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_flavors.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00: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 Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_floating_ips.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_floating_ips_bulk.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_fping.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09: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 more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_hypervisors.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_image_size.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_images.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_instance_actions.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_instance_usage_audit_log.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_keypairs.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_limits.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00: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 Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_migrations.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_multinic.py Fix order of arguments in assertEqual 2015-08-31 00:34:16 -07:00
test_multiple_create.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_networks.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_networks_associate.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00: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 Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_personality.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_preserve_ephemeral_rebuild.py Fix order of arguments in assertEqual 2015-08-31 00:34:16 -07: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 Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_rescue.py Fix order of arguments in assertEqual 2015-08-31 00:01:09 -07:00
test_scheduler_hints.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00: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 Fix order of arguments in assertEqual 2015-08-31 00:01:09 -07:00
test_server_diagnostics.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_server_external_events.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_server_groups.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_server_metadata.py Fix order of arguments in assertEqual 2015-08-31 00:01:09 -07:00
test_server_password.py Fix order of arguments in assertEqual 2015-08-31 00:01:09 -07:00
test_server_usage.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_servers.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_servers_ips.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_services.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_shelve.py Fix order of arguments in assertEqual 2015-08-31 00:01:09 -07:00
test_simple_tenant_usage.py Cleanup for merging v2 and v2.1 functional tests. 2015-08-26 10:56:29 +09:00
test_suspend_server.py Fix order of arguments in assertEqual 2015-08-31 00:01:09 -07:00
test_tenant_networks.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_used_limits.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_user_data.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_versions.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00:00
test_virtual_interfaces.py Expose VIF net-id attribute in os-virtual-interfaces 2015-08-27 16:50:44 +09:00
test_volumes.py Remove more 'v3' references from the code 2015-09-08 13:56:05 +00: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. There should be both JSON and XML tests included.

Then run the following command:

GENERATE_SAMPLES=True tox -e functional

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.