¡@

Home 

OpenStack Study: nova

OpenStack Index

Previous

Next

    def _read_template(self, name):

    def _write_template(self, name, data):

    def _write_sample(self, name, data):

    def _compare_result(self, subs, expected, result, result_str):

    def generalize_subs(self, subs, vanilla_regexes):

    def _verify_response(self, name, subs, response, exp_code):

    def _get_host(self):

    def _get_glance_host(self):

    def _get_regexes(self):

    def _get_response(self, url, method, body=None, strip_version=False):

    def _do_get(self, url, strip_version=False):

    def _do_post(self, url, name, subs, method='POST'):

    def _do_put(self, url, name, subs):

    def _do_delete(self, url):

\OpenStack\nova-2014.1\nova\tests\integrated\integrated_helpers.py

def generate_random_alphanumeric(length):

def generate_random_numeric(length):

def generate_new_element(items, prefix, numeric=False):

class _IntegratedTestBase(test.TestCase):

    def setUp(self):

    def _setup_services(self):

    def tearDown(self):

    def _get_test_client(self):

    def _start_api_service(self):

    def _get_flags(self):

    def get_unused_server_name(self):

    def get_invalid_image(self):

    def _build_minimal_create_server_request(self):

\OpenStack\nova-2014.1\nova\tests\integrated\test_api_samples.py

class ApiSampleTestBaseV2(api_samples_test_base.ApiSampleTestBase):

    def setUp(self):

class ApiSamplesTrap(ApiSampleTestBaseV2):

    def _get_extensions_tested(self):

    def _get_extensions(self):

    def test_all_extensions_have_samples(self):

class VersionsSampleJsonTest(ApiSampleTestBaseV2):

    def test_versions_get(self):

class VersionsSampleXmlTest(VersionsSampleJsonTest):

class ServersSampleBase(ApiSampleTestBaseV2):

    def _post_server(self):

class ServersSampleJsonTest(ServersSampleBase):

    def test_servers_post(self):

    def test_servers_get(self):

    def test_servers_list(self):

    def test_servers_details(self):

class ServersSampleXmlTest(ServersSampleJsonTest):

class ServersSampleAllExtensionJsonTest(ServersSampleJsonTest):

class ServersSampleAllExtensionXmlTest(ServersSampleXmlTest):

class ServersSampleHideAddressesJsonTest(ServersSampleJsonTest):

class ServersSampleHideAddressesXMLTest(ServersSampleHideAddressesJsonTest):

class ServersMetadataJsonTest(ServersSampleBase):

    def _create_and_set(self, subs):

    def generalize_subs(self, subs, vanilla_regexes):

    def test_metadata_put_all(self):

    def test_metadata_post_all(self):

    def test_metadata_get_all(self):

    def test_metadata_put(self):

    def test_metadata_get(self):

    def test_metadata_delete(self):

class ServersMetadataXmlTest(ServersMetadataJsonTest):

class ServersIpsJsonTest(ServersSampleBase):

    def test_get(self):

    def test_get_by_network(self):

class ServersIpsXmlTest(ServersIpsJsonTest):

class ExtensionsSampleJsonTest(ApiSampleTestBaseV2):

    def test_extensions_get(self):

class ExtensionsSampleXmlTest(ExtensionsSampleJsonTest):

class FlavorsSampleJsonTest(ApiSampleTestBaseV2):

    def test_flavors_get(self):

    def test_flavors_list(self):

class FlavorsSampleXmlTest(FlavorsSampleJsonTest):

class HostsSampleJsonTest(ApiSampleTestBaseV2):

    def test_host_startup(self):

    def test_host_reboot(self):

    def test_host_shutdown(self):

    def test_host_maintenance(self):

    def test_host_get(self):

    def test_hosts_list(self):

class HostsSampleXmlTest(HostsSampleJsonTest):

class FlavorsSampleAllExtensionJsonTest(FlavorsSampleJsonTest):

class FlavorsSampleAllExtensionXmlTest(FlavorsSampleXmlTest):

class ImagesSampleJsonTest(ApiSampleTestBaseV2):

    def test_images_list(self):

    def test_image_get(self):

    def test_images_details(self):

    def test_image_metadata_get(self):

    def test_image_metadata_post(self):

    def test_image_metadata_put(self):

    def test_image_meta_key_get(self):

    def test_image_meta_key_put(self):

class ImagesSampleXmlTest(ImagesSampleJsonTest):

class LimitsSampleJsonTest(ApiSampleTestBaseV2):

    def test_limits_get(self):

class LimitsSampleXmlTest(LimitsSampleJsonTest):

class ServersActionsJsonTest(ServersSampleBase):

    def _test_server_action(self, uuid, action, subs={}, resp_tpl=None, code=202):

    def test_server_password(self):

    def test_server_reboot_hard(self):

    def test_server_reboot_soft(self):

    def test_server_rebuild(self):

    def test_server_resize(self):

    def test_server_revert_resize(self):

    def test_server_confirm_resize(self):

    def test_server_create_image(self):

class ServersActionsXmlTest(ServersActionsJsonTest):

class ServersActionsAllJsonTest(ServersActionsJsonTest):

class ServersActionsAllXmlTest(ServersActionsXmlTest):

class ServerStartStopJsonTest(ServersSampleBase):

    def _test_server_action(self, uuid, action):

    def test_server_start(self):

    def test_server_stop(self):

