test/yao/resources/test_image.rb in yao-0.13.4 vs test/yao/resources/test_image.rb in yao-0.14.0
- old
+ new
@@ -39,9 +39,14 @@
image = Yao::Resources::Image.new(@@params)
check_image(image)
end
+ def test_empty_image
+ image = Yao::Server.new("image"=>"").image
+ assert_equal(image, nil)
+ end
+
def test_to_hash
server = Yao::Resources::Server.new(
"OS-DCF:diskConfig" => "AUTO",
"OS-EXT-AZ:availability_zone" => "nova",
"OS-EXT-SRV-ATTR:host" => "compute",