Add XML support for test_attach_volume
Change-Id: Id2e02522f7f4ee799fbbc70549b226695fa95a18
This commit is contained in:
parent
44a4738206
commit
1ced8420dd
|
@ -22,16 +22,15 @@ import tempest.config
|
||||||
from tempest.common.utils.data_utils import rand_name
|
from tempest.common.utils.data_utils import rand_name
|
||||||
from tempest.common.utils.linux.remote_client import RemoteClient
|
from tempest.common.utils.linux.remote_client import RemoteClient
|
||||||
from tempest import openstack
|
from tempest import openstack
|
||||||
from tempest.tests.compute.base import BaseComputeTest
|
from tempest.tests.compute import base
|
||||||
|
|
||||||
|
|
||||||
class TestAttachVolume(BaseComputeTest):
|
class AttachVolumeTest(object):
|
||||||
|
|
||||||
run_ssh = tempest.config.TempestConfig().compute.run_ssh
|
run_ssh = tempest.config.TempestConfig().compute.run_ssh
|
||||||
|
|
||||||
@classmethod
|
@staticmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
super(TestAttachVolume, cls).setUpClass()
|
|
||||||
cls.device = 'vdb'
|
cls.device = 'vdb'
|
||||||
|
|
||||||
def _detach(self, server_id, volume_id):
|
def _detach(self, server_id, volume_id):
|
||||||
|
@ -108,3 +107,19 @@ class TestAttachVolume(BaseComputeTest):
|
||||||
if attached:
|
if attached:
|
||||||
self._detach(server['id'], volume['id'])
|
self._detach(server['id'], volume['id'])
|
||||||
self._delete(server['id'], volume['id'])
|
self._delete(server['id'], volume['id'])
|
||||||
|
|
||||||
|
|
||||||
|
class TestAttachVolumeJSON(base.BaseComputeTestJSON,
|
||||||
|
AttachVolumeTest):
|
||||||
|
@classmethod
|
||||||
|
def setUpClass(cls):
|
||||||
|
super(TestAttachVolumeJSON, cls).setUpClass()
|
||||||
|
AttachVolumeTest.setUpClass(cls)
|
||||||
|
|
||||||
|
|
||||||
|
class TestAttachVolumeXML(base.BaseComputeTestXML,
|
||||||
|
AttachVolumeTest):
|
||||||
|
@classmethod
|
||||||
|
def setUpClass(cls):
|
||||||
|
super(TestAttachVolumeXML, cls).setUpClass()
|
||||||
|
AttachVolumeTest.setUpClass(cls)
|
||||||
|
|
Loading…
Reference in New Issue