class ServerStartStopXmlTest(ServerStartStopJsonTest):

class UserDataJsonTest(ApiSampleTestBaseV2):

    def test_user_data_post(self):

class UserDataXmlTest(UserDataJsonTest):

class FlavorsExtraDataJsonTest(ApiSampleTestBaseV2):

    def _get_flags(self):

    def test_flavors_extra_data_get(self):

    def test_flavors_extra_data_list(self):

    def test_flavors_extra_data_create(self):

class FlavorsExtraDataXmlTest(FlavorsExtraDataJsonTest):

class FlavorRxtxJsonTest(ApiSampleTestBaseV2):

    def _get_flags(self):

    def test_flavor_rxtx_get(self):

    def test_flavors_rxtx_list(self):

    def test_flavors_rxtx_create(self):

class FlavorRxtxXmlTest(FlavorRxtxJsonTest):

class FlavorSwapJsonTest(ApiSampleTestBaseV2):

    def _get_flags(self):

    def test_flavor_swap_get(self):

    def test_flavor_swap_list(self):

    def test_flavor_swap_create(self):

class FlavorSwapXmlTest(FlavorSwapJsonTest):

class SecurityGroupsSampleJsonTest(ServersSampleBase):

    def _get_create_subs(self):

    def _create_security_group(self):

    def _add_group(self, uuid):

    def test_security_group_create(self):

    def test_security_groups_list(self):

    def test_security_groups_get(self):

    def test_security_groups_list_server(self):

    def test_security_groups_add(self):

    def test_security_groups_remove(self):

class SecurityGroupsSampleXmlTest(SecurityGroupsSampleJsonTest):

class SecurityGroupDefaultRulesSampleJsonTest(ServersSampleBase):

    def test_security_group_default_rules_create(self):

    def test_security_group_default_rules_list(self):

    def test_security_group_default_rules_show(self):

class SecurityGroupDefaultRulesSampleXmlTest( SecurityGroupDefaultRulesSampleJsonTest):

class SchedulerHintsJsonTest(ApiSampleTestBaseV2):

    def test_scheduler_hints_post(self):

class SchedulerHintsXmlTest(SchedulerHintsJsonTest):

class ConsoleOutputSampleJsonTest(ServersSampleBase):

    def test_get_console_output(self):

class ConsoleOutputSampleXmlTest(ConsoleOutputSampleJsonTest):

class ExtendedServerAttributesJsonTest(ServersSampleBase):

    def test_show(self):

    def test_detail(self):

class ExtendedServerAttributesXmlTest(ExtendedServerAttributesJsonTest):

class FloatingIpsJsonTest(ApiSampleTestBaseV2):

    def setUp(self):

    def tearDown(self):

    def test_floating_ips_list_empty(self):

    def test_floating_ips_list(self):

    def test_floating_ips_create_nopool(self):

    def test_floating_ips_create(self):

    def test_floating_ips_get(self):

    def test_floating_ips_delete(self):

class ExtendedFloatingIpsJsonTest(FloatingIpsJsonTest):

class FloatingIpsXmlTest(FloatingIpsJsonTest):

class ExtendedFloatingIpsXmlTest(ExtendedFloatingIpsJsonTest):

class FloatingIpsBulkJsonTest(ApiSampleTestBaseV2):

    def setUp(self):

    def tearDown(self):

    def test_floating_ips_bulk_list(self):

    def test_floating_ips_bulk_list_by_host(self):

    def test_floating_ips_bulk_create(self):

    def test_floating_ips_bulk_delete(self):

class FloatingIpsBulkXmlTest(FloatingIpsBulkJsonTest):

class KeyPairsSampleJsonTest(ApiSampleTestBaseV2):

    def generalize_subs(self, subs, vanilla_regexes):

    def test_keypairs_post(self, public_key=None):

    def test_keypairs_import_key_post(self):

    def test_keypairs_get(self):

class KeyPairsSampleXmlTest(KeyPairsSampleJsonTest):

class RescueJsonTest(ServersSampleBase):

    def _rescue(self, uuid):

    def _unrescue(self, uuid):

    def test_server_rescue(self):

    def test_server_unrescue(self):

class RescueXmlTest(RescueJsonTest):

class ShelveJsonTest(ServersSampleBase):

    def setUp(self):

    def _test_server_action(self, uuid, template, action):

    def test_shelve(self):

    def test_shelve_offload(self):

    def test_unshelve(self):

class ShelveXmlTest(ShelveJsonTest):

class VirtualInterfacesJsonTest(ServersSampleBase):

    def test_vifs_list(self):

class VirtualInterfacesXmlTest(VirtualInterfacesJsonTest):

class CloudPipeSampleJsonTest(ApiSampleTestBaseV2):

    def setUp(self):

        def get_user_data(self, project_id):

        def network_api_get(self, context, network_uuid):

    def generalize_subs(self, subs, vanilla_regexes):

    def test_cloud_pipe_create(self):

    def test_cloud_pipe_list(self):

class CloudPipeSampleXmlTest(CloudPipeSampleJsonTest):

class CloudPipeUpdateJsonTest(ApiSampleTestBaseV2):

    def _get_flags(self):

    def test_cloud_pipe_update(self):

class CloudPipeUpdateXmlTest(CloudPipeUpdateJsonTest):

class AgentsJsonTest(ApiSampleTestBaseV2):

    def _get_flags(self):

    def setUp(self):

        def fake_agent_build_create(context, values):

        def fake_agent_build_get_all(context, hypervisor):

        def fake_agent_build_update(context, agent_build_id, values):

        def fake_agent_build_destroy(context, agent_update_id):

    def test_agent_create(self):

    def test_agent_list(self):

    def test_agent_update(self):

    def test_agent_delete(self):

class AgentsXmlTest(AgentsJsonTest):

class FixedIpJsonTest(ApiSampleTestBaseV2):

    def _get_flags(self):

    def setUp(self):

        def fake_fixed_ip_get_by_address(context, address):

        def fake_fixed_ip_get_by_address_detailed(context, address):

        def fake_fixed_ip_update(context, address, values):

    def test_fixed_ip_reserve(self):

    def test_get_fixed_ip(self):

class FixedIpXmlTest(FixedIpJsonTest):

class AggregatesSampleJsonTest(ServersSampleBase):

    def test_aggregate_create(self):

    def test_list_aggregates(self):

    def test_aggregate_get(self):

    def test_add_metadata(self):

    def test_add_host(self):

    def test_remove_host(self):

    def test_update_aggregate(self):

class AggregatesSampleXmlTest(AggregatesSampleJsonTest):

class CertificatesSamplesJsonTest(ApiSampleTestBaseV2):

    def test_create_certificates(self):

    def test_get_root_certificate(self):

class CertificatesSamplesXmlTest(CertificatesSamplesJsonTest):

class UsedLimitsSamplesJsonTest(ApiSampleTestBaseV2):

    def test_get_used_limits(self):

class UsedLimitsSamplesXmlTest(UsedLimitsSamplesJsonTest):

class UsedLimitsForAdminSamplesJsonTest(ApiSampleTestBaseV2):

    def test_get_used_limits_for_admin(self):

class UsedLimitsForAdminSamplesXmlTest(UsedLimitsForAdminSamplesJsonTest):

class MultipleCreateJsonTest(ServersSampleBase):

    def test_multiple_create(self):

    def test_multiple_create_without_reservation_id(self):

class MultipleCreateXmlTest(MultipleCreateJsonTest):

class ServicesJsonTest(ApiSampleTestBaseV2):

    def setUp(self):

    def tearDown(self):

    def fake_load(self, service_name):

    def test_services_list(self):

    def test_service_enable(self):

    def test_service_disable(self):

    def test_service_detail(self):

    def test_service_disable_log_reason(self):

class ServicesXmlTest(ServicesJsonTest):

class ExtendedServicesJsonTest(ApiSampleTestBaseV2):

class ExtendedServicesXmlTest(ExtendedServicesJsonTest):

class ExtendedServicesDeleteJsonTest(ApiSampleTestBaseV2):

    def setUp(self):

    def tearDown(self):

    def test_service_detail(self, *mocks):

    def test_service_delete(self, *mocks):

class ExtendedServicesDeleteXmlTest(ExtendedServicesDeleteJsonTest):

class SimpleTenantUsageSampleJsonTest(ServersSampleBase):

    def setUp(self):

    def tearDown(self):

    def test_get_tenants_usage(self):

    def test_get_tenant_usage_details(self):

class SimpleTenantUsageSampleXmlTest(SimpleTenantUsageSampleJsonTest):

class ServerDiagnosticsSamplesJsonTest(ServersSampleBase):

    def test_server_diagnostics_get(self):

class ServerDiagnosticsSamplesXmlTest(ServerDiagnosticsSamplesJsonTest):

class AvailabilityZoneJsonTest(ServersSampleBase):

    def test_create_availability_zone(self):

class AvailabilityZoneXmlTest(AvailabilityZoneJsonTest):

class AdminActionsSamplesJsonTest(ServersSampleBase):

    def setUp(self):

    def test_post_pause(self):

    def test_post_unpause(self):

    def test_post_suspend(self):

    def test_post_resume(self):

    def test_post_migrate(self):

    def test_post_reset_network(self):

    def test_post_inject_network_info(self):

    def test_post_lock_server(self):

    def test_post_unlock_server(self):

    def test_post_backup_server(self):

        def image_details(self, context, **kwargs):

    def test_post_live_migrate_server(self):

        def fake_live_migrate(_self, context, instance, scheduler_hint, block_migration, disk_over_commit):

        def fake_get_compute(context, host):

    def test_post_reset_state(self):

class AdminActionsSamplesXmlTest(AdminActionsSamplesJsonTest):

class ConsolesSampleJsonTests(ServersSampleBase):

    def setUp(self):

    def test_get_vnc_console(self):

    def test_get_spice_console(self):

    def test_get_rdp_console(self):

class ConsolesSampleXmlTests(ConsolesSampleJsonTests):

class ConsoleAuthTokensSampleJsonTests(ServersSampleBase):

    def _get_console_url(self, data):

    def _get_console_token(self, uuid):

    def test_get_console_connect_info(self):

class ConsoleAuthTokensSampleXmlTests(ConsoleAuthTokensSampleJsonTests):

    def _get_console_url(self, data):

class DeferredDeleteSampleJsonTests(ServersSampleBase):

    def setUp(self):

    def test_restore(self):

    def test_force_delete(self):

class DeferredDeleteSampleXmlTests(DeferredDeleteSampleJsonTests):

class QuotasSampleJsonTests(ApiSampleTestBaseV2):

    def test_show_quotas(self):

    def test_show_quotas_defaults(self):

    def test_update_quotas(self):

