Skip to content
Snippets Groups Projects
Commit b1d8815d authored by Hoop, Bert Jan de's avatar Hoop, Bert Jan de
Browse files

L05DOCBST-38 remove dryrun mode for http get method

a http get request does not change data so no dryrun mode needed
parent e5602bb9
No related branches found
No related tags found
No related merge requests found
......@@ -846,12 +846,6 @@ class Webquery {
public function http_client_get($url) {
$this->debug("http get, url: $url");
if ($this->is_dryrun()) {
$this->debug("dryrun: returning dryrun response");
return new \GuzzleHttp\Psr7\Response(200, [], $this->get_dryrun());
}
$options = array_merge($this->default_get_options, $this->get_http_options());
try {
return $this->get_http_client()->get($url, $options);
......
......@@ -465,11 +465,6 @@ EOT;
])
->set_query('test=*');
// test get
$result = $wq->http_client_get($wq->get_search_url());
$this->assertEquals('200', $result->getStatusCode(), 'http get response http status');
$this->assertEquals($dryrun_resp, $result->getBody(), 'http get response body');
// test post
$result = $wq->set_isn("1")->http_client_post($wq->get_update_url(), "post=data");
$this->assertEquals('200', $result->getStatusCode(), 'http get response http status');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment