tests/models/compute/server_tests.rb in fog-aws-0.7.6 vs tests/models/compute/server_tests.rb in fog-aws-0.8.0
- old
+ new
@@ -58,9 +58,20 @@
test('#associate_public_ip = false') do
@instance.associate_public_ip = false
@instance.associate_public_ip == false
end
+ test('#stop') do
+ @instance.stop
+ @instance.wait_for { state == "stopped" }
+ @instance.state == "stopped"
+ end
+
+ test("#start") do
+ @instance.start
+ @instance.wait_for { ready? }
+ @instance.state == "running"
+ end
end
@instance.destroy
tests('tags') do