 (ns celestial.integration.workflows.proxmox
   (:require 
     [celestial.integration.workflows.common :refer (spec)]
-    [celestial.fixtures.core :refer (with-defaults is-type?)]  
+    [celestial.fixtures.core :refer (with-defaults is-type? with-conf)]  
     [celestial.fixtures.data :refer 
      (redis-type redis-prox-spec local-conf)]
     [celestial.persistency.systems :as s]

          {:system-id 1 :hostname "bar" :owner "ronen" :machine {:ip "192.168.3.199"}}) => nil
        (wf/destroy (assoc (s/get-system 2) :system-id 2)) => nil
        (wf/destroy (spec)) => nil)
    ))




  (:use midje.sweet))

(with-defaults 
  (with-conf local-conf
   (with-state-changes [(before :facts (populate-system redis-type redis-prox-spec))]
    (fact "proxmox creation workflows" :integration :proxmox :workflow
      (wf/create (spec)) => nil 
      (wf/create (spec)) => (throws ExceptionInfo  (is-type? :celestial.workflows/machine-exists)) 
