示例#1
0
 def setUp(self):
     if get_codes() is None:
         self.client = None
     else:
         codes = get_codes()[:4]
         cl = AzureClient(codes[0], codes[1], codes[2], codes[3], "admin", "test_user")
         self.client = cl
         self.blob_serv = cl.open_blob_service()
         self.container = codes[0]
示例#2
0
 def setUp(self):
     res = get_codes("CRAZURE")
     if res is None:
         self.client = None
     else:
         codes = res
         cl = AzureClient(codes[0], codes[1], codes[2], codes[3], "admin",
                          "test_user")
         self.client = cl
         self.blob_serv = cl.open_blob_service()
         self.container = codes[0]
示例#3
0
 def setUp(self):
     res = get_codes("CRAZURE")
     if res is None:
         self.client = None
     else:
         codes = res
         cl = AzureClient(
             codes[0],
             codes[1],
             codes[2],
             codes[3],
             "admin",
             "test_user")
         self.client = cl
         self.blob_serv = cl.open_blob_service()
         self.container = codes[0]
示例#4
0
 def setUp(self):
     res = get_codes("CRTERALAB")
     if res is None:
         self.client = None
     else:
         res = [bytes(_, encoding="ascii") for _ in res]
         codes = [res[0], res[2], res[1]]
         if len(codes) >= 7 or len(codes) == 3:
             cl = ASSHClient(*codes)
             try:
                 cl.connect()
             except TimeoutError:
                 # the cluster is not connected
                 self.client = None
                 return None
             self.client = cl
         else:
             self.client = None
示例#5
0
 def setUp(self):
     res = get_codes("CRTERALAB")
     if res is None:
         self.client = None
     else:
         res = [bytes(_, encoding="ascii") for _ in res]
         codes = [res[0], res[2], res[1]]
         if len(codes) >= 7 or len(codes) == 3:
             cl = ASSHClient(*codes)
             try:
                 cl.connect()
             except TimeoutError:
                 # the cluster is not connected
                 self.client = None
                 return None
             self.client = cl
         else:
             self.client = None