class QuotasSampleXmlTests(QuotasSampleJsonTests):

class ExtendedQuotasSampleJsonTests(ApiSampleTestBaseV2):

    def test_delete_quotas(self):

    def test_update_quotas(self):

class ExtendedQuotasSampleXmlTests(ExtendedQuotasSampleJsonTests):

class UserQuotasSampleJsonTests(ApiSampleTestBaseV2):

    def fake_load(self, *args):

    def test_show_quotas_for_user(self):

    def test_delete_quotas_for_user(self):

    def test_update_quotas_for_user(self):

class UserQuotasSampleXmlTests(UserQuotasSampleJsonTests):

class ExtendedIpsSampleJsonTests(ServersSampleBase):

    def test_show(self):

    def test_detail(self):

class ExtendedIpsSampleXmlTests(ExtendedIpsSampleJsonTests):

class ExtendedIpsMacSampleJsonTests(ServersSampleBase):

    def test_show(self):

    def test_detail(self):

class ExtendedIpsMacSampleXmlTests(ExtendedIpsMacSampleJsonTests):

class ExtendedStatusSampleJsonTests(ServersSampleBase):

    def test_show(self):

    def test_detail(self):

class ExtendedStatusSampleXmlTests(ExtendedStatusSampleJsonTests):

class ExtendedVolumesSampleJsonTests(ServersSampleBase):

    def test_show(self):

    def test_detail(self):

class ExtendedVolumesSampleXmlTests(ExtendedVolumesSampleJsonTests):

class ServerUsageSampleJsonTests(ServersSampleBase):

    def test_show(self):

    def test_detail(self):

class ServerUsageSampleXmlTests(ServerUsageSampleJsonTests):

class ExtendedVIFNetSampleJsonTests(ServersSampleBase):

    def _get_flags(self):

    def test_vifs_list(self):

class ExtendedVIFNetSampleXmlTests(ExtendedIpsSampleJsonTests):

class FlavorManageSampleJsonTests(ApiSampleTestBaseV2):

    def _create_flavor(self):

    def test_create_flavor(self):

    def test_delete_flavor(self):

class FlavorManageSampleXmlTests(FlavorManageSampleJsonTests):

class ServerPasswordSampleJsonTests(ServersSampleBase):

    def test_get_password(self):

        def fake_ext_password(*args, **kwargs):

    def test_reset_password(self):

class ServerPasswordSampleXmlTests(ServerPasswordSampleJsonTests):

class DiskConfigJsonTest(ServersSampleBase):

    def test_list_servers_detail(self):

    def test_get_server(self):

    def test_update_server(self):

    def test_resize_server(self):

    def test_rebuild_server(self):

    def test_get_image(self):

    def test_list_images(self):

class DiskConfigXmlTest(DiskConfigJsonTest):

class OsNetworksJsonTests(ApiSampleTestBaseV2):

    def setUp(self):

        def fake(*args, **kwargs):

    def test_list_networks(self):

    def test_create_network(self):

    def test_delete_network(self):

class OsNetworksXmlTests(OsNetworksJsonTests):

    def test_delete_network(self):

class NetworksJsonTests(ApiSampleTestBaseV2):

    def setUp(self):

    def test_network_list(self):

    def test_network_disassociate(self):

    def test_network_show(self):

    def test_network_create(self):

    def test_network_add(self):

class NetworksXmlTests(NetworksJsonTests):

class NetworksAssociateJsonTests(ApiSampleTestBaseV2):

    def _get_flags(self):

    def setUp(self):

        def fake_associate(self, context, network_id, host=NetworksAssociateJsonTests._sentinel, project=NetworksAssociateJsonTests._sentinel):

    def test_disassociate(self):

    def test_disassociate_host(self):

    def test_disassociate_project(self):

    def test_associate_host(self):

class NetworksAssociateXmlTests(NetworksAssociateJsonTests):

class FlavorDisabledSampleJsonTests(ApiSampleTestBaseV2):

    def test_show_flavor(self):

    def test_detail_flavor(self):

class FlavorDisabledSampleXmlTests(FlavorDisabledSampleJsonTests):

class CellsSampleJsonTest(ApiSampleTestBaseV2):

    def setUp(self):

    def _stub_cells(self, num_cells=5):

        def _fake_cell_get_all(context):

        def _fake_cell_get(inst, context, cell_name):

    def test_cells_empty_list(self):

    def test_cells_list(self):

    def test_cells_get(self):

class CellsSampleXmlTest(CellsSampleJsonTest):

class CellsCapacitySampleJsonTest(ApiSampleTestBaseV2):

    def setUp(self):

    def test_get_cell_capacity(self):

    def test_get_all_cells_capacity(self):

    def _mock_cell_capacity(self):

class CellsCapacitySampleXmlTest(CellsCapacitySampleJsonTest):

class BareMetalNodesJsonTest(ApiSampleTestBaseV2, bm_db_base.BMDBTestCase):

    def _get_subs(self):

    def _create_node(self):

    def _create_node_with_address(self):

    def test_create_node(self):

    def test_create_node_with_address(self):

    def test_list_nodes(self):

    def test_show_node(self):

    def test_delete_node(self):

    def _add_interface(self, node_id):

    def test_add_interface(self):

    def test_remove_interface(self):

class BareMetalNodesXmlTest(BareMetalNodesJsonTest):

