3
class MemoryEnvironment(object):
8
def add_units(self, service_name, num_units):
11
for n in range(num_units):
12
self.data['services'][service_name]
14
def _get_service(self, service_name):
15
if not service_name in self.data['services']:
16
raise EnvError("Invalid service name")
17
idx = self.data['services'][service_name]['unit_sequence']
20
def add_relation(self, endpoint_a, endpoint_b):
32
def get_config(self, svc_name):
35
def get_constraints(self, svc_name):
38
def get_cli_status(self):
44
def resolve_errors(self, retry_count=0, timeout=600, watch=False, delay=5):
51
self, timeout, goal_state="started", watch=False, no_exit=False):