The argus.scenarios.service_mock Module

class argus.scenarios.cloud.service_mock.BaseServiceApp(backend)
stop_me()

Stop the current running cherrypy engine.

class argus.scenarios.cloud.service_mock.CloudstackMetadataServiceApp(backend)

Metadata app for CloudStack service.

latest(data_type, operation=None)
meta_data(operation)
service_offering()
user_data(operation=None)
class argus.scenarios.cloud.service_mock.CloudstackPasswordManagerApp(backend)

Metadata app for CloudStack password manager.

index()
password(password=None)
saved_password()
send_my_password()
class argus.scenarios.cloud.service_mock.EC2MetadataServiceApp(*args, **kwargs)

Mock server for testing EC2 metadata service.

default(*args)
keydict

Build a dictionary with all the public keys.

Use as keys their indexes in increasing order starting with 0.

public_keys(*remain)

Mimic the behavior of EC2 metadata service.

A first request to /public-keys will return all the available keys, each one per line in this form: “index=key-name”. Then, based on the number of keys and their indexes, will follow requests like /public-keys/<index>/openssh-key which returns the actual content.

class argus.scenarios.cloud.service_mock.HTTPKeysMetadataServiceApp(backend)

Custom OpenStack http metadata.

default(*args)
class argus.scenarios.cloud.service_mock.MaasMetadataServiceApp(backend)

Metadata app for MaaS service.

meta_data(operation=None)
user_data()
static x509()
class argus.scenarios.cloud.service_mock.MetadataServiceAppMixin

Common metadata resources.

instance_id()
local_hostname()
public_keys()
class argus.scenarios.cloud.service_mock.ServiceManager(services, backend)

Creates the required mocked service processes.

terminate()