class BareMetalExtStatusJsonTest(BareMetalNodesJsonTest):

    def _get_flags(self):

    def _get_subs(self):

class BareMetalExtStatusXmlTest(BareMetalExtStatusJsonTest):

class BlockDeviceMappingV2BootJsonTest(ServersSampleBase):

    def _get_flags(self):

    def test_servers_post_with_bdm_v2(self):

class BlockDeviceMappingV2BootXmlTest(BlockDeviceMappingV2BootJsonTest):

class FloatingIPPoolsSampleJsonTests(ApiSampleTestBaseV2):

    def test_list_floatingippools(self):

        def fake_get_floating_ip_pools(self, context):

class FloatingIPPoolsSampleXmlTests(FloatingIPPoolsSampleJsonTests):

class MultinicSampleJsonTest(ServersSampleBase):

    def _disable_instance_dns_manager(self):

    def setUp(self):

    def _add_fixed_ip(self):

    def test_add_fixed_ip(self):

    def test_remove_fixed_ip(self):

class MultinicSampleXmlTest(MultinicSampleJsonTest):

class InstanceUsageAuditLogJsonTest(ApiSampleTestBaseV2):

    def test_show_instance_usage_audit_log(self):

    def test_index_instance_usage_audit_log(self):

class InstanceUsageAuditLogXmlTest(InstanceUsageAuditLogJsonTest):

class FlavorExtraSpecsSampleJsonTests(ApiSampleTestBaseV2):

    def _flavor_extra_specs_create(self):

    def test_flavor_extra_specs_get(self):

    def test_flavor_extra_specs_list(self):

    def test_flavor_extra_specs_create(self):

    def test_flavor_extra_specs_update(self):

    def test_flavor_extra_specs_delete(self):

class FlavorExtraSpecsSampleXmlTests(FlavorExtraSpecsSampleJsonTests):

class FpingSampleJsonTests(ServersSampleBase):

    def setUp(self):

        def fake_check_fping(self):

    def test_get_fping(self):

    def test_get_fping_details(self):

class FpingSampleXmlTests(FpingSampleJsonTests):

class ExtendedAvailabilityZoneJsonTests(ServersSampleBase):

    def test_show(self):

    def test_detail(self):

class ExtendedAvailabilityZoneXmlTests(ExtendedAvailabilityZoneJsonTests):

class EvacuateJsonTest(ServersSampleBase):

    def test_server_evacuate(self):

        def fake_service_is_up(self, service):

        def fake_service_get_by_compute_host(self, context, host):

        def fake_check_instance_exists(self, context, instance):

class EvacuateXmlTest(EvacuateJsonTest):

class FloatingIpDNSJsonTest(ApiSampleTestBaseV2):

    def _create_or_update(self):

    def _create_or_update_entry(self):

    def test_floating_ip_dns_list(self):

    def test_floating_ip_dns_create_or_update(self):

    def test_floating_ip_dns_delete(self):

    def test_floating_ip_dns_create_or_update_entry(self):

    def test_floating_ip_dns_entry_get(self):

    def test_floating_ip_dns_entry_delete(self):

    def test_floating_ip_dns_entry_list(self):

class FloatingIpDNSXmlTest(FloatingIpDNSJsonTest):

class InstanceActionsSampleJsonTest(ApiSampleTestBaseV2):

    def setUp(self):

        def fake_instance_action_get_by_request_id(context, uuid, request_id):

        def fake_instance_actions_get(context, uuid):

        def fake_instance_action_events_get(context, action_id):

        def fake_instance_get_by_uuid(context, instance_id):

        def fake_get(self, context, instance_uuid):

    def test_instance_action_get(self):

    def test_instance_actions_list(self):

class InstanceActionsSampleXmlTest(InstanceActionsSampleJsonTest):

class ImageSizeSampleJsonTests(ApiSampleTestBaseV2):

    def test_show(self):

    def test_detail(self):

class ImageSizeSampleXmlTests(ImageSizeSampleJsonTests):

class ConfigDriveSampleJsonTest(ServersSampleBase):

    def setUp(self):

    def test_config_drive_show(self):

    def test_config_drive_detail(self):

class ConfigDriveSampleXmlTest(ConfigDriveSampleJsonTest):

class FlavorAccessSampleJsonTests(ApiSampleTestBaseV2):

    def _get_flags(self):

    def _add_tenant(self):

    def _create_flavor(self):

    def test_flavor_access_create(self):

    def test_flavor_access_detail(self):

    def test_flavor_access_list(self):

    def test_flavor_access_show(self):

    def test_flavor_access_add_tenant(self):

    def test_flavor_access_remove_tenant(self):

class FlavorAccessSampleXmlTests(FlavorAccessSampleJsonTests):

class HypervisorsSampleJsonTests(ApiSampleTestBaseV2):

    def test_hypervisors_list(self):

    def test_hypervisors_search(self):

    def test_hypervisors_servers(self):

    def test_hypervisors_show(self):

    def test_hypervisors_statistics(self):

    def test_hypervisors_uptime(self):

        def fake_get_host_uptime(self, context, hyp):

class HypervisorsSampleXmlTests(HypervisorsSampleJsonTests):

class ExtendedHypervisorsJsonTest(ApiSampleTestBaseV2):

    def test_hypervisors_show_with_ip(self):

class ExtendedHypervisorsXmlTest(ExtendedHypervisorsJsonTest):

