nova/nova/tests/functional/api_sample_tests
Jenkins 85c96e0c79 Merge "Replace stubs.Set with stub_out (functional tests)" 2016-01-14 03:10:47 +00:00
..
api_samples api: add soft-affinity policies for server groups 2016-01-07 10:43:57 +01: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 update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_access_ips.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05: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 Convert nova.tests.unit.image.fake.stub_out_image_service to use stub_out 2016-01-06 16:42:20 -08: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 remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05: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 remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05: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 remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05: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 remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_servers_ips.py remove use of _get_regexes in samples tests 2016-01-05 06:33:02 -05:00
test_services.py Merge "remove use of _get_regexes in samples tests" 2016-01-06 09:19:56 +00: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 Replace stubs.Set with stub_out (functional tests) 2016-01-07 16:16:23 -05: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.