コード例 #1
0
 def setUp(self):
     self.event_emitter = mock.Mock(HierarchicalEmitter)
     self.config_store = ConfigValueStore()
     self.args_create = args.ClientArgsCreator(self.event_emitter, None,
                                               None, None, None,
                                               self.config_store)
     self.service_name = 's3'
     self.region = 'us-west-2'
     self.endpoint_url = 'https://ec2/'
     self.service_model = self._get_service_model()
     self.bridge = mock.Mock(ClientEndpointBridge)
     self._set_endpoint_bridge_resolve()
     self.default_socket_options = [(socket.IPPROTO_TCP, socket.TCP_NODELAY,
                                     1)]
コード例 #2
0
 def setUp(self):
     self.event_emitter = mock.Mock(HierarchicalEmitter)
     self.args_create = args.ClientArgsCreator(self.event_emitter, None,
                                               None, None, None)
     self.region = 'us-west-2'
     self.endpoint_url = 'https://ec2/'
     self.service_model = mock.Mock(ServiceModel)
     self.service_model.metadata = {
         'serviceFullName': 'MyService',
         'protocol': 'query'
     }
     self.service_model.operation_names = []
     self.bridge = mock.Mock(ClientEndpointBridge)
     self.bridge.resolve.return_value = {
         'region_name': self.region,
         'signature_version': 'v4',
         'endpoint_url': self.endpoint_url,
         'signing_name': 'ec2',
         'signing_region': self.region,
         'metadata': {}
     }
     self.default_socket_options = [(socket.IPPROTO_TCP, socket.TCP_NODELAY,
                                     1)]
コード例 #3
0
 def setUp(self):
     self.args_create = args.ClientArgsCreator(None, None, None, None, None)