(ns riemann.kairosdb-test
  (:use riemann.kairosdb
        [riemann.time :only [unix-time]]
        clojure.test)
  (:require [riemann.logging :as logging]))

(logging/init)

(deftest ^:kairosdb ^:integration kairosdb-test
         (let [k (kairosdb {:block-start true})]
           (k {:host "riemann.local"
               :service "kairosdb test"
               :state "ok"
               :description "all clear, uh, situation normal"
               :metric -2
               :time (unix-time)}))

         (let [k (kairosdb {:block-start true})]
           (k {:service "kairosdb test"
               :state "ok"
               :description "all clear, uh, situation normal"
               :metric 3.14159
               :time (unix-time)}))

         (let [k (kairosdb {:block-start true})]
           (k {:host "no-service.riemann.local"
               :state "ok"
               :description "Missing service, not transmitted"
               :metric 4
               :time (unix-time)})))

(ns riemann.kairosdb-test
  (:use riemann.kairosdb
        [riemann.time :only [unix-time]]
        clojure.test)
  (:require [riemann.logging :as logging]))

(logging/init)

(deftest ^:kairosdb ^:integration kairosdb-test
  (let [k (kairosdb {:block-start true})]
    (k {:host "riemann.local"
        :service "kairosdb test"
        :state "ok"
        :description "all clear, uh, situation normal"
        :metric -2
        :time (unix-time)}))

  (let [k (kairosdb {:block-start true})]
    (k {:service "kairosdb test"
        :state "ok"
        :description "all clear, uh, situation normal"
        :metric 3.14159
        :time (unix-time)}))

  (let [k (kairosdb {:block-start true})]
    (k {:host "no-service.riemann.local"
        :state "ok"
        :description "Missing service, not transmitted"
        :metric 4
        :time (unix-time)})))


Fix up indentation in kairosdb test
Fix up indentation in kairosdb test

jamtur01/riemann,abailly/riemann,aphyr/riemann,eric/riemann,riemann/riemann,Anvil/riemann,eric/riemann,jeanpralo/riemann,Anvil/riemann,bmhatfield/riemann,abailly/riemann,jamtur01/riemann,aphyr/riemann,jeanpralo/riemann,riemann/riemann,bmhatfield/riemann