# File tests/drivers/rhevm/instances_test.rb, line 54 def test_03_01_instance_can_be_started params = { 'api[driver]''api[driver]' => 'rhevm' } 20.times do |tick| get_auth_url "/api;driver=rhevm/instances/#{(@@instance2/'instance').first[:id]}", { :tick => "START1-#{tick}"} last_response.status.should_not == 500 state = (last_xml_response/'instance/state').first.text break if state=='STOPPED' sleep(5) end post_url "/api/instances/#{(@@instance/'instance').first[:id]}/start", params last_response.status.should == 204 end