File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}''."
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
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
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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments