diff --git a/test/puppetlabs/http/client/async_plaintext_test.clj b/test/puppetlabs/http/client/async_plaintext_test.clj index a2bbc0d..24ea84c 100644 --- a/test/puppetlabs/http/client/async_plaintext_test.clj +++ b/test/puppetlabs/http/client/async_plaintext_test.clj @@ -105,10 +105,15 @@ (let [response (common/patch client "http://localhost:10000/hello/")] (is (= 200 (:status @response))) (is (= "Hello, World!" (slurp (:body @response)))))) - (testing "GET request via request function with persistent async client" + (testing "GET request via request function with persistent async client" (let [response (common/make-request client "http://localhost:10000/hello/" :get)] (is (= 200 (:status @response))) (is (= "Hello, World!" (slurp (:body @response)))))) + (testing "Bad verb request via request function with persistent async client" + (is (thrown? IllegalArgumentException + (common/make-request client + "http://localhost:10000/hello/" + :bad)))) (testing "client closes properly" (common/close client) (is (thrown? IllegalStateException diff --git a/test/puppetlabs/http/client/sync_plaintext_test.clj b/test/puppetlabs/http/client/sync_plaintext_test.clj index de7fd7b..3dde3b9 100644 --- a/test/puppetlabs/http/client/sync_plaintext_test.clj +++ b/test/puppetlabs/http/client/sync_plaintext_test.clj @@ -166,6 +166,11 @@ (let [response (common/make-request client "http://localhost:10000/hello/" :get)] (is (= 200 (:status response))) (is (= "Hello, World!" (slurp (:body response)))))) + (testing "Bad verb request via request function with persistent sync client" + (is (thrown? IllegalArgumentException + (common/make-request client + "http://localhost:10000/hello/" + :bad)))) (testing "client closes properly" (common/close client) (is (thrown? IllegalStateException