mirror of https://github.com/apache/jclouds.git
Fixing clean-stub-fixture to call destroy-node correctly
This commit is contained in:
parent
4191df74a8
commit
14f372be3b
|
@ -34,16 +34,16 @@ list, Alan Dipert and MeikelBrandmeyer."
|
||||||
(deftest os-families-test
|
(deftest os-families-test
|
||||||
(is (some #{"centos"} (map str (os-families)))))
|
(is (some #{"centos"} (map str (os-families)))))
|
||||||
|
|
||||||
|
(def *compute* (compute-service "stub" "" ""))
|
||||||
|
|
||||||
(defn clean-stub-fixture
|
(defn clean-stub-fixture
|
||||||
"This should allow basic tests to easily be run with another service."
|
"This should allow basic tests to easily be run with another service."
|
||||||
[compute-service]
|
[compute-service]
|
||||||
(fn [f]
|
(fn [f]
|
||||||
(doseq [node (nodes compute-service)]
|
(doseq [node (nodes compute-service)]
|
||||||
(destroy-node (.getId node)))
|
(destroy-node *compute* (.getId node)))
|
||||||
(f)))
|
(f)))
|
||||||
|
|
||||||
(def *compute* (compute-service "stub" "" ""))
|
|
||||||
|
|
||||||
(use-fixtures :each (clean-stub-fixture *compute*))
|
(use-fixtures :each (clean-stub-fixture *compute*))
|
||||||
|
|
||||||
(deftest compute-service?-test
|
(deftest compute-service?-test
|
||||||
|
|
Loading…
Reference in New Issue