class HypervisorsCellsSampleJsonTests(ApiSampleTestBaseV2):

    def setUp(self):

    def test_hypervisor_uptime(self):

        def fake_get_host_uptime(self, context, hyp):

        def fake_compute_node_get(self, context, hyp):

class HypervisorsCellsSampleXmlTests(HypervisorsCellsSampleJsonTests):

class AttachInterfacesSampleJsonTest(ServersSampleBase):

    def setUp(self):

        def fake_list_ports(self, *args, **kwargs):

        def fake_show_port(self, context, port_id=None):

        def fake_attach_interface(self, context, instance, network_id, port_id, requested_ip='192.168.1.3'):

        def fake_detach_interface(self, context, instance, port_id):

    def generalize_subs(self, subs, vanilla_regexes):

    def test_list_interfaces(self):

    def _stub_show_for_instance(self, instance_uuid, port_id):

    def test_show_interfaces(self):

    def test_create_interfaces(self, instance_uuid=None):

    def test_delete_interfaces(self):

class AttachInterfacesSampleXmlTest(AttachInterfacesSampleJsonTest):

class SnapshotsSampleJsonTests(ApiSampleTestBaseV2):

    def setUp(self):

    def _create_snapshot(self):

    def test_snapshots_create(self):

    def test_snapshots_delete(self):

    def test_snapshots_detail(self):

    def test_snapshots_list(self):

    def test_snapshots_show(self):

class SnapshotsSampleXmlTests(SnapshotsSampleJsonTests):

class AssistedVolumeSnapshotsJsonTest(ApiSampleTestBaseV2):

    def _create_assisted_snapshot(self, subs):

    def test_snapshots_create_assisted(self):

    def test_snapshots_delete_assisted(self):

class AssistedVolumeSnapshotsXmlTest(AssistedVolumeSnapshotsJsonTest):

class VolumeAttachmentsSampleBase(ServersSampleBase):

    def _stub_db_bdms_get_all_by_instance(self, server_id):

        def fake_bdms_get_all_by_instance(context, instance_uuid, use_slave=False):

    def _stub_compute_api_get(self):

        def fake_compute_api_get(self, context, instance_id, want_objects=False):

class VolumeAttachmentsSampleJsonTest(VolumeAttachmentsSampleBase):

    def test_attach_volume_to_server(self):

    def test_list_volume_attachments(self):

    def test_volume_attachment_detail(self):

    def test_volume_attachment_delete(self):

class VolumeAttachmentsSampleXmlTest(VolumeAttachmentsSampleJsonTest):

class VolumeAttachUpdateSampleJsonTest(VolumeAttachmentsSampleBase):

    def test_volume_attachment_update(self):

class VolumeAttachUpdateSampleXmlTest(VolumeAttachUpdateSampleJsonTest):

class VolumesSampleJsonTest(ServersSampleBase):

    def _get_volume_id(self):

    def _stub_volume(self, id, displayname="Volume Name", displaydesc="Volume Description", size=100):

    def _stub_volume_get(self, context, volume_id):

    def _stub_volume_delete(self, context, *args, **param):

    def _stub_volume_get_all(self, context, search_opts=None):

    def _stub_volume_create(self, context, size, name, description, snapshot, **param):

    def setUp(self):

    def _post_volume(self):

    def test_volumes_show(self):

    def test_volumes_index(self):

    def test_volumes_detail(self):

    def test_volumes_create(self):

    def test_volumes_delete(self):

class VolumesSampleXmlTest(VolumesSampleJsonTest):

class MigrationsSamplesJsonTest(ApiSampleTestBaseV2):

    def _stub_migrations(self, context, filters):

    def setUp(self):

    def test_get_migrations(self):

class MigrationsSamplesXmlTest(MigrationsSamplesJsonTest):

class PreserveEphemeralOnRebuildJsonTest(ServersSampleBase):

    def _test_server_action(self, uuid, action, subs={}, resp_tpl=None, code=202):

    def test_rebuild_server_preserve_ephemeral_false(self):

    def test_rebuild_server_preserve_ephemeral_true(self):

        def fake_rebuild(self_, context, instance, image_href, admin_password, **kwargs):

class PreserveEphemeralOnRebuildXmlTest(PreserveEphemeralOnRebuildJsonTest):

class ServerExternalEventsJsonTest(ServersSampleBase):

    def test_create_event(self):

class ServerExternalEventsXmlTest(ServerExternalEventsJsonTest):

class ServerGroupsSampleJsonTest(ServersSampleBase):

    def _get_create_subs(self):

    def _post_server_group(self):

    def _create_server_group(self):

    def test_server_groups_post(self):

    def test_server_groups_list(self):

    def test_server_groups_get(self):

    def test_server_groups_delete(self):

class ServerGroupsSampleXmlTest(ServerGroupsSampleJsonTest):

\OpenStack\nova-2014.1\nova\tests\integrated\test_extensions.py

class ExtensionsTest(integrated_helpers._IntegratedTestBase):

    def _get_flags(self):

    def test_get_foxnsocks(self):

\OpenStack\nova-2014.1\nova\tests\integrated\test_login.py

class LoginTest(integrated_helpers._IntegratedTestBase):

    def test_login(self):

class LoginTestV3(client.TestOpenStackClientV3Mixin, LoginTest):

\OpenStack\nova-2014.1\nova\tests\integrated\test_multiprocess_api.py

