Skip to content

Commit 876a4c5

Browse files
Merge pull request #437 from corporate-gadfly/clj-kondo-prep
prep for clj-kondo bump to 2026.07.24
2 parents 160526b + 26a19c4 commit 876a4c5

5 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/puppetlabs/puppetdb/query/paging.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
was successful; throws an exception with a useful error message otherwise."
115115
[order_by]
116116
(if-let [bad-order-by (some
117-
(fn [x] (when (keys (dissoc x :field :order)) x))
117+
(fn [x] (when (seq (dissoc x :field :order)) x))
118118
order_by)]
119119
(throw (bad-query-ex
120120
(tru "Illegal value ''{0}'' in :order_by; unknown key ''{1}''."

src/puppetlabs/puppetdb/scf/storage.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1980,7 +1980,7 @@
19801980
(s/defn add-report! :- processing-status-schema
19811981
"Add a report and all of the associated events to the database."
19821982
([report received-timestamp db conn-status]
1983-
(add-report! report received-timestamp db conn-status true))
1983+
(add-report! report received-timestamp db conn-status nil))
19841984
([{:keys [certname producer_timestamp] :as report} :- reports/report-wireformat-schema
19851985
received-timestamp :- pls/Timestamp
19861986
db conn-status

test/puppetlabs/puppetdb/catalogs_test.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
(is (thrown? AssertionError (resource-spec-to-map "Class[Foo")))
4040
(is (thrown? AssertionError (resource-spec-to-map "ClassFoo]")))
4141
(is (thrown? AssertionError (resource-spec-to-map "ClassFoo")))
42+
#_{:clj-kondo/ignore [:type-mismatch]}
4243
(is (thrown? AssertionError (resource-spec-to-map nil))))
4344

4445
(testing "should correctly parse well-formed input"

test/puppetlabs/puppetdb/random_test.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
(testing "should only accept a positive integer"
3030
(is (thrown? IllegalArgumentException (random-string -1)))
31+
#_{:clj-kondo/ignore [:type-mismatch]}
3132
(is (thrown? ClassCastException (random-string "asdf")))))
3233

3334
(deftest test-random-string-alpha
@@ -43,6 +44,7 @@
4344

4445
(testing "should only accept a positive integer"
4546
(is (thrown? IllegalArgumentException (random-string-alpha -1)))
47+
#_{:clj-kondo/ignore [:type-mismatch]}
4648
(is (thrown? ClassCastException (random-string-alpha "asdf")))))
4749

4850
(deftest test-random-ascii-string
@@ -56,6 +58,7 @@
5658

5759
(testing "should only accept a positive integer"
5860
(is (thrown? IllegalArgumentException (random-ascii-string -1)))
61+
#_{:clj-kondo/ignore [:type-mismatch]}
5962
(is (thrown? ClassCastException (random-ascii-string "asdf")))))
6063

6164
(deftest test-random-bool

test/puppetlabs/puppetdb/testutils/services.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@
458458
"Returns the number of messages discarded from the command queue by
459459
the current PuppetDB instance."
460460
[]
461-
(-> (pdb-metrics-url "/mbeans/puppetlabs.puppetdb.command:type=global,name=discarded")
461+
(-> (metrics-url-str "/mbeans/puppetlabs.puppetdb.command:type=global,name=discarded")
462462
get-or-throw
463463
(get-in [:body :Count])))
464464

0 commit comments

Comments
 (0)