mirror of https://github.com/apache/jclouds.git
Add test for vararg options
This commit is contained in:
parent
5b16a80d2d
commit
16d14e82cc
|
@ -67,5 +67,10 @@ list, Alan Dipert and MeikelBrandmeyer."
|
|||
(is (= OsFamily/CENTOS
|
||||
(-> (build-template service {:os-family :centos})
|
||||
bean :image bean :operatingSystem bean :family))))
|
||||
(testing "varags"
|
||||
(is (java.util.Arrays/equals
|
||||
(int-array [22 8080])
|
||||
(-> (build-template service {:inbound-ports [22 8080]})
|
||||
bean :options bean :inboundPorts))))
|
||||
(testing "invalid"
|
||||
(is (thrown? Condition (build-template service {:xx :yy}))))))
|
||||
|
|
Loading…
Reference in New Issue