Bases: object
Fake one or more volume availability zones (AZs).
Create multiple fake AZs.
Parameters: |
|
---|---|
Returns: | A list of FakeResource objects faking the AZs |
Create a fake AZ.
Parameters: | attrs (Dictionary) – A dictionary with all attributes |
---|---|
Returns: | A FakeResource object with zoneName, zoneState, etc. |
Bases: object
Fake one or more backup.
Create multiple fake backups.
Parameters: |
|
---|---|
Returns: | A list of FakeResource objects faking the backups |
Create a fake backup.
Parameters: | attrs (Dictionary) – A dictionary with all attributes |
---|---|
Returns: | A FakeResource object with id, name, volume_id, etc. |
Bases: object
Fake one or more Qos specification.
Create a fake Qos specification.
Parameters: | attrs (Dictionary) – A dictionary with all attributes |
---|---|
Returns: | A FakeResource object with id, name, consumer, etc. |
Create a fake Qos specification association.
Parameters: | attrs (Dictionary) – A dictionary with all attributes |
---|---|
Returns: | A FakeResource object with id, name, association_type, etc. |
Create multiple fake Qos specifications.
Parameters: |
|
---|---|
Returns: | A list of FakeResource objects faking the Qos specifications |
Bases: object
Fake one or more Services.
Create a fake service.
Parameters: | attrs (Dictionary) – A dictionary with all attributes of service |
---|---|
Retrun: | A FakeResource object with host, status, etc. |
Create multiple fake services.
Parameters: |
|
---|---|
Returns: | A list of FakeResource objects |
Get an iterable MagicMock object with a list of faked services.
If services list is provided, then initialize the Mock object with the list. Otherwise create one.
Parameters: |
|
---|
Bases: object
Bases: object
Fake one or more snapshot.
Create a fake snapshot.
Parameters: | attrs (Dictionary) – A dictionary with all attributes |
---|---|
Returns: | A FakeResource object with id, name, description, etc. |
Create multiple fake snapshots.
Parameters: |
|
---|---|
Returns: | A list of FakeResource objects faking the snapshots |
Bases: object
Fake one or more Transfer.
Create a fake transfer.
Parameters: | attrs (Dictionary) – A dictionary with all attributes of Transfer Request |
---|---|
Retrun: | A FakeResource object with volume_id, name, id. |
Bases: object
Bases: object
Fake one or more type.
Create a fake type.
Parameters: |
|
---|---|
Returns: | A FakeResource object with id, name, description, etc. |
Create multiple fake types.
Parameters: |
|
---|---|
Returns: | A list of FakeResource objects faking the types |
Bases: object
Fake one or more volumes.
TODO(xiexs): Currently, only volume API v2 is supported by this class.
Create a fake volume.
Parameters: | attrs (Dictionary) – A dictionary with all attributes of volume |
---|---|
Retrun: | A FakeResource object with id, name, status, etc. |
Create multiple fake volumes.
Parameters: |
|
---|---|
Returns: | A list of FakeResource objects |
Get the volume columns from a faked volume object.
Parameters: | volume – A FakeResource objects faking volume |
---|
A tuple which may include the following keys: (‘id’, ‘name’, ‘description’, ‘status’, ‘size’, ‘volume_type’,
‘metadata’, ‘snapshot’, ‘availability_zone’, ‘attachments’)
Get the volume data from a faked volume object.
Parameters: | volume – A FakeResource objects faking volume |
---|
A tuple which may include the following values: (‘ce26708d’, ‘fake_volume’, ‘fake description’, ‘available’,
20, ‘fake_lvmdriver-1’, “Alpha=’a’, Beta=’b’, Gamma=’g’”, 1, ‘nova’, [{‘device’: ‘/dev/ice’, ‘server_id’: ‘1233’}])
Get an iterable MagicMock object with a list of faked volumes.
If volumes list is provided, then initialize the Mock object with the list. Otherwise create one.
Parameters: |
|
---|
Bases: object
Bases: openstackclient.tests.utils.TestCommand
Bases: openstackclient.tests.utils.TestCommand
Bases: openstackclient.tests.utils.TestCommand
Bases: openstackclient.tests.volume.v2.fakes.TestVolume
Bases: openstackclient.tests.volume.v2.test_backup.TestBackup
Bases: openstackclient.tests.volume.v2.test_backup.TestBackup
Bases: openstackclient.tests.volume.v2.test_backup.TestBackup
Bases: openstackclient.tests.volume.v2.test_backup.TestBackup
Bases: openstackclient.tests.volume.v2.test_backup.TestBackup
Bases: openstackclient.tests.volume.v2.fakes.TestVolume
Bases: openstackclient.tests.volume.v2.test_qos_specs.TestQos
Bases: openstackclient.tests.volume.v2.test_qos_specs.TestQos
Bases: openstackclient.tests.volume.v2.test_qos_specs.TestQos
Bases: openstackclient.tests.volume.v2.test_qos_specs.TestQos
Bases: openstackclient.tests.volume.v2.test_qos_specs.TestQos
Bases: openstackclient.tests.volume.v2.test_qos_specs.TestQos
Bases: openstackclient.tests.volume.v2.test_qos_specs.TestQos
Bases: openstackclient.tests.volume.v2.test_qos_specs.TestQos
Bases: openstackclient.tests.volume.v2.fakes.TestService
Bases: openstackclient.tests.volume.v2.test_service.TestService
Bases: openstackclient.tests.volume.v2.fakes.TestVolume
Bases: openstackclient.tests.volume.v2.test_snapshot.TestSnapshot
Bases: openstackclient.tests.volume.v2.test_snapshot.TestSnapshot
Bases: openstackclient.tests.volume.v2.test_snapshot.TestSnapshot
Bases: openstackclient.tests.volume.v2.test_snapshot.TestSnapshot
Bases: openstackclient.tests.volume.v2.test_snapshot.TestSnapshot
Bases: openstackclient.tests.volume.v2.test_snapshot.TestSnapshot
Bases: openstackclient.tests.volume.v2.fakes.TestTransfer
Bases: openstackclient.tests.volume.v2.test_transfer_request.TestTransfer
Bases: openstackclient.tests.volume.v2.fakes.TestVolume
Bases: openstackclient.tests.volume.v2.test_type.TestType
Bases: openstackclient.tests.volume.v2.test_type.TestType
Bases: openstackclient.tests.volume.v2.test_type.TestType
Bases: openstackclient.tests.volume.v2.test_type.TestType
Bases: openstackclient.tests.volume.v2.test_type.TestType
Bases: openstackclient.tests.volume.v2.test_type.TestType
Bases: openstackclient.tests.volume.v2.fakes.TestVolume
Bases: openstackclient.tests.volume.v2.test_volume.TestVolume
Bases: openstackclient.tests.volume.v2.test_volume.TestVolume
Bases: openstackclient.tests.volume.v2.test_volume.TestVolume
Bases: openstackclient.tests.volume.v2.test_volume.TestVolume
Bases: openstackclient.tests.volume.v2.test_volume.TestVolume
Bases: openstackclient.tests.volume.v2.test_volume.TestVolume