def test_01_01_it_can_create_instance_without_hardware_profile
params = {
:image_id => '3e82e2d5-913f-4095-ae72-ebcfa9d0571d',
:name => 'dc-webmock-1',
'api[driver]''api[driver]' => 'rhevm',
}
post_url '/api/instances', params
last_response.status.should == 201
@@instance = last_xml_response
(@@instance/'instance').length.should > 0
(@@instance/'instance/name').first.text.should_not == nil
(@@instance/'instance/name').first.text.should == 'dc-webmock-1'
(@@instance/'instance/owner_id').first.text.should_not == ''
(@@instance/'instance/owner_id').first.text.should == ENV['API_USER']
(@@instance/'instance/state').first.text.should == 'PENDING'
end