[Notes] [Git][BuildGrid/buildgrid][master] server/cas/service.py: Set errors for unimplemented methods



Title: GitLab

Martin Blanchard pushed to branch master at BuildGrid / buildgrid

Commits:

1 changed file:

Changes:

  • buildgrid/server/cas/service.py
    ... ... @@ -69,6 +69,18 @@ class ContentAddressableStorageService(remote_execution_pb2_grpc.ContentAddressa
    69 69
     
    
    70 70
             return remote_execution_pb2.BatchReadBlobsResponse()
    
    71 71
     
    
    72
    +    def BatchReadBlobs(self, request, context):
    
    73
    +        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    
    74
    +        context.set_details('Method not implemented!')
    
    75
    +
    
    76
    +        return remote_execution_pb2.BatchReadBlobsResponse()
    
    77
    +
    
    78
    +    def GetTree(self, request, context):
    
    79
    +        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    
    80
    +        context.set_details('Method not implemented!')
    
    81
    +
    
    82
    +        return iter([remote_execution_pb2.GetTreeResponse()])
    
    83
    +
    
    72 84
         def _get_instance(self, instance_name):
    
    73 85
             try:
    
    74 86
                 return self._instances[instance_name]
    
    ... ... @@ -172,6 +184,12 @@ class ByteStreamService(bytestream_pb2_grpc.ByteStreamServicer):
    172 184
     
    
    173 185
             return bytestream_pb2.WriteResponse()
    
    174 186
     
    
    187
    +    def QueryWriteStatus(self, request, context):
    
    188
    +        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    
    189
    +        context.set_details('Method not implemented!')
    
    190
    +
    
    191
    +        return bytestream_pb2.QueryWriteStatusResponse()
    
    192
    +
    
    175 193
         def _get_instance(self, instance_name):
    
    176 194
             try:
    
    177 195
                 return self._instances[instance_name]
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]