class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase):

    def _start_api_service(self):

    def _get_flags(self):

    def _spawn(self):

    def _wait(self, cond, timeout):

    def tearDown(self):

    def _reap_test(self):

    def _get_workers(self):

    def wait_on_process_until_end(self, worker_pid):

    def test_killed_worker_recover(self):

    def _terminate_with_signal(self, sig):

    def test_terminate_sigkill(self):

    def test_terminate_sigterm(self):

class MultiprocessWSGITestV3(client.TestOpenStackClientV3Mixin, MultiprocessWSGITest):

\OpenStack\nova-2014.1\nova\tests\integrated\test_servers.py

class ServersTest(integrated_helpers._IntegratedTestBase):

    def setUp(self):

    def _wait_for_state_change(self, server, from_status):

    def _restart_compute_service(self, *args, **kwargs):

    def test_get_servers(self):

    def test_create_server_with_error(self):

        def throw_error(*_):

    def test_create_and_delete_server(self):

    def _force_reclaim(self):

    def test_deferred_delete(self):

    def test_deferred_delete_restore(self):

    def test_deferred_delete_force(self):

    def _wait_for_deletion(self, server_id):

    def _delete_server(self, server_id):

    def test_create_server_with_metadata(self):

    def test_create_and_rebuild_server(self):

    def _get_access_ips_params(self):

    def _verify_access_ips(self, server):

    def test_rename_server(self):

    def test_create_multiple_servers(self):

    def test_create_server_with_injected_files(self):

class ServersTestV3(client.TestOpenStackClientV3Mixin, ServersTest):

    def _get_access_ips_params(self):

    def _verify_access_ips(self, server):

\OpenStack\nova-2014.1\nova\tests\integrated\test_xml.py

class XmlTests(integrated_helpers._IntegratedTestBase):

    def test_namespace_limits(self):

    def test_namespace_servers(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\api_sample_base.py

class ApiSampleTestBaseV3(api_samples_test_base.ApiSampleTestBase):

    def setUp(self):

    def _get_sample_path(cls, name, dirname, suffix=''):

    def _get_sample(cls, name):

    def _get_template(cls, name):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_access_ips.py

class AccessIPsSampleJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def _servers_post(self, subs):

    def test_servers_post(self):

    def test_servers_get(self):

    def test_servers_details(self):

    def test_servers_rebuild(self):

    def test_servers_update(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_admin_actions.py

class AdminActionsSamplesJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def test_post_reset_network(self):

    def test_post_inject_network_info(self):

    def test_post_reset_state(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_admin_password.py

class AdminPasswordJsonTest(test_servers.ServersSampleBase):

    def test_server_password(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_agents.py

class AgentsJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def setUp(self):

        def fake_agent_build_create(context, values):

        def fake_agent_build_get_all(context, hypervisor):

        def fake_agent_build_update(context, agent_build_id, values):

        def fake_agent_build_destroy(context, agent_update_id):

    def test_agent_create(self):

    def test_agent_list(self):

    def test_agent_update(self):

    def test_agent_delete(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_aggregates.py

class AggregatesSampleJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def test_aggregate_create(self):

    def test_list_aggregates(self):

    def test_aggregate_get(self):

    def test_add_metadata(self):

    def test_add_host(self):

    def test_remove_host(self):

    def test_update_aggregate(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_attach_interfaces.py

class AttachInterfacesSampleJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

        def fake_list_ports(self, *args, **kwargs):

        def fake_show_port(self, context, port_id=None):

        def fake_attach_interface(self, context, instance, network_id, port_id, requested_ip='192.168.1.3'):

        def fake_detach_interface(self, context, instance, port_id):

    def generalize_subs(self, subs, vanilla_regexes):

    def test_list_interfaces(self):

    def _stub_show_for_instance(self, instance_uuid, port_id):

    def test_show_interfaces(self):

    def test_create_interfaces(self, instance_uuid=None):

    def test_delete_interfaces(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_availability_zone.py

class AvailabilityZoneJsonTest(test_servers.ServersSampleBase):

    def _setup_services(self):

    def test_availability_zone_list(self):

    def test_availability_zone_detail(self):

    def test_availability_zone_post(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_cells.py

class CellsSampleJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def setUp(self):

    def _stub_cells(self, num_cells=5):

        def _fake_cell_get_all(context):

        def _fake_cell_get(inst, context, cell_name):

    def test_cells_empty_list(self):

    def test_cells_list(self):

    def test_cells_get(self):

    def test_get_cell_capacity(self):

    def test_get_all_cells_capacity(self):

    def _mock_cell_capacity(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_certificates.py

class CertificatesSamplesJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def test_create_certificates(self):

    def test_get_root_certificate(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_config_drive.py

class ConfigDriveSampleJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def test_config_drive_show(self):

    def test_config_drive_detail(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_consoles.py

class ConsolesSamplesJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def _create_consoles(self, server_uuid):

    def test_create_consoles(self):

    def test_list_consoles(self):

    def test_console_get(self):

    def test_console_delete(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_console_auth_tokens.py

class ConsoleAuthTokensSampleJsonTests(test_servers.ServersSampleBase):

    def _get_console_url(self, data):

    def _get_console_token(self, uuid):

    def test_get_console_connect_info(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_console_output.py

class ConsoleOutputSampleJsonTest(test_servers.ServersSampleBase):

    def test_get_console_output(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_create_backup.py

class CreateBackupSamplesJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def test_post_backup_server(self, mock_method):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_deferred_delete.py

class DeferredDeleteSampleJsonTests(test_servers.ServersSampleBase):

    def setUp(self):

    def test_restore(self):

    def test_force_delete(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_evacuate.py

class EvacuateJsonTest(test_servers.ServersSampleBase):

    def test_server_evacuate(self):

        def fake_service_is_up(self, service):

        def fake_service_get_by_compute_host(self, context, host):

        def fake_check_instance_exists(self, context, instance):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_extended_availability_zone.py

class ExtendedAvailabilityZoneJsonTests(test_servers.ServersSampleBase):

    def test_show(self):

    def test_detail(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_extended_server_attributes.py

class ExtendedServerAttributesJsonTest(test_servers.ServersSampleBase):

    def test_show(self):

    def test_detail(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_extended_status.py

class ExtendedStatusSampleJsonTests(test_servers.ServersSampleBase):

    def test_show(self):

    def test_detail(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_extended_volumes.py

class ExtendedVolumesSampleJsonTests(test_servers.ServersSampleBase):

    def _stub_compute_api_get_instance_bdms(self, server_id):

        def fake_bdms_get_all_by_instance(context, instance_uuid, use_slave=False):

    def _stub_compute_api_get(self):

        def fake_compute_api_get(self, context, instance_id, **kwargs):

    def test_show(self):

    def test_detail(self):

    def test_attach_volume(self):

    def test_detach_volume(self):

    def test_swap_volume(self):

        def stub_volume_get(self, context, volume_id):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_extension_info.py

class ExtensionInfoSamplesJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def test_list_extensions(self):

    def test_get_extensions(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_flavors.py

class FlavorsSampleJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def test_flavors_get(self):

    def test_flavors_list(self):

    def test_flavors_detail(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_flavor_access.py

class FlavorAccessSampleJsonTests(api_sample_base.ApiSampleTestBaseV3):

    def _add_tenant(self):

    def _create_flavor(self):

    def test_flavor_access_create(self):

    def test_flavor_access_detail(self):

    def test_flavor_access_list(self):

    def test_flavor_access_show(self):

    def test_flavor_access_add_tenant(self):

    def test_flavor_access_remove_tenant(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_flavor_extraspecs.py

class FlavorExtraSpecsSampleJsonTests(api_sample_base.ApiSampleTestBaseV3):

    def _flavor_extra_specs_create(self):

    def test_flavor_extra_specs_get(self):

    def test_flavor_extra_specs_list(self):

    def test_flavor_extra_specs_create(self):

    def test_flavor_extra_specs_update(self):

    def test_flavor_extra_specs_delete(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_flavor_manage.py

class FlavorManageSampleJsonTests(api_sample_base.ApiSampleTestBaseV3):

    def _create_flavor(self):

    def test_create_flavor(self):

    def test_delete_flavor(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_flavor_rxtx.py

class FlavorRxtxJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def test_flavor_rxtx_get(self):

    def test_flavors_rxtx_detail(self):

    def test_flavors_rxtx_create(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_hide_server_addresses.py

class ServersSampleHideAddressesJsonTest(test_servers.ServersSampleJsonTest):

    def setUp(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_hosts.py

class HostsSampleJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def test_host_startup(self):

    def test_host_reboot(self):

    def test_host_shutdown(self):

    def test_host_maintenance(self):

    def test_host_get(self):

    def test_hosts_list(self):

    def test_hosts_list_compute_service(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_hypervisors.py

class HypervisorsSampleJsonTests(api_sample_base.ApiSampleTestBaseV3):

    def test_hypervisors_list(self):

    def test_hypervisors_search(self):

    def test_hypervisors_servers(self):

    def test_hypervisors_detail(self):

    def test_hypervisors_show(self):

    def test_hypervisors_statistics(self):

    def test_hypervisors_uptime(self):

        def fake_get_host_uptime(self, context, hyp):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_instance_actions.py

class InstanceActionsSampleJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def setUp(self):

        def fake_instance_action_get_by_request_id(context, uuid, request_id):

        def fake_instance_actions_get(context, uuid):

        def fake_instance_action_events_get(context, action_id):

        def fake_instance_get_by_uuid(context, instance_id):

        def fake_get(self, context, instance_uuid, **kwargs):

    def test_instance_action_get(self):

    def test_instance_actions_list(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_keypairs.py

class KeyPairsSampleJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def generalize_subs(self, subs, vanilla_regexes):

    def test_keypairs_post(self, public_key=None):

    def test_keypairs_import_key_post(self):

    def test_keypairs_get(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_lock_server.py

class LockServerSamplesJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def test_post_lock_server(self):

    def test_post_unlock_server(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_migrate_server.py

class MigrateServerSamplesJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def test_post_migrate(self):

    def test_post_live_migrate_server(self):

        def fake_live_migrate(_self, context, instance, scheduler_hint, block_migration, disk_over_commit):

        def fake_get_compute(context, host):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_migrations.py

class MigrationsSamplesJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def _stub_migrations(self, context, filters):

    def setUp(self):

    def test_get_migrations(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_multinic.py

class MultinicSampleJsonTest(test_servers.ServersSampleBase):

    def _disable_instance_dns_manager(self):

    def setUp(self):

    def _add_fixed_ip(self):

    def test_add_fixed_ip(self):

    def test_remove_fixed_ip(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_pause_server.py

OpenStack Index

Previous

Next