# File tests/drivers/openstack/instances_test.rb, line 29
    def test_01_02_it_can_create_instance_with_hardware_profile
      params = {
        :image_id => '4',
        :hwp_id => '2',
        'api[driver]''api[driver]' => 'openstack',
      }
      post_url '/api/instances', params
      last_response.status.should == 201 # Created
      @@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