def test_01_02_it_can_create_instance_with_hardware_profile
params = {
:image_id => '71',
:hwp_id => '2',
'api[driver]''api[driver]' => 'rackspace',
}
post_url '/api/instances', params
last_response.status.should == 201
@@instance2 = last_xml_response
(@@instance2/'instance').length.should > 0
(@@instance2/'instance/name').first.text.should_not == nil
(@@instance2/'instance/name').first.text.should_not == nil
(@@instance2/'instance/owner_id').first.text.should_not == ''
(@@instance2/'instance/owner_id').first.text.should == ENV['API_USER']
(@@instance2/'instance/state').first.text.should == 'PENDING'
end