                   (filter #(= "notice" (:level %))
                           logs))))
 
-        (is (= 5 (count
-                  (filter #(= "info" (:level %))
-                          logs))))))))
+        (is (= info-log-count
+               (count
+                 (filter #(= "info" (:level %))
+                         logs))))))))
 
 (defn read-gc-count-metric []
   ;; metrics are global, so...


      (let [[report] (int/pql-query pdb "reports { certname = 'my_agent' and noop = false }")
            metrics (get-href pdb (get-in report [:metrics :href]))
            logs  (get-href pdb (get-in report [:logs :href]))]

        (is (= #{{:name "total", :value 1, :category "events"}
                 {:name "changed", :value 1, :category "resources"}

(ns puppetlabs.puppetdb.integration.reports
  (:require [clojure.test :refer :all]
            [clojure.string :refer [trim-newline]]
            [me.raynes.fs :as fs]
            [puppetlabs.puppetdb.integration.fixtures :as int]
            [puppetlabs.puppetdb.testutils.services :as svc-utils]
