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

(logging/init)

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

         (let [k (xymon)]
           (k {:service "xymon test"
               :state "green"
               :description "all clear, uh, situation normal"
               :metric 3.14159
               :time (unix-time)}))

         (let [k (xymon)]
           (k {:host "riemann.local"
	       :service "xymon test"
               :state "ok"
               :description "all clear, uh, situation normal"
               :metric 3.14159
               :time (unix-time)}))

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

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

(logging/init)

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

         (let [k (xymon nil)]
           (k {:service "xymon test"
               :state "green"
               :description "all clear, uh, situation normal"
               :metric 3.14159
               :time (unix-time)}))

         (let [k (xymon nil)]
           (k {:host "riemann.local"
	       :service "xymon test"
               :state "ok"
               :description "all clear, uh, situation normal"
               :metric 3.14159
               :time (unix-time)}))

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

Fix requirements and test arguments
Fix requirements and test arguments

joerayme/riemann,topecz/riemann,alq666/riemann,jeanpralo/riemann,vixns/riemann,VideoAmp/riemann-1,AkihiroSuda/riemann,pyr/riemann,topecz/riemann,fullcontact/riemann,cswaroop/riemann,robashton/riemann,micrub/riemann,forter/riemann,vincentbernat/riemann,vincentbernat/riemann,LubyRuffy/riemann,mbuczko/riemann,eric/riemann,pharaujo/riemann,aphyr/riemann,mirwan/riemann,joerayme/riemann,pradeepchhetri/riemann,LubyRuffy/riemann,counsyl/riemann,timbuchwaldt/riemann,lispmeister/riemann,mirwan/riemann,abailly/riemann,DasAllFolks/riemann,patrox/riemann,lispmeister/riemann,bowlofstew/riemann,pharaujo/riemann,mirwan/riemann,algernon/riemann,riemann/riemann,nberger/riemann,forter/riemann,rekhajoshm/riemann,bwilber/riemann,aphyr/riemann,topecz/riemann,jeanpralo/riemann,shokunin/riemann,AkihiroSuda/riemann,riemann/riemann,mbuczko/riemann,patrox/riemann,bfritz/riemann,bfritz/riemann,bg451/riemann,DasAllFolks/riemann,alq666/riemann,micrub/riemann,moonranger/riemann,pyr/riemann,algernon/riemann,bmhatfield/riemann,jamtur01/riemann,VideoAmp/riemann-1,bmhatfield/riemann,vixns/riemann,Anvil/riemann,fullcontact/riemann,yeller/riemann,moonranger/riemann,Anvil/riemann,cswaroop/riemann,nberger/riemann,rhysr/riemann,bwilber/riemann,zamaterian/riemann,pradeepchhetri/riemann,rekhajoshm/riemann,fullcontact/riemann,irudyak/riemann,counsyl/riemann,rhysr/riemann,algernon/riemann,abailly/riemann,shokunin/riemann,jamtur01/riemann,forter/riemann,micrub/riemann,patrox/riemann,lispmeister/riemann,eric/riemann,rekhajoshm/riemann,irudyak/riemann,zamaterian/riemann,yeller/riemann,rhysr/riemann,shokunin/riemann,cswaroop/riemann,timbuchwaldt/riemann,yeller/riemann,robashton/riemann,bg451/riemann,bowlofstew/riemann