The magnumclient.tests.osc.unit.v1.fakes Module

The magnumclient.tests.osc.unit.v1.fakes Module

class magnumclient.tests.osc.unit.v1.fakes.FakeBaseModel

Bases: object

class 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)
class magnumclient.tests.osc.unit.v1.fakes.FakeCluster

Bases: object

Fake one or more Cluster.

static 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
class magnumclient.tests.osc.unit.v1.fakes.FakeClusterTemplate

Bases: object

Fake one or more ClusterTemplate.

static create_cluster_templates(attrs=None, count=2)

Create multiple fake cluster templates.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of cluster templates to fake
Returns:

A list of FakeResource objects faking the cluster templates

static 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
class magnumclient.tests.osc.unit.v1.fakes.FakeQuota

Bases: object

Fake one or more Quota

static 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
class magnumclient.tests.osc.unit.v1.fakes.FakeQuotasModelManager

Bases: object

create(**kwargs)
delete(id)
get(id, resource)
class magnumclient.tests.osc.unit.v1.fakes.FakeStatsModelManager

Bases: object

list(**kwargs)
class magnumclient.tests.osc.unit.v1.fakes.MagnumFakeClientManager

Bases: magnumclient.tests.osc.unit.osc_fakes.FakeClientManager

class magnumclient.tests.osc.unit.v1.fakes.MagnumFakeContainerInfra

Bases: object

exception magnumclient.tests.osc.unit.v1.fakes.MagnumParseException(message=None, details=None)

Bases: exceptions.Exception

The base exception class for all exceptions this library raises.

class magnumclient.tests.osc.unit.v1.fakes.TestMagnumClientOSCV1(*args, **kwargs)

Bases: magnumclient.tests.osc.unit.osc_utils.TestCase

check_parser(cmd, args, verify_args)
setUp()
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.