def setUp(self): super(TestIdentity, self).setUp() self.conn = connect.create_connection_from_config()
def setUpClass(cls): cls.conn = connect.create_connection_from_config()
def setUp(self): super(TestCompute, self).setUp() self.conn = connect.create_connection_from_config()
def setUpClass(cls): cls.conn = connect.create_connection_from_config()
def setUp(self): super(TestNetwork, self).setUp() self.conn = connect.create_connection_from_config()
def setUp(self): super(TestIdentity, self).setUp() self.conn = connect.create_connection_from_config()
def setUp(self): super(TestCompute, self).setUp() self.conn = connect.create_connection_from_config()
# setup endpoint overrides os.environ.setdefault( 'OS_CLOUD_EYE_ENDPOINT_OVERRIDE', 'https://ces.eu-de.otc.t-systems.com/V1.0/%(project_id)s') os.environ.setdefault( 'OS_LOAD_BALANCER_ENDPOINT_OVERRIDE', 'https://elb.eu-de.otc.t-systems.com/v1.0/%(project_id)s') os.environ.setdefault( 'OS_MAP_REDUCE_ENDPOINT_OVERRIDE', 'https://mrs.eu-de.otc.t-systems.com/v1.1/%(project_id)s') # initial connection conn = create_connection_from_config() # detail = conn.map_reduce.get_cluster("0f4ab6b7-a723-4b6c-b326-f8a5711d365a") # load_balancer.list_loadbalancers(conn) # subnets = conn.network.subnets(limit=1) # routers = conn.network.routers(limit=1) # for subnet in routers: # print subnet # break # Cloud Eye Examples # metrics.list_metrics(conn) # metrics.list_favorite_metrics(connection) # alarms.list_alarms(connection) # alarms.enable_alarm(connection)