Ignore:
Timestamp:
29/09/08 16:05:29 (11 years ago)
Author:
pjkersha
Message:

Working unit tests for WSGI based Attribute Authority.

  • Altered so that all Attribute Config is picked up from the Paste ini file. Separate cfg or xml based config file is still supported.

TODO:

  • Simplify unit test config for client.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/documentation/epydoc/ndg.security.server.MyProxy.CmdLineClient-class.html

    r3153 r4245  
    6060</table> 
    6161<!-- ==================== CLASS DESCRIPTION ==================== --> 
    62 <h1 class="epydoc">Class CmdLineClient</h1><span class="codelink"><a href="ndg.security.server.MyProxy-pysrc.html#CmdLineClient">source&nbsp;code</a></span><br /><br /> 
     62<h1 class="epydoc">Class CmdLineClient</h1><p class="nomargin-top"><span class="codelink"><a href="ndg.security.server.MyProxy-pysrc.html#CmdLineClient">source&nbsp;code</a></span></p> 
    6363<center> 
    64 <center>  <map id="uml_class_diagram_for_ndg_secu_143" name="uml_class_diagram_for_ndg_secu_143"> 
    65 <area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html" title="Command line interface to MyProxyClient class." alt="" coords="15,11,67,27"/> 
     64<center>  <map id="uml_class_diagram_for_ndg_secu_200" name="uml_class_diagram_for_ndg_secu_200"> 
     65<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#run" title="ndg.security.server.MyProxy.CmdLineClient.run" alt="" coords="17,28,188,47"/> 
     66<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#initOpts" title="ndg.security.server.MyProxy.CmdLineClient.initOpts" alt="" coords="17,47,188,66"/> 
     67<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#cmdUsage" title="ndg.security.server.MyProxy.CmdLineClient.cmdUsage" alt="" coords="17,66,188,84"/> 
     68<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#usage" title="ndg.security.server.MyProxy.CmdLineClient.usage" alt="" coords="17,84,188,103"/> 
     69<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#version" title="ndg.security.server.MyProxy.CmdLineClient.version" alt="" coords="17,103,188,122"/> 
     70<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#__init__" title="Parse the command line and run the appropriate command" alt="" coords="17,124,188,143"/> 
     71<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#runGetDelegation" title="Call MyProxyClient.getDelegation" alt="" coords="17,143,188,162"/> 
     72<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#runLogon" title="Call MyProxyClient.logon" alt="" coords="17,162,188,180"/> 
     73<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#runChangePassphrase" title="Call MyProxyClient.changePassphrase" alt="" coords="17,180,188,199"/> 
     74<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#runInfo" title="Call MyProxyClient.info" alt="" coords="17,199,188,218"/> 
     75<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#runDestroy" title="Call MyProxyClient.destroy" alt="" coords="17,218,188,236"/> 
     76<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html#runStore" title="ndg.security.server.MyProxy.CmdLineClient.runStore" alt="" coords="17,236,188,255"/> 
     77<area shape="rect" href="ndg.security.server.MyProxy.CmdLineClient&#45;class.html" title="Command line interface to MyProxyClient class." alt="" coords="16,11,189,256"/> 
    6678</map> 
    67   <img src="uml_class_diagram_for_ndg_secu_143.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_143" ismap="ismap" class="graph-without-title" /> 
    68 </center></center> 
     79  <img src="uml_class_diagram_for_ndg_secu_200.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_200" ismap="ismap" class="graph-without-title" /> 
     80</center> 
     81</center> 
    6982<hr /> 
    70 Command line interface to MyProxyClient class.  Where possible it  
    71   supports the same options as the Globus myproxy-* client commands<br /><br /> 
     83<p>Command line interface to MyProxyClient class.  Where possible it  
     84  supports the same options as the Globus myproxy-* client commands</p> 
    7285 
    7386<!-- ==================== INSTANCE METHODS ==================== --> 
     
    362375      <span class="summary-type">&nbsp;</span> 
    363376    </td><td class="summary"> 
    364         <a href="ndg.security.server.MyProxy.CmdLineClient-class.html#run" class="summary-name">run</a> = <code title="{'change-pass': 'runChangePassphrase', 
    365  'destroy': 'runDestroy', 
    366  'get-delegation': 'runGetDelegation', 
    367  'info': 'runInfo', 
    368  'logon': 'runLogon', 
    369  'store': 'runStore'}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">change-pass</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">runChangePassphrase</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">destroy</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">runDe</code><code class="variable-ellipsis">...</code></code> 
    370     </td> 
    371   </tr> 
    372 <tr> 
    373     <td width="15%" align="right" valign="top" class="summary"> 
    374       <span class="summary-type">&nbsp;</span> 
    375     </td><td class="summary"> 
    376         <a href="ndg.security.server.MyProxy.CmdLineClient-class.html#initOpts" class="summary-name">initOpts</a> = <code title="{'change-pass': '_addChangePassphraseOpts', 
    377  'destroy': '_addDestroyOpts', 
    378  'get-delegation': '_addGetDelegationOpts', 
    379  'info': '_addInfoOpts', 
    380  'logon': '_addLogonOpts', 
    381  'store': '_addStoreOpts'}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">change-pass</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">_addChangePassphraseOpts</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">destro</code><code class="variable-ellipsis">...</code></code> 
    382     </td> 
    383   </tr> 
    384 <tr> 
    385     <td width="15%" align="right" valign="top" class="summary"> 
    386       <span class="summary-type">&nbsp;</span> 
    387     </td><td class="summary"> 
    388         <a href="ndg.security.server.MyProxy.CmdLineClient-class.html#cmdUsage" class="summary-name">cmdUsage</a> = <code title="{'change-pass': 'usage: %prog change-pass arg1 arg2', 
    389  'destroy': 'usage: %prog destroy arg1 arg2', 
    390  'get-delegation': 'usage: %prog get-delegation arg1 arg2', 
    391  'info': 'usage: %prog info arg1 arg2', 
    392  'logon': 'usage: %prog logon arg1 arg2', 
    393  'store': 'usage: %prog store arg1 arg2'}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">change-pass</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">usage: %prog change-pass arg1 arg2</code><code class="variable-ellipsis">...</code></code> 
    394     </td> 
    395   </tr> 
    396 <tr> 
    397     <td width="15%" align="right" valign="top" class="summary"> 
    398       <span class="summary-type">&nbsp;</span> 
    399     </td><td class="summary"> 
    400         <a href="ndg.security.server.MyProxy.CmdLineClient-class.html#usage" class="summary-name">usage</a> = <code title="'usage: %prog [info|get-delegation|change-pass|destroy|logon|store] ar\ 
    401 g1 arg2'"><code class="variable-quote">'</code><code class="variable-string">usage: %prog [info|get-delegation|change-pass|destroy</code><code class="variable-ellipsis">...</code></code> 
    402     </td> 
    403   </tr> 
    404 <tr> 
    405     <td width="15%" align="right" valign="top" class="summary"> 
    406       <span class="summary-type">&nbsp;</span> 
    407     </td><td class="summary"> 
    408         <a name="version"></a><span class="summary-name">version</span> = <code title="'%prog 0.8.7'"><code class="variable-quote">'</code><code class="variable-string">%prog 0.8.7</code><code class="variable-quote">'</code></code> 
     377        <a href="ndg.security.server.MyProxy.CmdLineClient-class.html#run" class="summary-name">run</a> = <code title="{'info': 'runInfo', 'logon': 'runLogon', 'get-delegation': 'runGetDele\ 
     378gation', 'destroy': 'runDestroy', 'change-pass': 'runChangePassphrase'\ 
     379, 'store': 'runStore'}">{'info': 'runInfo', 'logon': 'runLogon', 'get-delegation<code class="variable-ellipsis">...</code></code> 
     380    </td> 
     381  </tr> 
     382<tr> 
     383    <td width="15%" align="right" valign="top" class="summary"> 
     384      <span class="summary-type">&nbsp;</span> 
     385    </td><td class="summary"> 
     386        <a href="ndg.security.server.MyProxy.CmdLineClient-class.html#initOpts" class="summary-name">initOpts</a> = <code title="{'info': '_addInfoOpts', 'logon': '_addLogonOpts', 'get-delegation': '\ 
     387_addGetDelegationOpts', 'destroy': '_addDestroyOpts', 'change-pass': '\ 
     388_addChangePassphraseOpts', 'store': '_addStoreOpts'}">{'info': '_addInfoOpts', 'logon': '_addLogonOpts', <code class="variable-ellipsis">...</code></code> 
     389    </td> 
     390  </tr> 
     391<tr> 
     392    <td width="15%" align="right" valign="top" class="summary"> 
     393      <span class="summary-type">&nbsp;</span> 
     394    </td><td class="summary"> 
     395        <a href="ndg.security.server.MyProxy.CmdLineClient-class.html#cmdUsage" class="summary-name">cmdUsage</a> = <code title="{'info': &quot;usage: %prog info arg1 arg2&quot;, 'logon': &quot;usage: %prog logon a\ 
     396rg1 arg2&quot;, 'get-delegation': &quot;usage: %prog get-delegation arg1 arg2&quot;, \ 
     397'destroy': &quot;usage: %prog destroy arg1 arg2&quot;, 'change-pass': &quot;usage: %p\ 
     398rog change-pass arg1 arg2&quot;, 'store': &quot;usage: %prog store arg1 arg2&quot;}">{'info': &quot;usage: %prog info arg1 arg2&quot;, 'logon': &quot;u<code class="variable-ellipsis">...</code></code> 
     399    </td> 
     400  </tr> 
     401<tr> 
     402    <td width="15%" align="right" valign="top" class="summary"> 
     403      <span class="summary-type">&nbsp;</span> 
     404    </td><td class="summary"> 
     405        <a name="usage"></a><span class="summary-name">usage</span> = <code title="&quot;usage: %prog&quot;+ &quot; [%s] arg1 arg2&quot; % '|'.join(run.keys())">&quot;usage: %prog&quot;+ &quot; [%s] arg1 arg2&quot; % '|'.join(run.keys())</code> 
     406    </td> 
     407  </tr> 
     408<tr> 
     409    <td width="15%" align="right" valign="top" class="summary"> 
     410      <span class="summary-type">&nbsp;</span> 
     411    </td><td class="summary"> 
     412        <a name="version"></a><span class="summary-name">version</span> = <code title="&quot;%prog 0.8.7&quot;">&quot;%prog 0.8.7&quot;</code> 
    409413    </td> 
    410414  </tr> 
     
    466470    ><span class="codelink"><a href="ndg.security.server.MyProxy-pysrc.html#CmdLineClient.__init__">source&nbsp;code</a></span>&nbsp; 
    467471    </td> 
    468   </table> 
     472  </tr></table> 
    469473   
    470   Parse the command line and run the appropriate command 
     474  <p>Parse the command line and run the appropriate command</p> 
    471475  <dl class="fields"> 
    472476    <dt>Overrides: 
    473       object.__init__ 
     477        object.__init__ 
    474478    </dt> 
    475479  </dl> 
     
    507511    <dt>Value:</dt> 
    508512      <dd><table><tr><td><pre class="variable"> 
    509 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">change-pass</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">runChangePassphrase</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    510  <code class="variable-quote">'</code><code class="variable-string">destroy</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">runDestroy</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    511  <code class="variable-quote">'</code><code class="variable-string">get-delegation</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">runGetDelegation</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    512  <code class="variable-quote">'</code><code class="variable-string">info</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">runInfo</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    513  <code class="variable-quote">'</code><code class="variable-string">logon</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">runLogon</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    514  <code class="variable-quote">'</code><code class="variable-string">store</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">runStore</code><code class="variable-quote">'</code><code class="variable-group">}</code> 
     513{'info': 'runInfo', 'logon': 'runLogon', 'get-delegation': 'runGetDele<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     514gation', 'destroy': 'runDestroy', 'change-pass': 'runChangePassphrase'<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     515, 'store': 'runStore'} 
    515516</pre></td></tr></table> 
    516517</dd> 
     
    530531    <dt>Value:</dt> 
    531532      <dd><table><tr><td><pre class="variable"> 
    532 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">change-pass</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">_addChangePassphraseOpts</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    533  <code class="variable-quote">'</code><code class="variable-string">destroy</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">_addDestroyOpts</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    534  <code class="variable-quote">'</code><code class="variable-string">get-delegation</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">_addGetDelegationOpts</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    535  <code class="variable-quote">'</code><code class="variable-string">info</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">_addInfoOpts</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    536  <code class="variable-quote">'</code><code class="variable-string">logon</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">_addLogonOpts</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    537  <code class="variable-quote">'</code><code class="variable-string">store</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">_addStoreOpts</code><code class="variable-quote">'</code><code class="variable-group">}</code> 
     533{'info': '_addInfoOpts', 'logon': '_addLogonOpts', 'get-delegation': '<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     534_addGetDelegationOpts', 'destroy': '_addDestroyOpts', 'change-pass': '<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     535_addChangePassphraseOpts', 'store': '_addStoreOpts'} 
    538536</pre></td></tr></table> 
    539537</dd> 
     
    553551    <dt>Value:</dt> 
    554552      <dd><table><tr><td><pre class="variable"> 
    555 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">change-pass</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">usage: %prog change-pass arg1 arg2</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    556  <code class="variable-quote">'</code><code class="variable-string">destroy</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">usage: %prog destroy arg1 arg2</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    557  <code class="variable-quote">'</code><code class="variable-string">get-delegation</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">usage: %prog get-delegation arg1 arg2</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    558  <code class="variable-quote">'</code><code class="variable-string">info</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">usage: %prog info arg1 arg2</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    559  <code class="variable-quote">'</code><code class="variable-string">logon</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">usage: %prog logon arg1 arg2</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    560  <code class="variable-quote">'</code><code class="variable-string">store</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">usage: %prog store arg1 arg2</code><code class="variable-quote">'</code><code class="variable-group">}</code> 
    561 </pre></td></tr></table> 
    562 </dd> 
    563   </dl> 
    564 </td></tr></table> 
    565 </div> 
    566 <a name="usage"></a> 
    567 <div> 
    568 <table class="details" border="1" cellpadding="3" 
    569        cellspacing="0" width="100%" bgcolor="white"> 
    570 <tr><td> 
    571   <h3 class="epydoc">usage</h3> 
    572    
    573   <dl class="fields"> 
    574   </dl> 
    575   <dl class="fields"> 
    576     <dt>Value:</dt> 
    577       <dd><table><tr><td><pre class="variable"> 
    578 <code class="variable-quote">'</code><code class="variable-string">usage: %prog [info|get-delegation|change-pass|destroy|logon|store] ar</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
    579 <code class="variable-string">g1 arg2</code><code class="variable-quote">'</code> 
     553{'info': &quot;usage: %prog info arg1 arg2&quot;, 'logon': &quot;usage: %prog logon a<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     554rg1 arg2&quot;, 'get-delegation': &quot;usage: %prog get-delegation arg1 arg2&quot;, <span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     555'destroy': &quot;usage: %prog destroy arg1 arg2&quot;, 'change-pass': &quot;usage: %p<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     556rog change-pass arg1 arg2&quot;, 'store': &quot;usage: %prog store arg1 arg2&quot;} 
    580557</pre></td></tr></table> 
    581558</dd> 
     
    616593    <td align="left" class="footer"> 
    617594    <a href="epydoc-log.html">Generated by Epydoc 
    618     3.0beta1 on Mon Dec 17 09:22:47 2007</a> 
     595    3.0.1 on Mon Sep  1 11:59:19 2008</a> 
    619596    </td> 
    620597    <td align="right" class="footer"> 
    621       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> 
     598      <a target="mainFrame" href="http://epydoc.sourceforge.net" 
     599        >http://epydoc.sourceforge.net</a> 
    622600    </td> 
    623601  </tr> 
     
    630608  // visible); but by default, we want to hide them.  So hide 
    631609  // them unless we have a cookie that says to show them. 
    632   checkCookie() 
     610  checkCookie(); 
    633611  // --> 
    634612</script> 
    635    
    636613</body> 
    637614</html> 
Note: See TracChangeset for help on using the changeset viewer.