magnumclient.tests.osc.unit.v1.fakes
Module¶magnumclient.tests.osc.unit.v1.fakes.
FakeBaseModel
¶Bases: object
magnumclient.tests.osc.unit.v1.fakes.
FakeBaseModelManager
¶Bases: object
create
(**kwargs)¶delete
(id)¶get
(id)¶list
(limit=None, marker=None, sort_key=None, sort_dir=None, detail=False)¶rotate_ca
(**kwargs)¶update
(id, patch)¶magnumclient.tests.osc.unit.v1.fakes.
FakeCluster
¶Bases: object
Fake one or more Cluster.
create_one_cluster
(attrs=None)¶Create a fake Cluster.
Parameters: | attrs (Dictionary) – A dictionary with all attributes |
---|---|
Returns: | A FakeResource object, with flavor_id, image_id, and so on |
magnumclient.tests.osc.unit.v1.fakes.
FakeClusterTemplate
¶Bases: object
Fake one or more ClusterTemplate.
create_cluster_templates
(attrs=None, count=2)¶Create multiple fake cluster templates.
Parameters: |
|
---|---|
Returns: | A list of FakeResource objects faking the cluster templates |
create_one_cluster_template
(attrs=None)¶Create a fake ClusterTemplate.
Parameters: | attrs (Dictionary) – A dictionary with all attributes |
---|---|
Returns: | A FakeResource object, with flavor_id, image_id, and so on |
magnumclient.tests.osc.unit.v1.fakes.
FakeQuota
¶Bases: object
Fake one or more Quota
create_one_quota
(attrs=None)¶Create a fake quota
Parameters: | attrs (Dictionary) – A dictionary with all attributes |
---|---|
Returns: | A FakeResource object, with project_id, resource and so on |
magnumclient.tests.osc.unit.v1.fakes.
FakeQuotasModelManager
¶Bases: object
create
(**kwargs)¶delete
(id)¶get
(id, resource)¶magnumclient.tests.osc.unit.v1.fakes.
MagnumFakeClientManager
¶Bases: magnumclient.tests.osc.unit.osc_fakes.FakeClientManager
magnumclient.tests.osc.unit.v1.fakes.
MagnumFakeContainerInfra
¶Bases: object
magnumclient.tests.osc.unit.v1.fakes.
MagnumParseException
(message=None, details=None)¶Bases: exceptions.Exception
The base exception class for all exceptions this library raises.
magnumclient.tests.osc.unit.v1.fakes.
TestMagnumClientOSCV1
(*args, **kwargs)¶Bases: magnumclient.tests.osc.unit.osc_utils.TestCase
check_parser
(cmd, args, verify_args)¶setUp
()¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.