compute.servers package¶
Submodules¶
compute.servers.test_attach_interfaces module¶
- class AttachInterfacesTestJSON(*args, **kwargs)[source]¶
Bases:
AttachInterfacesTestBase
Test attaching interfaces
- test_create_list_show_delete_interfaces_by_fixed_ip()[source]¶
Test idempotent id: d290c06c-f5b3-11e7-8ec8-002293781009
Test create/list/show/delete interfaces by fixed ip
- test_create_list_show_delete_interfaces_by_network_port()[source]¶
Test idempotent id: 73fe8f02-590d-4bf1-b184-e9ca81065051
Test create/list/show/delete interfaces by network port
- test_reassign_port_between_servers()[source]¶
Test idempotent id: 2f3a0127-95c7-4977-92d2-bc5aec602fb4
Tests reassigning port between servers
Create two servers in Nova.
Create a port in Neutron.
Attach the port to the first server.
Detach the port from the first server.
Attach the port to the second server.
Detach the port from the second server.
- class AttachInterfacesUnderV243Test(*args, **kwargs)[source]¶
Bases:
AttachInterfacesTestBase
Test attaching interfaces with compute microversion less than 2.44
- class AttachInterfacesV270Test(*args, **kwargs)[source]¶
Bases:
AttachInterfacesTestBase
Test interface API with microversion greater than 2.69
compute.servers.test_availability_zone module¶
compute.servers.test_create_server module¶
- class ServersTestBootFromVolume(*args, **kwargs)[source]¶
Bases:
ServersTestJSON
Test creating server and verifying the server attributes
This is to create server booted from volume and with disk_config ‘AUTO’
- class ServersTestFqdnHostnames(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test creating server with FQDN hostname and verifying attributes
Starting Wallaby release, Nova sanitizes freeform characters in server hostname with dashes. This test verifies the same.
- class ServersTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test creating server and verifying the server attributes
This is to create server booted from image and with disk_config ‘AUTO’
- test_host_name_is_same_as_server_name()[source]¶
Test idempotent id: ac1ad47f-984b-4441-9274-c9079b7a0666
Verify the instance host name is the same as the server name
- test_list_servers()[source]¶
Test idempotent id: 9a438d88-10c6-4bcd-8b5b-5b6e25e1346f
The created server should be in the list of all servers
- test_list_servers_with_detail()[source]¶
Test idempotent id: 585e934c-448e-43c4-acbf-d06a9b899997
The created server should be in the detailed list of all servers
- class ServersTestManualDisk(*args, **kwargs)[source]¶
Bases:
ServersTestJSON
Test creating server and verifying the server attributes
This is to create server booted from image and with disk_config ‘MANUAL’
- class ServersV294TestFqdnHostnames(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test creating server with FQDN hostname and verifying attributes
Starting Antelope release, Nova allows to set hostname as an FQDN type and allows free form characters in hostname using –hostname parameter with API above 2.94 .
This is to create server with –hostname having FQDN type value having more than 64 characters
compute.servers.test_create_server_multi_nic module¶
- class ServersTestMultiNic(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test multiple networks in servers
- test_verify_duplicate_network_nics()[source]¶
Test idempotent id: 1678d144-ed74-43f8-8e57-ab10dbf9b3c2
Test multiple duplicate networks can be used to create server
Creating server with networks [net1, net2, net1], the server can be created successfully and all three networks are in the server addresses.
compute.servers.test_delete_server module¶
- class DeleteServersTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test deleting servers in various states
- test_delete_active_server()[source]¶
Test idempotent id: 925fdfb4-5b13-47ea-ac8a-c36ae6fddb05
Test deleting a server while it’s VM state is Active
- test_delete_server_while_in_attached_volume()[source]¶
Test idempotent id: d0f3f0d6-d9b6-4a32-8da4-23015dcab23c
Test deleting a server while a volume is attached to it
- test_delete_server_while_in_building_state()[source]¶
Test idempotent id: 9e6e0c87-3352-42f7-9faf-5d6210dbd159
Test deleting a server while it’s VM state is Building
- test_delete_server_while_in_pause_state()[source]¶
Test idempotent id: 943bd6e8-4d7a-4904-be83-7a6cc2d4213b
Test deleting a server while it’s VM state is Pause
- test_delete_server_while_in_shelved_state()[source]¶
Test idempotent id: bb0cb402-09dd-4947-b6e5-5e7e1cfa61ad
Test deleting a server while it’s VM state is Shelved
- test_delete_server_while_in_shutoff_state()[source]¶
Test idempotent id: 546d368c-bb6c-4645-979a-83ed16f3a6be
Test deleting a server while it’s VM state is Shutoff
compute.servers.test_device_tagging module¶
- class TaggedAttachmentsTest(*args, **kwargs)[source]¶
Bases:
DeviceTaggingBase
Test tagged attachments with compute microversion greater than 2.48
- class TaggedBootDevicesTest(*args, **kwargs)[source]¶
Bases:
DeviceTaggingBase
Test tagged boot device with compute microversion equals 2.32
- test_tagged_boot_devices()[source]¶
Test idempotent id: a2e65a6c-66f1-4442-aaa8-498c31778d96
Test tagged boot devices
Create volumes
Create networks
Create subnets
Create ports
Create server, specifying tags for items in networks and block_device_mapping_v2,
Verify tagged devices are in server via metadata service
- class TaggedBootDevicesTest_v242(*args, **kwargs)[source]¶
Bases:
TaggedBootDevicesTest
Test tagged boot devices with compute microversion greater than 2.41
compute.servers.test_disk_config module¶
- class ServerDiskConfigTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test disk config option of server
- test_rebuild_server_with_auto_disk_config()[source]¶
Test idempotent id: 9c9fae77-4feb-402f-8450-bf1c8b609713
A server should be rebuilt using the auto disk config option
- test_rebuild_server_with_manual_disk_config()[source]¶
Test idempotent id: bef56b09-2e8c-4883-a370-4950812f430e
A server should be rebuilt using the manual disk config option
- test_resize_server_from_auto_to_manual()[source]¶
Test idempotent id: 693d16f3-556c-489a-8bac-3d0ca2490bad
A server should be resized from auto to manual disk config
compute.servers.test_instance_actions module¶
- class InstanceActionsTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test instance actions API
compute.servers.test_instance_actions_negative module¶
compute.servers.test_list_server_filters module¶
- class ListServerFiltersTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test listing servers filtered by specified attribute
- test_list_servers_detailed_filter_by_flavor()[source]¶
Test idempotent id: 80c574cc-0925-44ba-8602-299028357dd9
Filter the detailed list of servers by flavor
- test_list_servers_detailed_filter_by_image()[source]¶
Test idempotent id: b3304c3b-97df-46d2-8cd3-e2b6659724e7
“Filter the detailed list of servers by image
- test_list_servers_detailed_filter_by_server_name()[source]¶
Test idempotent id: f9eb2b70-735f-416c-b260-9914ac6181e4
Filter the detailed list of servers by server name
- test_list_servers_detailed_filter_by_server_status()[source]¶
Test idempotent id: de2612ab-b7dd-4044-b0b1-d2539601911f
Filter the detailed list of servers by server status
- test_list_servers_detailed_limit_results()[source]¶
Test idempotent id: 67aec2d0-35fe-4503-9f92-f13272b867ed
Filter the detailed list of servers by limit 1
Verify only the expected number of servers are returned (one server)
- test_list_servers_filter_by_active_status()[source]¶
Test idempotent id: ca78e20e-fddb-4ce6-b7f7-bcbf8605e66e
Filter the list of servers by server active status
- test_list_servers_filter_by_exceed_limit()[source]¶
Test idempotent id: 37791bbd-90c0-4de0-831e-5f38cba9c6b3
Filter the list of servers by exceeded limit
Verify only the expected number of servers are returned (all servers)
- test_list_servers_filter_by_flavor()[source]¶
Test idempotent id: 573637f5-7325-47bb-9144-3476d0416908
Filter the list of servers by flavor
- test_list_servers_filter_by_image()[source]¶
Test idempotent id: 05e8a8e7-9659-459a-989d-92c2f501f4ba
Filter the list of servers by image
- test_list_servers_filter_by_limit()[source]¶
Test idempotent id: 614cdfc1-d557-4bac-915b-3e67b48eee76
Filter the list of servers by limit 1
Verify only the expected number of servers are returned (one server)
- test_list_servers_filter_by_server_name()[source]¶
Test idempotent id: 9b067a7b-7fee-4f6a-b29c-be43fe18fc5a
Filter the list of servers by server name
- test_list_servers_filter_by_shutoff_status()[source]¶
Test idempotent id: 451dbbb2-f330-4a9f-b0e1-5f5d2cb0f34c
Filter the list of servers by server shutoff status
- test_list_servers_filter_by_zero_limit()[source]¶
Test idempotent id: b1495414-2d93-414c-8019-849afe8d319e
Filter the list of servers by limit 0
Verify only the expected number of servers are returned (no server)
- test_list_servers_filtered_by_ip()[source]¶
Test idempotent id: 43a1242e-7b31-48d1-88f2-3f72aa9f2077
Filter the list of servers by server ip address
- test_list_servers_filtered_by_ip_regex()[source]¶
Test idempotent id: a905e287-c35e-42f2-b132-d02b09f3654a
Filter the list of servers by part of server ip address
compute.servers.test_list_servers_negative module¶
- class ListServersNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Negative tests of listing servers
- test_list_servers_by_changes_since_future_date()[source]¶
Test idempotent id: 74745ad8-b346-45b5-b9b8-509d7447fc1f
Test listing servers by a future changes-since date
Return an empty list when a date in the future is passed as changes-since value.
- test_list_servers_by_changes_since_invalid_date()[source]¶
Test idempotent id: 87d12517-e20a-4c9c-97b6-dd1628d6d6c9
Test listing servers by invalid changes-since format should fail
- test_list_servers_by_limits_greater_than_actual_count()[source]¶
Test idempotent id: d47c17fb-eebd-4287-8e95-f20a7e627b18
Test listing servers by limit greater than actual count
Listing servers by limit greater than actual count should return all servers.
- test_list_servers_by_limits_pass_negative_value()[source]¶
Test idempotent id: 62610dd9-4713-4ee0-8beb-fd2c1aa7f950
Test listing servers by negative limit should fail
- test_list_servers_by_limits_pass_string()[source]¶
Test idempotent id: 679bc053-5e70-4514-9800-3dfab1a380a6
Test listing servers by non-integer limit should fail
- test_list_servers_by_non_existing_flavor()[source]¶
Test idempotent id: 5913660b-223b-44d4-a651-a0fbfd44ca75
Test listing servers by non existing flavor returns empty list
- test_list_servers_by_non_existing_image()[source]¶
Test idempotent id: ff01387d-c7ad-47b4-ae9e-64fa214638fe
Test listing servers for a non existing image returns empty list
- test_list_servers_by_non_existing_server_name()[source]¶
Test idempotent id: e2c77c4a-000a-4af3-a0bd-629a328bde7c
Test listing servers for a non existent server name
Listing servers for a non existent server name should return empty list.
- test_list_servers_detail_server_is_deleted()[source]¶
Test idempotent id: 93055106-2d34-46fe-af68-d9ddbf7ee570
Test listing servers detail should not contain deleted server
- test_list_servers_status_non_existing()[source]¶
Test idempotent id: fcdf192d-0f74-4d89-911f-1ec002b822c4
Test listing servers with non existing status
When invalid status is specified, up to microversion 2.37, an empty list is returned, and starting from microversion 2.38, a 400 error is returned in that case.
compute.servers.test_multiple_create module¶
- class MultipleCreateTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test creating multiple servers in one request
compute.servers.test_multiple_create_negative module¶
- class MultipleCreateNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Negative tests of creating multiple servers in one request
- test_max_count_less_than_min_count()[source]¶
Test idempotent id: 476da616-f1ef-4271-a9b1-b9fc87727cdf
Test creating server with max_count < min_count should fail
- test_max_count_less_than_one()[source]¶
Test idempotent id: a6f9c2ab-e060-4b82-b23c-4532cb9390ff
Test creating server with max_count < 1 should fail
- test_max_count_non_integer()[source]¶
Test idempotent id: 9c5698d1-d7af-4c80-b971-9d403135eea2
Test creating server with non-integer max_count should fail
compute.servers.test_novnc module¶
compute.servers.test_server_actions module¶
- class ServerActionsTestJSON(*args, **kwargs)[source]¶
Bases:
ServerActionsBase
- test_change_server_password()[source]¶
Test idempotent id: 6158df09-4b82-4ab3-af6d-29cf36af858d
Test changing server’s password
The server’s password should be set to the provided password and the user can authenticate with the new password.
- test_get_console_output()[source]¶
Test idempotent id: 4b8867e6-fffa-4d54-b1d1-6fdda57be2f3
Test getting console output for a server
Should be able to GET the console output for a given server_id and number of lines.
- test_lock_unlock_server()[source]¶
Test idempotent id: 80a8094c-211e-440a-ab88-9e59d556c7ee
Test locking and unlocking server
Lock the server, and trying to stop it will fail because locked server is not allowed to be stopped by non-admin user. Then unlock the server, now the server can be stopped and started.
- test_pause_unpause_server()[source]¶
Test idempotent id: bd61a9fd-062f-4670-972b-2d6c3e3b9e73
Test pausing and unpausing server
- test_reboot_server_hard()[source]¶
Test idempotent id: 2cb1baf6-ac8d-4429-bf0d-ba8a0ba53e32
Test hard rebooting server
The server should be power cycled.
- test_rebuild_server()[source]¶
Test idempotent id: aaa6cdf3-55a7-461a-add9-1c8596b9a07c
Test rebuilding server
The server should be rebuilt using the provided image and data.
- test_resize_server_confirm()[source]¶
Test idempotent id: 1499262a-9328-4eda-9068-db1ac57498d2
Test resizing server and then confirming
- test_resize_server_revert()[source]¶
Test idempotent id: c03aab19-adb1-44f5-917d-c419577e9e68
Test resizing server and then reverting
The server’s RAM and disk space should return to its original values after a resize is reverted.
- class ServerActionsTestOtherA(*args, **kwargs)[source]¶
Bases:
ServerActionsBase
- test_rebuild_server_in_stop_state()[source]¶
Test idempotent id: 30449a88-5aff-4f9b-9866-6ee9b17f906d
Test rebuilding server in stop state
The server in stop state should be rebuilt using the provided image and remain in SHUTOFF state.
- test_rebuild_server_with_volume_attached()[source]¶
Test idempotent id: b68bd8d6-855d-4212-b59b-2e704044dace
Test rebuilding server with volume attached
The volume should be attached to the instance after rebuild.
- class ServerActionsTestOtherB(*args, **kwargs)[source]¶
Bases:
ServerActionsBase
- test_create_backup()[source]¶
Test idempotent id: b963d4f1-94b3-4c40-9e97-7b583f46e470
Test creating server backup
create server backup1 with rotation=2, there are 1 backup.
create server backup2 with rotation=2, there are 2 backups.
create server backup3, due to the rotation is 2, the first one (backup1) will be deleted, so now there are still 2 backups.
- test_get_console_output_server_id_in_shutoff_status()[source]¶
Test idempotent id: 5b65d4e7-4ecd-437c-83c0-d6b79d927568
Test getting console output for a server in SHUTOFF status
Should be able to GET the console output for a given server_id in SHUTOFF status.
- test_get_console_output_with_unlimited_size()[source]¶
Test idempotent id: 89104062-69d8-4b19-a71b-f47b7af093d7
Test getting server’s console output with unlimited size
The console output lines length should be bigger than the one of test_get_console_output.
- test_get_vnc_console()[source]¶
Test idempotent id: c6bc11bf-592e-4015-9319-1c98dc64daf5
Test getting vnc console from a server
The returned vnc console url should be in valid format.
- test_resize_server_confirm_from_stopped()[source]¶
Test idempotent id: 138b131d-66df-48c9-a171-64f45eb92962
Test resizing a stopped server and then confirming
- test_resize_server_revert_with_volume_attached()[source]¶
Test idempotent id: fbbf075f-a812-4022-bc5c-ccb8047eef12
Test resizing a volume attached server and then reverting
Tests attaching a volume to a server instance and then resizing the instance. Once the instance is resized, revert the resize which should move the instance and volume attachment back to the original compute host.
compute.servers.test_server_addresses module¶
compute.servers.test_server_addresses_negative module¶
- class ServerAddressesNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Negative tests of listing server addresses
compute.servers.test_server_group module¶
- class ServerGroup264TestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
These tests check for the server-group APIs 2.64 microversion.
This tests is only to verify the POST, GET server-groups APIs response schema with 2.64 microversion
- class ServerGroupTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
These tests check for the server-group APIs.
They create/delete server-groups with different policies. policies = affinity/anti-affinity It also adds the tests for list and get details of server-groups
- test_create_delete_multiple_server_groups_with_same_name_policy()[source]¶
Test idempotent id: 154dc5a4-a2fe-44b5-b99e-f15806a4a113
Test Create/Delete the server-groups with same name and policy
- test_create_delete_server_group_with_affinity_policy()[source]¶
Test idempotent id: 5dc57eda-35b7-4af7-9e5f-3c2be3d2d68b
Test Create/Delete the server-group with affinity policy
- test_create_delete_server_group_with_anti_affinity_policy()[source]¶
Test idempotent id: 3645a102-372f-4140-afad-13698d850d23
Test Create/Delete the server-group with anti-affinity policy
- test_create_server_with_scheduler_hint_group()[source]¶
Test idempotent id: ed20d3fb-9d1f-4329-b160-543fbd5d9811
Test creating a server with the scheduler hint ‘group’
compute.servers.test_server_metadata module¶
- class ServerMetadataTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test server metadata
- test_delete_server_metadata_item()[source]¶
Test idempotent id: 127642d6-4c7b-4486-b7cd-07265a378658
Test deleting server metadata item
The metadata value/key pair should be deleted from the server.
- test_get_server_metadata_item()[source]¶
Test idempotent id: 3043c57d-7e0e-49a6-9a96-ad569c265e6a
Test getting specific server metadata item
- test_list_server_metadata()[source]¶
Test idempotent id: 479da087-92b3-4dcf-aeb3-fd293b2d14ce
Test listing server metadata
All metadata key/value pairs for a server should be returned.
- test_set_server_metadata()[source]¶
Test idempotent id: 211021f6-21de-4657-a68f-908878cfe251
Test setting server metadata
The server’s metadata should be replaced with the provided values
- test_set_server_metadata_item()[source]¶
Test idempotent id: 58c02d4f-5c67-40be-8744-d3fa5982eb1c
Test updating specific server metadata item
The metadata item’s value should be updated to the provided value.
compute.servers.test_server_metadata_negative module¶
- class ServerMetadataNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Negative tests of server metadata
- test_create_server_metadata_blank_key()[source]¶
Test idempotent id: 92431555-4d8b-467c-b95b-b17daa5e57ff
Test creating server with blank metadata key should fail
- test_delete_metadata_non_existent_server()[source]¶
Test idempotent id: 6bbd88e1-f8b3-424d-ba10-ae21c45ada8d
Test deleting metadata item from a non existent server
Should not be able to delete metadata item from a non-existent server.
- test_list_server_metadata_non_existent_server()[source]¶
Test idempotent id: f408e78e-3066-4097-9299-3b0182da812e
Test listing metadata for a non existent server should fail
- test_metadata_items_limit()[source]¶
Test idempotent id: d8c0a210-a5c3-4664-be04-69d96746b547
Test set/update server metadata over limit should fail
A 403 Forbidden or 413 Overlimit (old behaviour) exception will be raised while exceeding metadata items limit for project.
- test_server_create_metadata_key_too_long()[source]¶
Test idempotent id: fe114a8f-3a57-4eff-9ee2-4e14628df049
Test creating server with too long metadata key should fail
- test_server_metadata_non_existent_server()[source]¶
Test idempotent id: 4d9cd7a3-2010-4b41-b8fe-3bbf0b169466
Test getting metadata item for a non existent server should fail
- test_set_metadata_invalid_key()[source]¶
Test idempotent id: 0025fbd6-a4ba-4cde-b8c2-96805dcfdabc
Test setting server metadata item with wrong key in body
Raise BadRequest if key in uri does not match the key passed in body.
- test_set_metadata_non_existent_server()[source]¶
Test idempotent id: 0df38c2a-3d4e-4db5-98d8-d4d9fa843a12
Test setting metadata for a non existent server should fail
- test_set_server_metadata_blank_key()[source]¶
Test idempotent id: 96100343-7fa9-40d8-80fa-d29ef588ce1c
Test setting server metadata with blank key should fail
- test_set_server_metadata_missing_metadata()[source]¶
Test idempotent id: 64a91aee-9723-4863-be44-4c9d9f1e7d0e
Test setting server metadata without metadata field should fail
compute.servers.test_server_password module¶
compute.servers.test_server_personality module¶
- class ServerPersonalityTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test servers with injected files
- test_can_create_server_with_max_number_personality_files()[source]¶
Test idempotent id: 52f12ee8-5180-40cc-b417-31572ea3d555
Test creating server with maximum allowed number of injected files
Server should be created successfully if maximum allowed number of files is injected into the server during creation.
- test_create_server_with_personality()[source]¶
Test idempotent id: 3cfe87fd-115b-4a02-b942-7dc36a337fdf
Test creating server with file injection
compute.servers.test_server_rescue module¶
- class ServerBootFromVolumeStableRescueTest(*args, **kwargs)[source]¶
Bases:
BaseServerStableDeviceRescueTest
Test rescuing server specifying type of device for the rescue disk
Test rescuing server specifying type of device for the rescue disk with compute microversion greater than 2.86.
- test_stable_device_rescue_bfv_blank_volume()[source]¶
Test idempotent id: 48f123cb-922a-4065-8db6-b9a9074a556b
Test rescuing server with blank volume as block_device_mapping_v2
Create a server with block_device_mapping_v2 with blank volume, then rescue the server with disk and virtio as the rescue disk.
- test_stable_device_rescue_bfv_image_volume()[source]¶
Test idempotent id: e4636333-c928-40fc-98b7-70a23eef4224
Test rescuing server with blank volume as block_device_mapping_v2
Create a server with block_device_mapping_v2 with image volume, then rescue the server with disk and virtio as the rescue disk.
- class ServerRescueTestJSON(*args, **kwargs)[source]¶
Bases:
ServerRescueTestBase
Test server rescue
- class ServerRescueTestJSONUnderV235(*args, **kwargs)[source]¶
Bases:
ServerRescueTestBase
Test server rescue with compute microversion less than 2.36
- class ServerStableDeviceRescueTest(*args, **kwargs)[source]¶
Bases:
BaseServerStableDeviceRescueTest
Test rescuing server specifying type of device for the rescue disk
- test_stable_device_rescue_disk_scsi()[source]¶
Test idempotent id: 12340157-6306-4745-bdda-cfa019908b48
Test rescuing server with disk and scsi as the rescue disk
- test_stable_device_rescue_disk_usb()[source]¶
Test idempotent id: 647d04cf-ad35-4956-89ab-b05c5c16f30c
Test rescuing server with disk and usb as the rescue disk
- class ServerStableDeviceRescueTestIDE(*args, **kwargs)[source]¶
Bases:
BaseServerStableDeviceRescueTest
Test rescuing server using an IDE device for the rescue disk
compute.servers.test_server_rescue_negative module¶
- class ServerRescueNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Negative tests of server rescue
- test_rescue_non_existent_server()[source]¶
Test idempotent id: 6dfc0a55-3a77-4564-a144-1587b7971dde
Test rescuing a non-existing server should fail
- test_rescue_paused_instance()[source]¶
Test idempotent id: cc3a883f-43c0-4fb6-a9bb-5579d64984ed
Test rescuing a paused server should fail
- test_rescued_vm_attach_volume()[source]¶
Test idempotent id: d0ccac79-0091-4cf4-a1ce-26162d0cc55f
Test attaching volume to a rescued server should fail
- test_rescued_vm_detach_volume()[source]¶
Test idempotent id: f56e465b-fe10-48bf-b75d-646cda3a8bc9
Test detaching volume from a rescued server should fail
compute.servers.test_servers module¶
- class ServerShowV247Test(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test servers API with compute microversion greater than 2.46
- class ServerShowV263Test(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test servers API with compute microversion greater than 2.62
- class ServersListShow296Test(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test compute server with microversion >= than 2.96
This test tests the Server APIs response schema for 2.96 microversion. No specific assert or behaviour verification is needed.
- class ServersTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test servers API
- test_create_server_specify_multibyte_character_name()[source]¶
Test idempotent id: defbaca5-d611-49f5-ae21-56ee25d2db49
Test creating server with multi character name
prefix character is: http://unicode.org/cldr/utility/character.jsp?a=20A1
We use a string with 3 byte utf-8 character due to nova will return 400(Bad Request) if we attempt to send a name which has 4 byte utf-8 character.
- test_create_server_with_admin_password()[source]¶
Test idempotent id: b92d5ec7-b1dd-44a2-87e4-45e888c46ef0
Test creating server with admin password
If an admin password is provided on server creation, the server’s root password should be set to that password.
- test_create_server_with_ipv6_addr_only()[source]¶
Test idempotent id: 38fb1d02-c3c5-41de-91d3-9bc2025a75eb
Test creating server with ipv6 address only(no ipv4 address)
- test_create_specify_keypair()[source]¶
Test idempotent id: f9e15296-d7f9-4e62-b53f-a04e89160833
Test creating server with keypair
- test_create_with_existing_server_name()[source]¶
Test idempotent id: 8fea6be7-065e-47cf-89b8-496e6f96c699
Test creating a server with already existing name is allowed
compute.servers.test_servers_microversions module¶
compute.servers.test_servers_negative module¶
- class ServersNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Negative tests of servers
- test_create_numeric_server_name()[source]¶
Test idempotent id: fd57f159-68d6-4c2a-902b-03070828a87e
Creating a server with numeric server name should fail
- test_create_server_from_non_bootable_volume()[source]¶
Test idempotent id: 74085be3-a370-4ca2-bc51-2d0e10e0f573
Creating a server from a non bootable volume should fail
- test_create_server_invalid_bdm_in_2nd_dict()[source]¶
Test idempotent id: 12146ac1-d7df-4928-ad25-b1f99e5286cd
Creating a server with invalid block_device_mapping_v2 should fail
Create a server with invalid block_device_mapping_v2, an error is returned.
- test_create_server_metadata_exceeds_length_limit()[source]¶
Test idempotent id: 7fc74810-0bd2-4cd7-8244-4f33a9db865a
Creating a server with metadata longer than limit should fail
- test_create_server_name_length_exceeds_256()[source]¶
Test idempotent id: c3e0fb12-07fc-4d76-a22e-37409887afe8
Creating a server with name length exceeding limit should fail
Create a server with name length exceeding 255 characters, an error is returned.
- test_create_with_invalid_flavor()[source]¶
Test idempotent id: 18f5227f-d155-4429-807c-ccb103887537
Creating a server with an unknown flavor should fail
- test_create_with_invalid_image()[source]¶
Test idempotent id: fcba1052-0a50-4cf3-b1ac-fae241edf02f
Creating a server with an unknown image should fail
- test_create_with_invalid_network_uuid()[source]¶
Test idempotent id: 4e72dc2d-44c5-4336-9667-f7972e95c402
Creating a server with invalid network uuid should fail
- test_create_with_non_existent_keypair()[source]¶
Test idempotent id: 7a2efc39-530c-47de-b875-2dd01c8d39bd
Creating a server with non-existent keypair should fail
- test_create_with_nonexistent_security_group()[source]¶
Test idempotent id: c5fa6041-80cd-483b-aa6d-4e45f19d093c
Creating a server with a nonexistent security group should fail
- test_delete_non_existent_server()[source]¶
Test idempotent id: 1041b4e6-514b-4855-96a5-e974b60870a3
Deleting a non existent server should fail
- test_delete_server_pass_id_exceeding_length_limit()[source]¶
Test idempotent id: f4d7279b-5fd2-4bf2-9ba4-ae35df0d18c5
Deleting server with a server ID exceeding length limit should fail
Pass a server ID that exceeds length limit to delete server, an error is returned.
- test_delete_server_pass_negative_id()[source]¶
Test idempotent id: 75f79124-277c-45e6-a373-a1d6803f4cc4
Passing an invalid string parameter to delete server should fail
- test_force_delete_nonexistent_server_id()[source]¶
Test idempotent id: 6f47992b-5144-4250-9f8b-f00aa33950f3
Force-deleting a non existent server should fail
- test_get_console_output_of_non_existent_server()[source]¶
Test idempotent id: 7dd919e7-413f-4198-bebb-35e2a01b13e9
Getting the console output for a non existent server should fail
- test_get_non_existent_server()[source]¶
Test idempotent id: 3436b02f-1b1e-4f03-881e-c6a602327439
Getting a non existent server details should fail
- test_invalid_access_ip_v4_address()[source]¶
Test idempotent id: 7f70a4d1-608f-4794-9e56-cb182765972c
Creating a server with invalid ipv4 ip address should fail
An access IPv4 address must match a valid address pattern
- test_invalid_ip_v6_address()[source]¶
Test idempotent id: 5226dd80-1e9c-4d8a-b5f9-b26ca4763fd0
Creating a server with invalid ipv6 ip address should fail
An access IPv6 address must match a valid address pattern
- test_pause_non_existent_server()[source]¶
Test idempotent id: 6a8dc0c6-6cd4-4c0a-9f32-413881828091
Pausing a non existent server should fail
- test_pause_paused_server()[source]¶
Test idempotent id: d1417e7f-a509-41b5-a102-d5eed8613369
Pausing a paused server should fail
- test_personality_file_contents_not_encoded()[source]¶
Test idempotent id: b8a7235e-5246-4a8f-a08e-b34877c6586f
Using an unencoded injected file to create server should fail
- test_reboot_deleted_server()[source]¶
Test idempotent id: 581a397d-5eab-486f-9cf9-1014bbd4c984
Rebooting a deleted server should fail
- test_reboot_non_existent_server()[source]¶
Test idempotent id: d4c023a0-9c55-4747-9dd5-413b820143c7
Rebooting a non existent server should fail
- test_rebuild_deleted_server()[source]¶
Test idempotent id: 98fa0458-1485-440f-873b-fe7f0d714930
Rebuilding a deleted server should fail
- test_rebuild_non_existent_server()[source]¶
Test idempotent id: d86141a7-906e-4731-b187-d64a2ea61422
Rebuilding a non existent server should fail
- test_resize_nonexistent_server()[source]¶
Test idempotent id: 7ea45b3e-e770-46fa-bfcc-9daaf6d987c0
Resizing a non-existent server should fail
- test_resize_server_with_non_existent_flavor()[source]¶
Test idempotent id: ced1a1d7-2ab6-45c9-b90f-b27d87b30efd
Resizing a server with non existent flavor should fail
- test_resize_server_with_null_flavor()[source]¶
Test idempotent id: 45436a7d-a388-4a35-a9d8-3adc5d0d940b
Resizing a server with null flavor should fail
- test_restore_nonexistent_server_id()[source]¶
Test idempotent id: 9c6d38cc-fcfb-437a-85b9-7b788af8bf01
Restore-deleting a non existent server should fail
We can restore a soft deleted server, but can’t restore a non existent server.
- test_restore_server_invalid_state()[source]¶
Test idempotent id: 7fcadfab-bd6a-4753-8db7-4a51e51aade9
Restore-deleting a server not in ‘soft-delete’ state should fail
We can restore a soft deleted server, but can’t restore a server that is not in ‘soft-delete’ state.
- test_resume_non_existent_server()[source]¶
Test idempotent id: 221cd282-bddb-4837-a683-89c2487389b6
Resuming a non existent server should fail
- test_resume_server_invalid_state()[source]¶
Test idempotent id: ccb6294d-c4c9-498f-8a43-554c098bfadb
Resuming an active server should fail
- test_server_name_blank()[source]¶
Test idempotent id: dbbfd247-c40c-449e-8f6c-d2aa7c7da7cf
Creating a server with name parameter empty should fail
- test_shelve_non_existent_server()[source]¶
Test idempotent id: abca56e2-a892-48ea-b5e5-e07e69774816
Shelving a non existent server should fail
- test_shelve_shelved_server()[source]¶
Test idempotent id: 443e4f9b-e6bf-4389-b601-3a710f15fddd
Shelving a shelved server should fail
- test_stop_non_existent_server()[source]¶
Test idempotent id: a31460a9-49e1-42aa-82ee-06e0bb7c2d03
Stopping a non existent server should fail
- test_suspend_non_existent_server()[source]¶
Test idempotent id: d1f032d5-7b6e-48aa-b252-d5f16dd994ca
Suspending a non existent server should fail
- test_suspend_server_invalid_state()[source]¶
Test idempotent id: 7f323206-05a9-4bf8-996b-dd5b2036501b
Suspending a suspended server should fail
- test_unpause_non_existent_server()[source]¶
Test idempotent id: 705b8e3a-e8a7-477c-a19b-6868fc24ac75
Unpausing a non existent server should fail
- test_unpause_server_invalid_state()[source]¶
Test idempotent id: c8e639a7-ece8-42dd-a2e0-49615917ba4f
Unpausing an active server should fail
- test_unshelve_non_existent_server()[source]¶
Test idempotent id: 23d23b37-afaf-40d7-aa5d-5726f82d8821
Unshelving a non existent server should fail
- test_unshelve_server_invalid_state()[source]¶
Test idempotent id: 8f198ded-1cca-4228-9e65-c6b449c54880
Unshelving an active server should fail
- test_update_name_of_non_existent_server()[source]¶
Test idempotent id: aa8eed43-e2cb-4ebf-930b-da14f6a21d81
Updating name of a non-existent server should fail
- class ServersNegativeTestMultiTenantJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Negative tests of servers for multiple projects