MCPcopy Create free account
hub / github.com/apache/impala / post_data

Function post_data

tests/common/impala_cluster.py:79–87  ·  view source on GitHub ↗

Helper method to post data to a url.

(url, data)

Source from the content-addressed store, hash-verified

77
78
79def post_data(url, data):
80 """Helper method to post data to a url."""
81 response = requests.head(url)
82 assert response.status_code == requests.codes.ok, "URL: {0} Resp:{1}".format(
83 url, response.text)
84 response = requests.post(url, data=data)
85 assert response.status_code == requests.codes.ok, "URL: {0} Resp:{1}".format(
86 url, response.text)
87 return response
88
89
90# Represents a set of Impala processes.

Callers 2

set_jvm_log_levelMethod · 0.85
set_jvm_log_levelMethod · 0.85

Calls 3

headMethod · 0.80
postMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected