Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 4b137326f38b5adf1f9ffd3dbbb48a7b > files > 684

deltacloud-core-doc-0.4.0-4.fc15.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: DeltacloudUnitTest::HardwareProfilesTest</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">DeltacloudUnitTest::HardwareProfilesTest</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../files/tests/drivers/mock/hardware_profiles_test_rb.html">
                tests/drivers/mock/hardware_profiles_test.rb
                </a>
        <br />
                <a href="../../files/tests/drivers/mock/images_test_rb.html">
                tests/drivers/mock/images_test.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                Test::Unit::TestCase
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000755">app</a>&nbsp;&nbsp;
      <a href="#M000766">app</a>&nbsp;&nbsp;
      <a href="#M000758">test_hardware_profiles_have_name</a>&nbsp;&nbsp;
      <a href="#M000760">test_hardware_profiles_have_unique_id</a>&nbsp;&nbsp;
      <a href="#M000759">test_hardware_profiles_have_unique_name</a>&nbsp;&nbsp;
      <a href="#M000770">test_img1_has_correct_attributes</a>&nbsp;&nbsp;
      <a href="#M000776">test_it_can_filter_using_architecture</a>&nbsp;&nbsp;
      <a href="#M000774">test_it_can_filter_using_owner_id</a>&nbsp;&nbsp;
      <a href="#M000777">test_it_can_filter_using_unknown_architecture</a>&nbsp;&nbsp;
      <a href="#M000775">test_it_can_filter_using_unknown_owner_id</a>&nbsp;&nbsp;
      <a href="#M000780">test_it_creates_and_destroys_image_from_instance</a>&nbsp;&nbsp;
      <a href="#M000757">test_it_has_correct_attributes_set</a>&nbsp;&nbsp;
      <a href="#M000769">test_it_has_correct_attributes_set</a>&nbsp;&nbsp;
      <a href="#M000772">test_it_has_unique_ids</a>&nbsp;&nbsp;
      <a href="#M000773">test_it_has_valid_urls</a>&nbsp;&nbsp;
      <a href="#M000767">test_it_require_authentication</a>&nbsp;&nbsp;
      <a href="#M000764">test_it_responses_to_html</a>&nbsp;&nbsp;
      <a href="#M000779">test_it_responses_to_html</a>&nbsp;&nbsp;
      <a href="#M000778">test_it_responses_to_json</a>&nbsp;&nbsp;
      <a href="#M000763">test_it_responses_to_json</a>&nbsp;&nbsp;
      <a href="#M000765">test_it_returns_error_on_wrong_name</a>&nbsp;&nbsp;
      <a href="#M000756">test_it_returns_hardware_profiles</a>&nbsp;&nbsp;
      <a href="#M000768">test_it_returns_images</a>&nbsp;&nbsp;
      <a href="#M000762">test_it_returns_valid_hardware_profile</a>&nbsp;&nbsp;
      <a href="#M000771">test_it_returns_valid_image</a>&nbsp;&nbsp;
      <a href="#M000761">test_m1_xlarge_profile_has_correct_attributes</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->
    <div id="includes">
      <h3 class="section-bar">Included Modules</h3>

      <div id="includes-list">
        <span class="include-name">Rack::Test::Methods</span>
        <span class="include-name">Rack::Test::Methods</span>
      </div>
    </div>

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000755" class="method-detail">
        <a name="M000755"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000755.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000755.html');return false;">
          <span class="method-name">app</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000766" class="method-detail">
        <a name="M000766"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000766.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000766.html');return false;">
          <span class="method-name">app</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000758" class="method-detail">
        <a name="M000758"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000758.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000758.html');return false;">
          <span class="method-name">test_hardware_profiles_have_name</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000760" class="method-detail">
        <a name="M000760"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000760.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000760.html');return false;">
          <span class="method-name">test_hardware_profiles_have_unique_id</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000759" class="method-detail">
        <a name="M000759"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000759.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000759.html');return false;">
          <span class="method-name">test_hardware_profiles_have_unique_name</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000770" class="method-detail">
        <a name="M000770"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000770.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000770.html');return false;">
          <span class="method-name">test_img1_has_correct_attributes</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000776" class="method-detail">
        <a name="M000776"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000776.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000776.html');return false;">
          <span class="method-name">test_it_can_filter_using_architecture</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000774" class="method-detail">
        <a name="M000774"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000774.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000774.html');return false;">
          <span class="method-name">test_it_can_filter_using_owner_id</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000777" class="method-detail">
        <a name="M000777"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000777.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000777.html');return false;">
          <span class="method-name">test_it_can_filter_using_unknown_architecture</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000775" class="method-detail">
        <a name="M000775"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000775.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000775.html');return false;">
          <span class="method-name">test_it_can_filter_using_unknown_owner_id</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000780" class="method-detail">
        <a name="M000780"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000780.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000780.html');return false;">
          <span class="method-name">test_it_creates_and_destroys_image_from_instance</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000757" class="method-detail">
        <a name="M000757"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000757.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000757.html');return false;">
          <span class="method-name">test_it_has_correct_attributes_set</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000769" class="method-detail">
        <a name="M000769"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000769.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000769.html');return false;">
          <span class="method-name">test_it_has_correct_attributes_set</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000772" class="method-detail">
        <a name="M000772"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000772.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000772.html');return false;">
          <span class="method-name">test_it_has_unique_ids</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000773" class="method-detail">
        <a name="M000773"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000773.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000773.html');return false;">
          <span class="method-name">test_it_has_valid_urls</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000767" class="method-detail">
        <a name="M000767"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000767.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000767.html');return false;">
          <span class="method-name">test_it_require_authentication</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000764" class="method-detail">
        <a name="M000764"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000764.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000764.html');return false;">
          <span class="method-name">test_it_responses_to_html</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000779" class="method-detail">
        <a name="M000779"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000779.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000779.html');return false;">
          <span class="method-name">test_it_responses_to_html</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000778" class="method-detail">
        <a name="M000778"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000778.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000778.html');return false;">
          <span class="method-name">test_it_responses_to_json</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000763" class="method-detail">
        <a name="M000763"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000763.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000763.html');return false;">
          <span class="method-name">test_it_responses_to_json</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000765" class="method-detail">
        <a name="M000765"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000765.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000765.html');return false;">
          <span class="method-name">test_it_returns_error_on_wrong_name</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000756" class="method-detail">
        <a name="M000756"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000756.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000756.html');return false;">
          <span class="method-name">test_it_returns_hardware_profiles</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000768" class="method-detail">
        <a name="M000768"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000768.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000768.html');return false;">
          <span class="method-name">test_it_returns_images</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000762" class="method-detail">
        <a name="M000762"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000762.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000762.html');return false;">
          <span class="method-name">test_it_returns_valid_hardware_profile</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000771" class="method-detail">
        <a name="M000771"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000771.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000771.html');return false;">
          <span class="method-name">test_it_returns_valid_image</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000761" class="method-detail">
        <a name="M000761"></a>

        <div class="method-heading">
          <a href="HardwareProfilesTest.src/M000761.html" target="Code" class="method-signature"
            onclick="popupCode('HardwareProfilesTest.src/M000761.html');return false;">
          <span class="method-name">test_m1_xlarge_profile_has_correct_attributes</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>