Exemple #1
0
 def __init__(self, log):
     self.log = log
     config = Cs3ConfigManager.get_config()
     channel = ChannelConnector.get_channel()
     self.config = config
     self.auth = Authenticator(config, channel)
     self.file_api = Cs3FileApi(log)
     self.cs3_api = grpc_gateway.GatewayAPIStub(channel)
     return
Exemple #2
0
    def __init__(self, log):
        self.log = log
        self.config = Cs3ConfigManager().get_config()
        self.auth = Auth.get_authenticator(config=self.config, log=self.log)

        self.file_api = Cs3FileApi(log)

        channel = ChannelConnector().get_channel()
        auth_interceptor = check_auth_interceptor.CheckAuthInterceptor(log, self.auth)
        intercept_channel = grpc.intercept_channel(channel, auth_interceptor)
        self.cs3_api = grpc_gateway.GatewayAPIStub(intercept_channel)
        return
Exemple #3
0
 def __init__(self, log):
     self.log = log
     self.config = Cs3ConfigManager().get_config()
     self.auth = Auth.get_authenticator(config=self.config, log=self.log)
     self.file_api = Cs3FileApi(log)
     channel = ChannelConnector().get_channel()
     auth_interceptor = check_auth_interceptor.CheckAuthInterceptor(log, self.auth)
     intercept_channel = grpc.intercept_channel(channel, auth_interceptor)
     self.cs3_api = grpc_gateway.GatewayAPIStub(intercept_channel)
     self.public_share_api = link_api_grpc.LinkAPIStub(channel)
     self.ocm_share_api = ocm_api_grpc.OcmAPIStub(channel)
     self.provider_api = ocm_provider_api_grpc.ProviderAPIStub(channel)
     return
Exemple #4
0
 def __init__(self, parent, log):
     self.cs3_config = Cs3ConfigManager.get_config()
     self.log = log
     self.file_api = Cs3FileApi(self.log)
 def setUp(self):
     config = Cs3ConfigManager.get_config()
     self.client_id = config['client_id']
     self.endpoint = config['endpoint']
     self.storage = Cs3FileApi(self.log)
Exemple #6
0
 def setUp(self):
     config = Cs3ConfigManager.get_config()
     self.user_id = config['client_id']
     self.endpoint = config['endpoint']
     self.storage = Cs3FileApi(self.log)
     self.contents_manager = CS3APIsManager(None, self.log)
Exemple #7
0
 def setUp(self):
     self.config = Cs3ConfigManager.get_config()
     self.storage = Cs3FileApi(self.log)
     self.api = Cs3PublicShareApi(self.log)