You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2013/03/18 11:20:20 UTC

svn commit: r1457702 [3/3] - in /deltacloud/trunk/site: content/ output/ output/cimi-curl/ output/cimi-rest/

Modified: deltacloud/trunk/site/output/why-update-vcr-test-fixtures-data.html
URL: http://svn.apache.org/viewvc/deltacloud/trunk/site/output/why-update-vcr-test-fixtures-data.html?rev=1457702&r1=1457701&r2=1457702&view=diff
==============================================================================
--- deltacloud/trunk/site/output/why-update-vcr-test-fixtures-data.html (original)
+++ deltacloud/trunk/site/output/why-update-vcr-test-fixtures-data.html Mon Mar 18 10:20:19 2013
@@ -98,11 +98,13 @@
       <p><br></p>
 
 <ul class="breadcrumb">
-<li>
+  <li>
     <a href="white-box-tests.html">White Box Tests?</a> <span class="divider">/</span>
   </li>
   <li class="active">Why Update The VCR Fixtures</li>
-</ul><p>
+</ul>
+
+<p>
 Deltacloud uses pre-recorded <a href="https://github.com/vcr/vcr">VCR</a> YAML
 files called <i>fixtures</i> to allow test execution without the need for a live
 cloud provider.
@@ -137,12 +139,12 @@ test does not yet exercise. <b>For Examp
 </p>
 
 <ul>
-<li>
+  <li>
     <p>
     A bug is fixed in the EC2 driver, where <i>images()</i> method had not work properly.
     </p>
     <ol>
-<li>
+      <li>
         <p>Open <i>tests/drivers/ec2/images_tests.rb</i></p>
       </li>
       <li>
@@ -155,14 +157,14 @@ test does not yet exercise. <b>For Examp
         </pre>
       </li>
     </ol>
-</li>
+  </li>
 
   <li>
     <p>
     Scenario: You added new collection <i>oranges()</i> into RHEV-M driver.
     </p>
     <ol>
-<li>
+      <li>
         <p>Write all driver methods tests here: <i>tests/drivers/rhevm/oranges_tests.rb</i></p>
       </li>
       <li>
@@ -172,7 +174,7 @@ test does not yet exercise. <b>For Examp
         <p>Write all collection operations tests here ^^</p>
       </li>
     </ol>
-</li>
+  </li>
 
   <li>
     <p>
@@ -180,7 +182,7 @@ test does not yet exercise. <b>For Examp
     operation does not provide correct status code. You corrected it.
     </p>
     <ol>
-<li>
+      <li>
         <p>Open 'tests/deltacloud/collections/images_collection_test.rb'</p>
       </li>
       <li>
@@ -193,10 +195,11 @@ test does not yet exercise. <b>For Examp
         <p>Provide the correct value into 'status.must_equal' method</p>
       </li>
     </ol>
-</li>
+  </li>
 
 </ul>
 
+
       <footer class="footer">
         <p class="pull-right"><span class='icon-circle-arrow-up'>&nbsp;</span><a href="#">Back to top</a></p>
         <div class='row'>

Modified: deltacloud/trunk/site/output/write-new-driver.html
URL: http://svn.apache.org/viewvc/deltacloud/trunk/site/output/write-new-driver.html?rev=1457702&r1=1457701&r2=1457702&view=diff
==============================================================================
--- deltacloud/trunk/site/output/write-new-driver.html (original)
+++ deltacloud/trunk/site/output/write-new-driver.html Mon Mar 18 10:20:19 2013
@@ -98,16 +98,19 @@
       <p><br></p>
 
 <ul class="breadcrumb">
-<li>
+  <li>
     <a href="how-to-contribute.html#how">How to contribute?</a> <span class="divider">/</span>
   </li>
   <li class="active">Write a provider driver</li>
-</ul><h3 id="driver">Write a provider driver</h3>
+</ul>
+
+<h3 id="driver">Write a provider driver</h3>
 
 <p>The deltacloud drivers are stored in <strong>deltacloud/server/lib/deltacloud/drivers</strong>.</p>
 
 <ol>
-<li>
+
+  <li>
 
   <p>
   To add a driver for a hypotetical <strong>Foo</strong> cloud, add a directory into /drivers/ and then add a file for a driver itself:
@@ -146,7 +149,9 @@ end
   </p>
   
   </li>
-</ol><p>Thus, your driver for the cloud provider Foo may look like:</p>
+</ol>
+
+<p>Thus, your driver for the cloud provider Foo may look like:</p>
 
 <pre>
 require 'deltacloud/base_driver'
@@ -213,26 +218,30 @@ The voodoo used here (i.e. definition of
 <p>Valid states are:</p>
 
 <ul>
-<li><strong>:begin</strong></li>
+  <li><strong>:begin</strong></li>
   <li><strong>:pending</strong></li>
   <li><strong>:running</strong></li>
   <li><strong>:shutting_down</strong></li>
   <li><strong>:stopped</strong></li>
   <li><strong>:end</strong></li>
-</ul><p>The instance is located in the<strong>:begin</strong> state before being created. Immediately after being destroyed the instance is removed to the <strong>:end</strong> state.</p>
+</ul>
+
+<p>The instance is located in the<strong>:begin</strong> state before being created. Immediately after being destroyed the instance is removed to the <strong>:end</strong> state.</p>
 
 <p>Valid transition actions are:</p>
 
 <ul>
-<li><strong>:stop</strong></li>
+  <li><strong>:stop</strong></li>
   <li><strong>:start</strong></li>
   <li><strong>:reboot</strong></li>
-</ul><p>The action <strong>:automatically</strong> may be used to indicate a tranisition that may occur without an action being triggered (see the example above).</p>
+</ul>
+
+<p>The action <strong>:automatically</strong> may be used to indicate a tranisition that may occur without an action being triggered (see the example above).</p>
 
 <p>You can implement some other methods according to the collections you will be supporting:</p>
 
 <ul>
-<li><strong>hardware_profiles(credentials, opts=nil)</strong></li>
+  <li><strong>hardware_profiles(credentials, opts=nil)</strong></li>
   <li><strong>images(credentials, opts=nil)</strong></li>
   <li><strong>realms(credentials, opts=nil)</strong></li>
   <li><strong>instances(credentials, opts=nil)</strong></li>
@@ -240,7 +249,9 @@ The voodoo used here (i.e. definition of
   <li><strong>reboot_instance(credentials, id)</strong></li>
   <li><strong>stop_instance(credentials, id)</strong></li>
   <li><strong>destroy_instance(credentials, id)</strong></li>
-</ul><p>
+</ul>
+
+<p>
 The <strong>hardware_profiles(...)</strong> method should return an array of HardwareProfile objects. The <strong>opts</strong> hash, if present, must be inspected for <strong>:id</strong> and <strong>:architecture</strong> keys. If these keys are available, the results should be filtered by the value associated with each key. The <strong>filter_on(...)</strong> helper method is used for the filtering and as you can see from existing driver method definitions, is invoked in many of the driver collection methods:
 </p>
 
@@ -325,6 +336,7 @@ $ cucumber ../tests/ec2
   </div>
 </div>
 
+
       <footer class="footer">
         <p class="pull-right"><span class='icon-circle-arrow-up'>&nbsp;</span><a href="#">Back to top</a></p>
         <div class='row'>