MCPcopy Create free account
hub / github.com/apache/dubbo-python2 / test_pc_es_center

Method test_pc_es_center

tests/dubbo_test.py:277–301  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

275 pretty_print(batch_spu_request)
276
277 def test_pc_es_center(self):
278 zk = ZkRegister('172.19.71.7:2181')
279 dubbo_cli = DubboClient('com.qianmi.pc.es.api.EsGoodsQueryProvider', zk_register=zk)
280
281 goods_query_request = Object('com.qianmi.pc.es.api.request.EsGoodsQueryRequest', values={
282 'chainMasterId': 'A859315',
283 'fromSys': 2,
284 'pageNum': 50
285 })
286 result = dubbo_cli.call('query', goods_query_request)
287 pretty_print(result)
288
289 goods_list_by_id_request = Object('com.qianmi.pc.es.api.request.EsGoodsListByIdStringRequest', values={
290 'chainMasterId': 'A859315',
291 'idString': 'g51426:g51422'
292 })
293 result = dubbo_cli.call('listByIdString', goods_list_by_id_request)
294 pretty_print(result)
295
296 product_request = Object('com.qianmi.pc.es.api.request.EsGoodsListByIdStringRequest', values={
297 'chainMasterId': 'A000000',
298 'idString': 'NotUsed:g10529'
299 })
300 result = dubbo_cli.call('listByIdString', product_request)
301 pretty_print(result)
302
303
304if __name__ == '__main__':

Callers

nothing calls this directly

Calls 5

callMethod · 0.95
ZkRegisterClass · 0.90
DubboClientClass · 0.90
ObjectClass · 0.90
pretty_printFunction · 0.70

Tested by

no test coverage detected