From fdff5045fdfac6fcb364c3719721ea45058d3613 Mon Sep 17 00:00:00 2001 From: Corporate Gadfly Date: Thu, 30 Jul 2026 10:44:52 -0400 Subject: [PATCH] fix clj-kondo lint error/warning - add ignore for intentional bad-input - fix assertion to a proper body comparison Signed-off-by: Corporate Gadfly --- .../trapperkeeper/authorization/ring_middleware_test.clj | 5 +++-- .../services/authorization/authorization_core_test.clj | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/puppetlabs/trapperkeeper/authorization/ring_middleware_test.clj b/test/puppetlabs/trapperkeeper/authorization/ring_middleware_test.clj index 50908490..2341640b 100644 --- a/test/puppetlabs/trapperkeeper/authorization/ring_middleware_test.clj +++ b/test/puppetlabs/trapperkeeper/authorization/ring_middleware_test.clj @@ -185,8 +185,9 @@ :get "127.0.0.1" testutils/test-denied-cert))] (is (= 403 (:status response))) - (is = (str "Forbidden request: /path/to/foo (method :get)." - " Please see the server logs for details."))))) + (is (= (str "Forbidden request: /path/to/foo (method :get)." + " Please see the server logs for details.") + (:body response)))))) (testing "access denied when deny all" (let [app (build-ring-handler [(-> (testutils/new-rule :path "/") (rules/deny {:certname "*"}))] diff --git a/test/puppetlabs/trapperkeeper/services/authorization/authorization_core_test.clj b/test/puppetlabs/trapperkeeper/services/authorization/authorization_core_test.clj index 1153514b..8e6e089f 100644 --- a/test/puppetlabs/trapperkeeper/services/authorization/authorization_core_test.clj +++ b/test/puppetlabs/trapperkeeper/services/authorization/authorization_core_test.clj @@ -107,6 +107,7 @@ (is (thrown-with-msg? IllegalArgumentException #"An authorization rule should be specified as a map." + #_{:clj-kondo/ignore [:type-mismatch]} (validate-auth-config-rule! 0))) (is (thrown-with-msg?