tempest-lib/tempest_lib/tests/services/compute
Takashi NATSUME c9c3b55333 Add update attached volume function to servers_client
os-volume_attachments API for update:
PUT /v2.1/{tenant_id}/servers/{server_id}/os-volume_attachments/{attachment_id}

tenant_id: The project ID (tenant ID) that the target server belongs to
server_id: The server ID to update the volume attachment
attachment_id: The volume attachment ID to update

Request body sample:
{
    "volumeAttachment": {
        "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f805"
    }
}

volumeId: The volume ID to attach instead of the volume
          that has already been attached

This API does not return a response body.

Reference:
- Request body sample
  https://github.com/openstack/nova/blob/master/doc/api_samples/os-volumes/update-volume-req.json

- Fuctional test
  test_volume_attachment_update method in
  VolumeAttachmentsSample class
  https://github.com/openstack/nova/blob/master/nova/tests/functional/api_sample_tests/test_volumes.py

Change-Id: Ic0258e5688be6ede3316ab4310e9ca6ac0f51659
Implements: blueprint add-nova-swap-volume-tests
2016-02-05 14:23:03 +09:00
..
__init__.py Migrated agents_client.py, test_agents_client.py, agents.py from tempest 2015-09-16 05:23:21 +09:00
base.py Support service client unit tests for headers also. 2015-10-13 15:07:55 +09:00
test_agents_client.py Add missing schema for update agent API 2015-09-18 10:23:02 +09:00
test_aggregates_client.py Enhance unit test coverage: aggregates_client 2015-10-02 08:38:20 +00:00
test_availability_zone_client.py Migrated availability_zone_client.py from tempest 2015-09-17 06:10:10 +09:00
test_baremetal_nodes_client.py Migrated baremetal_nodes_client.py from tempest 2015-09-17 11:29:49 +09:00
test_certificates_client.py Migrated certificates_client.py from tempest 2015-09-28 07:47:47 +00:00
test_extensions_client.py Migrated extensions_client.py from tempest 2015-10-02 07:40:53 +00:00
test_fixedIPs_client.py Fix fixed_ip schema and service client 2015-11-24 11:49:12 +09:00
test_flavors_client.py Migrated flavors_client.py from tempest 2015-10-02 07:45:12 +00:00
test_floating_ip_pools_client.py Migrated floating_ip_pools_client.py from tempest 2015-09-28 07:50:58 +00:00
test_floating_ips_bulk_client.py Migrated floating_ips_bulk_client.py 2015-09-29 13:04:20 -04:00
test_floating_ips_client.py Migrated floating_ips_client.py from tempest 2015-12-08 01:20:47 +00:00
test_hosts_client.py Migrated hosts_client.py from tempest 2015-10-02 08:11:42 +05:30
test_hypervisor_client.py Migrated hypervisor_client.py 2015-09-25 15:33:04 -04:00
test_images_client.py Support service client unit tests for headers also. 2015-10-13 15:07:55 +09:00
test_instance_usage_audit_log_client.py Migrated instance_usage_audit_log_client.py from tempest 2015-10-06 08:44:56 -04:00
test_interfaces_client.py Migrated interfaces_client.py from tempest 2015-10-14 09:58:39 +05:30
test_keypairs_client.py Migrated keypairs_client.py from tempest 2015-09-28 07:46:36 +00:00
test_limits_client.py Migrated limits_client.py from tempest 2015-09-28 09:11:38 +00:00
test_migrations_client.py Migrated migrations_client.py from tempest 2015-09-28 09:10:27 +00:00
test_networks_client.py Migrated networks_client.py, test_networks_client.py from tempest 2015-10-06 08:20:23 +02:00
test_quota_classes_client.py Migrated quota_classes_client.py from tempest 2015-10-09 09:08:39 -04:00
test_quotas_client.py Merge "update unit test about quotas_client" 2015-11-04 12:09:16 +00:00
test_security_group_default_rules_client.py Migrated security_group_default_rules_client.py 2015-09-29 17:01:37 -04:00
test_security_group_rules_client.py Migrated security_group_rules_client.py 2015-10-09 18:26:15 +00:00
test_security_groups_client.py Migrated security_groups_client.py 2015-09-26 13:45:21 -04:00
test_server_groups_client.py Rename get_server_group to show_server_group 2015-11-19 11:40:52 +00:00
test_servers_client.py Add update attached volume function to servers_client 2016-02-05 14:23:03 +09:00
test_services_client.py Migrated services_client.py from tempest 2015-10-14 06:24:56 +00:00
test_snapshots_client.py Migrated snapshots_client.py from tempest 2015-10-14 02:35:09 +00:00
test_tenant_networks_client.py Migrated tenant_networks_client.py from tempest 2015-09-28 08:12:27 +00:00
test_tenant_usages_client.py Migrated tenant_usages_client.py from tempest 2015-09-28 07:45:01 +00:00
test_versions_client.py Added Test Cases for VersionsClient 2015-10-14 10:25:49 +05:30
test_volumes_client.py Migrated volumes_client.py from tempest 2015-10-14 04:10:18 +00:00