Now gate job for Python 3.5 exists and not 3.4,
we should remove those references to the 3.4 that is untested
Change-Id: I2bfedb9a7cc48413dee35d519c52cc2fd3bd3f13
There is no argument named "param" in create_volume, besides,
name is not necessary in create_volume(if name is not passed in,
the volume can reach status available with name=null), so this
is to remove param in create_volume in negative tests.
Change-Id: I7e0ed8be728825ca340be584e1dfe0cc5a8dbff5
This is to change some instance variables to local variables,
and remove some unused instance variables.
Change-Id: Id2e7a1dcad4e51df488094ba9fb837410802828b
Its not doable to delete a volume in a maintenance state without force.
The testcase calls to force_delete_volume in order to delete the volume.
Change-Id: Ia54721089d4925b6f5eeeef283cb62551a6120e1
set_mac_address() was called from test_network_basic_ops only and
it is not necessary to keep it as common method in Tempest.
Then this patch moves the implementation into test_network_basic_ops
and removes set_mac_address() from old remote_client.
In addition, this patch merges 3 exec_command() calls into a single
call for avoiding ssh re-connections.
Change-Id: I60b86a143e3987b911fa070754879bd002128120
Cinder v1 API tests have been removed from Tempest
- I04de2d90fe11f8ec4acbfa983bc0ad3aa979f45b
There are few other tests like compute, scenario which makes
call to Cinder v1 API based on api_v1 is configured.
We should cleanup those to go with v2 directly and later
those will be directed to make v2/v3 APIs.
Change-Id: I0685a74a80ff845bd0d787bc43fac1c608ee4710
Since the commit I04de2d90fe11f8ec4acbfa983bc0ad3aa979f45b Cinder v1
API tests have been removed. So there is not any case which requires
_api_version is 1. This patch just removes it.
TrivialFix
Change-Id: I7af71ef6eada3017bc5a96830515915b7a848a74
To avoid to introduce a dependency to "websocket-client", we re-use
the internal "_Websocket" class which encapsulates the sockets.
This class got introduced with commit 1f87a5611 for the VNC console
test cases.
This change moves this class to a common place, so that it can be
used by VNC and (in a later change) "serial console" test cases
equally.
Change-Id: I79065865c876549269b2bb962a6826ac2fd0a403
Since cinder api version 1 is deprecated, we should remove 'volumes_v1_client'
and 'snapshots_v1_client' clients from manager.py.
Change-Id: I2a5e4eb326e90a0c108ffaac652308c9f3fc1a7e
We are allowed to config the volume_device_name when
running tests, but not or hypervisors guarantee that
they will respect the user defined device name(KVM),
and tests may fail due to inappropriate device name
set.
We should include this information about this opt
to avoid confusions.
Change-Id: I193940c3ae565dd4803f19a77326006ebdc038cc
test_create_router_set_gateway_with_fixed_ip starts by allocating an IP
from the public_network, then it deletes that IP (which releases the
IP back to the pool), then it tries to create a router with a fixed
external IP set to the IP value it got earlier.
But in the mean time, another test could have claimed the very same IP
because there's a fraction of time when the IP is again available. In
that case, the create router call fails with
Body: {"NeutronError": {"message": "IP address 172.24.5.2 already allocated
in subnet 41f6fb6a-f10d-4a9a-9b9b-235bbbde0891", "type":
"IpAddressAlreadyAllocated", "detail": ""}}
Change-Id: I9761b094351709f97e5b1524935d070796c64273
Related-Bug: #1676207
This patch adds compute server evacuate API client method.
This client method is required to implement evacuate related tests
in OpenStack Patrole project.
Change-Id: Ie0d65d83923331caaa9cbbbd63b096ff8400bffa
Partial-Bug:: #1673811
In some tests, it try to create volume with image
"VolumesV2ImageMetadata",
"test_create_from_bootable_volume",
"test_bootable_volume_backup_and_restore",
so it should be check Glance is available before test.
If all tests in class is associate with glance, I used skip_checks,
and otherwise, I used testtools.SkipIf
Change-Id: I2302699f98b77b0ccad551ef11c4655544b3f827
Closes-Bug: 1675700
The test boots a server, attaches a volume and then power cycles
the server, to check that the volume is still attached.
When ssh validation is on, we must wait for the ssh key to be
injected in the guest authorized keys file, before power cycling,
otherwise ssh will fail later in the test.
Change-Id: I506085b4efd2501e41e91530b3fedcfad286ef0e
Change I953fe9cde89d9e8c968889a823911a206b27a4cd extended
the test to count the number of servers created, but in doing so
it stopped selecting the tenant network, which causes the test
to fail when more then one network is available to tenants.
The logic to select the network should not live in the
common server create helper since it depends on configuration;
the alternative is simply to discover the correct tenant network
in the test and pass it to the create method.
closes-bug: #1675059
Change-Id: I3e97a2d911c151b8df941b11935a547b39331a8f
test_snapshot_list_param_limit_equals_zero was skipped because
of #1540893 There was a bug in Cinder v1 and v2 (only in Kilo
release) when list snapshot was called with a limit of 0.
Now that all supported branches have the fix in Cinder, we can
unskip the test.
Change-Id: Ia2ba9c9ee99b8ae3d1b82e98a0810b2185f34c45
Related-Bug: #1540893
Swift support bulk operation for upload archive file and bulk
delete. Service client methods for those API request are
present in account_client.py
This patch separate those methods in new client and use accordingly.
Partially implements blueprint consistent-service-method-names
Change-Id: Icceaf1bf4eddd2cf6501e76e52b54de2e105a165