Showing
2 changed files
with
1 additions
and
4 deletions
@@ -7,7 +7,6 @@ | @@ -7,7 +7,6 @@ | ||
7 | health_check: | 7 | health_check: |
8 | name: 获取首页资源位 | 8 | name: 获取首页资源位 |
9 | url: "http://127.0.0.1:8080/gateway/operations/api/v5/resource/home?app_version=6.7.0&gender=1,3&os_version=android8.0.0:ALP-AL00&client_type=android&yh_channel=1&uid=50892268&v=7&fromPage=iFP_Home&limit=100&session_key=bc8ff6db8cd0ab303cad58f225fe51df&business_line=yohobuy&screen_size=1080x1920&client_secret=64433041d137d825bc4536ba3ad3646a&page=1&physical_channel=1&udid=868035035832085db637f6cb043d7e0&content_code=9cb6138be8e60c96f48107da481816c2" | 9 | url: "http://127.0.0.1:8080/gateway/operations/api/v5/resource/home?app_version=6.7.0&gender=1,3&os_version=android8.0.0:ALP-AL00&client_type=android&yh_channel=1&uid=50892268&v=7&fromPage=iFP_Home&limit=100&session_key=bc8ff6db8cd0ab303cad58f225fe51df&business_line=yohobuy&screen_size=1080x1920&client_secret=64433041d137d825bc4536ba3ad3646a&page=1&physical_channel=1&udid=868035035832085db637f6cb043d7e0&content_code=9cb6138be8e60c96f48107da481816c2" |
10 | - schema: '{ "type" : "object", "properties" : { "code" : {"type" : "number", "minimum": 200, "maximum": 201} } }' | ||
11 | register: result | 10 | register: result |
12 | - debug: | 11 | - debug: |
13 | var: result | 12 | var: result |
@@ -22,7 +21,6 @@ | @@ -22,7 +21,6 @@ | ||
22 | url: "http://127.0.0.1:8083/product/product/queryProductBasicInfo" | 21 | url: "http://127.0.0.1:8083/product/product/queryProductBasicInfo" |
23 | content_type: json | 22 | content_type: json |
24 | params: '{"param":439486}' | 23 | params: '{"param":439486}' |
25 | - schema: ' { "type" : "object", "properties" : { "erpProductId" : {"type" : "number"} } }' | ||
26 | register: pro_ret | 24 | register: pro_ret |
27 | - debug: | 25 | - debug: |
28 | var: pro_ret | 26 | var: pro_ret |
@@ -85,14 +85,13 @@ def run_module(): | @@ -85,14 +85,13 @@ def run_module(): | ||
85 | name = module.params['name'] | 85 | name = module.params['name'] |
86 | content_type = module.params['content_type'] | 86 | content_type = module.params['content_type'] |
87 | params = module.params['params'] | 87 | params = module.params['params'] |
88 | - schema = module.params['schema'] | ||
89 | 88 | ||
90 | result['check_name'] = module.params['name'] | 89 | result['check_name'] = module.params['name'] |
91 | result['url'] = module.params['url'] | 90 | result['url'] = module.params['url'] |
92 | result['changed'] = False | 91 | result['changed'] = False |
93 | 92 | ||
94 | # check result | 93 | # check result |
95 | - ret = check_http_status(url, content_type, schema, params) | 94 | + ret = check_http_status(url, content_type, params) |
96 | if ret['code'] != 200: | 95 | if ret['code'] != 200: |
97 | module.fail_json(msg='Check Failed: http code:%i, json code: %i, err: %s' % (ret['http_code'], ret['code'], ret['err']), **result) | 96 | module.fail_json(msg='Check Failed: http code:%i, json code: %i, err: %s' % (ret['http_code'], ret['code'], ret['err']), **result) |
98 | result['response'] = ret | 97 | result['response'] = ret |
-
Please register or login to post a comment