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.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html

    r3153 r4245  
    6161</table> 
    6262<!-- ==================== CLASS DESCRIPTION ==================== --> 
    63 <h1 class="epydoc">Class CertificateAuthorityService</h1><span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService">source&nbsp;code</a></span><br /><br /> 
     63<h1 class="epydoc">Class CertificateAuthorityService</h1><p class="nomargin-top"><span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService">source&nbsp;code</a></span></p> 
    6464<center> 
    65 <center>  <map id="uml_class_diagram_for_ndg_secu_160" name="uml_class_diagram_for_ndg_secu_160"> 
    66 <area shape="rect" href="javascript: void(0);" title="Binding defines the set of wsdl:binding operations, it takes as input a ParsedSoap instance and parses it into a pyobj." alt="" coords="15,56,67,72"/> 
    67 <area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService" alt="" coords="15,101,67,117"/> 
    68 <area shape="rect" href="javascript: void(0);" title="Defines the interface for use with ServiceContainer Handlers." alt="" coords="15,11,67,27"/> 
     65<center>  <map id="uml_class_diagram_for_ndg_secu_219" name="uml_class_diagram_for_ndg_secu_219"> 
     66<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceInterface.wsAction" alt="" coords="32,28,259,46"/> 
     67<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceInterface.__str__" alt="" coords="32,49,259,68"/> 
     68<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceInterface.sign" alt="" coords="32,68,259,86"/> 
     69<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceInterface.verify" alt="" coords="32,86,259,105"/> 
     70<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceInterface.getPost" alt="" coords="32,105,259,124"/> 
     71<area shape="rect" href="javascript:void(0);" title="Returns a method of class." alt="" coords="32,124,259,142"/> 
     72<area shape="rect" href="javascript:void(0);" title="Returns operation name." alt="" coords="32,142,259,161"/> 
     73<area shape="rect" href="javascript:void(0);" title="Defines the interface for use with ServiceContainer Handlers." alt="" coords="31,10,260,162"/> 
     74<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceSOAPBinding.__call___" alt="" coords="17,217,273,236"/> 
     75<area shape="rect" href="javascript:void(0);" title="Binding defines the set of wsdl:binding operations, it takes as input a ParsedSoap instance and parses it into a pyobj." alt="" coords="16,192,275,237"/> 
     76<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#soapAction" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.soapAction" alt="" coords="32,284,259,302"/> 
     77<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#root" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.root" alt="" coords="32,302,259,321"/> 
     78<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#__init__" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.__init__" alt="" coords="32,324,259,342"/> 
     79<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#authorize" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.authorize" alt="" coords="32,342,259,361"/> 
     80<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#soap_issueCert" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.soap_issueCert" alt="" coords="32,361,259,380"/> 
     81<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#soap_revokeCert" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.soap_revokeCert" alt="" coords="32,380,259,398"/> 
     82<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#soap_getCRL" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.soap_getCRL" alt="" coords="32,398,259,417"/> 
     83<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService" alt="" coords="31,266,260,418"/> 
    6984</map> 
    70   <img src="uml_class_diagram_for_ndg_secu_160.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_160" ismap="ismap" class="graph-without-title" /> 
    71 </center></center> 
     85  <img src="uml_class_diagram_for_ndg_secu_219.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_219" ismap="ismap" class="graph-without-title" /> 
     86</center> 
     87</center> 
    7288<hr /> 
    7389<!-- ==================== INSTANCE METHODS ==================== --> 
     
    95111        <tr> 
    96112          <td><span class="summary-sig"><a href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>, 
    97         <span class="summary-sig-arg">post</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>, 
     113        <span class="summary-sig-arg">post</span>=<span class="summary-sig-default">''</span>, 
    98114        <span class="summary-sig-arg">**kw</span>)</span></td> 
    99115          <td align="right" valign="top"> 
     
    213229      <span class="summary-type">&nbsp;</span> 
    214230    </td><td class="summary"> 
    215         <a href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html#soapAction" class="summary-name">soapAction</a> = <code title="{'getCRL': 'soap_getCRL', 
    216  'issueCert': 'soap_issueCert', 
    217  'revokeCert': 'soap_revokeCert'}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">getCRL</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">soap_getCRL</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">issueCert</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">soap_issu</code><code class="variable-ellipsis">...</code></code> 
    218     </td> 
    219   </tr> 
    220 <tr> 
    221     <td width="15%" align="right" valign="top" class="summary"> 
    222       <span class="summary-type">&nbsp;</span> 
    223     </td><td class="summary"> 
    224         <a href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html#root" class="summary-name">root</a> = <code title="{('urn:ndg:security:ca', 'getCRL'): 'soap_getCRL', 
    225  ('urn:ndg:security:ca', 'issueCert'): 'soap_issueCert', 
    226  ('urn:ndg:security:ca', 'revokeCert'): 'soap_revokeCert'}"><code class="variable-group">{</code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">urn:ndg:security:ca</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">getCRL</code><code class="variable-quote">'</code><code class="variable-group">)</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">soap_getCRL</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">ur</code><code class="variable-ellipsis">...</code></code> 
     231        <a name="soapAction"></a><span class="summary-name">soapAction</span> = <code title="{}">{}</code> 
     232    </td> 
     233  </tr> 
     234<tr> 
     235    <td width="15%" align="right" valign="top" class="summary"> 
     236      <span class="summary-type">&nbsp;</span> 
     237    </td><td class="summary"> 
     238        <a name="root"></a><span class="summary-name">root</span> = <code title="{}">{}</code> 
    227239    </td> 
    228240  </tr> 
     
    231243      <span class="summary-type">&nbsp;</span> 
    232244    </td><td class="summary"> 
    233         <a href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html#_wsdl" class="summary-name">_wsdl</a> = <code title="'''&lt;?xml version=&quot;1.0&quot; ?&gt; 
    234 &lt;wsdl:definitions name=&quot;CertificateAuthority&quot; targetNamespace=&quot;urn:ndg\ 
    235 :security:ca&quot; xmlns=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:http=&quot;htt\ 
    236 p://schemas.xmlsoap.org/wsdl/http/&quot; xmlns:soap=&quot;http://schemas.xmlsoap\ 
    237 .org/wsdl/soap/&quot; xmlns:soapenc=&quot;http://schemas.xmlsoap.org/soap/encodi\ 
    238 ng/&quot; xmlns:tns=&quot;urn:ndg:security:ca&quot; xmlns:wsdl=&quot;http://schemas.xmlsoa\ 
    239 p.org/wsdl/&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt; 
    240  
    241 ..."><code class="variable-quote">'</code><code class="variable-string">&lt;?xml version=&quot;1.0&quot; ?&gt;\n&lt;wsdl:definitions name=&quot;Certi</code><code class="variable-ellipsis">...</code></code> 
     245        <a href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html#_wsdl" class="summary-name" onclick="show_private();">_wsdl</a> = <code title="&quot;&quot;&quot;&lt;?xml version=\&quot;1.0\&quot; ?&gt; 
     246&lt;wsdl:definitions name=\&quot;CertificateAuthority\&quot; targetNamespace=\&quot;urn:\ 
     247ndg:security:ca\&quot; xmlns=\&quot;http://schemas.xmlsoap.org/wsdl/\&quot; xmlns:htt\ 
     248p=\&quot;http://schemas.xmlsoap.org/wsdl/http/\&quot; xmlns:soap=\&quot;http://schema\ 
     249s.xmlsoap.org/wsdl/soap/\&quot; xmlns:soapenc=\&quot;http://schemas.xmlsoap.org/\ 
     250soap/encoding/\&quot; xmlns:tns=\&quot;urn:ndg:security:ca\&quot; xmlns:wsdl=\&quot;http:/\ 
     251/schemas.xmlsoap.org/wsdl/\&quot; xmlns:xsd=\&quot;http://www.w3.org/2001/XMLSch\ 
     252ema\&quot;&gt; 
     253...">&quot;&quot;&quot;&lt;?xml version=\&quot;1.0\&quot;<code class="variable-ellipsis">...</code></code> 
    242254    </td> 
    243255  </tr> 
     
    276288  <tr valign="top"><td> 
    277289  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>, 
    278         <span class="sig-arg">post</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>, 
     290        <span class="sig-arg">post</span>=<span class="sig-default">''</span>, 
    279291        <span class="sig-arg">**kw</span>)</span> 
    280292    <br /><em class="fname">(Constructor)</em> 
     
    283295    ><span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService.__init__">source&nbsp;code</a></span>&nbsp; 
    284296    </td> 
    285   </table> 
     297  </tr></table> 
    286298   
    287299   
    288300  <dl class="fields"> 
    289301    <dt>Overrides: 
    290       ZSI.ServiceContainer.ServiceSOAPBinding.__init__ 
     302        ZSI.ServiceContainer.ServiceInterface.__init__ 
    291303    </dt> 
    292304  </dl> 
     
    308320    ><span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService.authorize">source&nbsp;code</a></span>&nbsp; 
    309321    </td> 
    310   </table> 
     322  </tr></table> 
    311323   
    312324   
    313325  <dl class="fields"> 
    314326    <dt>Overrides: 
    315       ZSI.ServiceContainer.ServiceInterface.authorize 
     327        ZSI.ServiceContainer.ServiceInterface.authorize 
    316328    </dt> 
    317329  </dl> 
     
    337349</tr> 
    338350</table> 
    339 <a name="soapAction"></a> 
    340 <div> 
    341 <table class="details" border="1" cellpadding="3" 
    342        cellspacing="0" width="100%" bgcolor="white"> 
    343 <tr><td> 
    344   <h3 class="epydoc">soapAction</h3> 
    345    
    346   <dl class="fields"> 
    347   </dl> 
    348   <dl class="fields"> 
    349     <dt>Value:</dt> 
    350       <dd><table><tr><td><pre class="variable"> 
    351 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">getCRL</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">soap_getCRL</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    352  <code class="variable-quote">'</code><code class="variable-string">issueCert</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">soap_issueCert</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    353  <code class="variable-quote">'</code><code class="variable-string">revokeCert</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">soap_revokeCert</code><code class="variable-quote">'</code><code class="variable-group">}</code> 
    354 </pre></td></tr></table> 
    355 </dd> 
    356   </dl> 
    357 </td></tr></table> 
    358 </div> 
    359 <a name="root"></a> 
    360 <div> 
    361 <table class="details" border="1" cellpadding="3" 
    362        cellspacing="0" width="100%" bgcolor="white"> 
    363 <tr><td> 
    364   <h3 class="epydoc">root</h3> 
    365    
    366   <dl class="fields"> 
    367   </dl> 
    368   <dl class="fields"> 
    369     <dt>Value:</dt> 
    370       <dd><table><tr><td><pre class="variable"> 
    371 <code class="variable-group">{</code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">urn:ndg:security:ca</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">getCRL</code><code class="variable-quote">'</code><code class="variable-group">)</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">soap_getCRL</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    372  <code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">urn:ndg:security:ca</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">issueCert</code><code class="variable-quote">'</code><code class="variable-group">)</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">soap_issueCert</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    373  <code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">urn:ndg:security:ca</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">revokeCert</code><code class="variable-quote">'</code><code class="variable-group">)</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">soap_revokeCert</code><code class="variable-quote">'</code><code class="variable-group">}</code> 
    374 </pre></td></tr></table> 
    375 </dd> 
    376   </dl> 
    377 </td></tr></table> 
    378 </div> 
    379351<a name="_wsdl"></a> 
    380352<div class="private"> 
     
    389361    <dt>Value:</dt> 
    390362      <dd><table><tr><td><pre class="variable"> 
    391 <code class="variable-quote">'''</code><code class="variable-string">&lt;?xml version=&quot;1.0&quot; ?&gt;</code> 
    392 <code class="variable-string">&lt;wsdl:definitions name=&quot;CertificateAuthority&quot; targetNamespace=&quot;urn:ndg</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
    393 <code class="variable-string">:security:ca&quot; xmlns=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:http=&quot;htt</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
    394 <code class="variable-string">p://schemas.xmlsoap.org/wsdl/http/&quot; xmlns:soap=&quot;http://schemas.xmlsoap</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
    395 <code class="variable-string">.org/wsdl/soap/&quot; xmlns:soapenc=&quot;http://schemas.xmlsoap.org/soap/encodi</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
    396 <code class="variable-string">ng/&quot; xmlns:tns=&quot;urn:ndg:security:ca&quot; xmlns:wsdl=&quot;http://schemas.xmlsoa</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
    397 <code class="variable-string">p.org/wsdl/&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;</code> 
    398 <code class="variable-string"></code> 
     363&quot;&quot;&quot;&lt;?xml version=\&quot;1.0\&quot; ?&gt; 
     364&lt;wsdl:definitions name=\&quot;CertificateAuthority\&quot; targetNamespace=\&quot;urn:<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     365ndg:security:ca\&quot; xmlns=\&quot;http://schemas.xmlsoap.org/wsdl/\&quot; xmlns:htt<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     366p=\&quot;http://schemas.xmlsoap.org/wsdl/http/\&quot; xmlns:soap=\&quot;http://schema<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     367s.xmlsoap.org/wsdl/soap/\&quot; xmlns:soapenc=\&quot;http://schemas.xmlsoap.org/<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     368soap/encoding/\&quot; xmlns:tns=\&quot;urn:ndg:security:ca\&quot; xmlns:wsdl=\&quot;http:/<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     369/schemas.xmlsoap.org/wsdl/\&quot; xmlns:xsd=\&quot;http://www.w3.org/2001/XMLSch<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     370ema\&quot;&gt; 
    399371<code class="variable-ellipsis">...</code> 
    400372</pre></td></tr></table> 
     
    436408    <td align="left" class="footer"> 
    437409    <a href="epydoc-log.html">Generated by Epydoc 
    438     3.0beta1 on Mon Dec 17 09:22:48 2007</a> 
     410    3.0.1 on Thu Sep  4 09:37:50 2008</a> 
    439411    </td> 
    440412    <td align="right" class="footer"> 
    441       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> 
     413      <a target="mainFrame" href="http://epydoc.sourceforge.net" 
     414        >http://epydoc.sourceforge.net</a> 
    442415    </td> 
    443416  </tr> 
     
    450423  // visible); but by default, we want to hide them.  So hide 
    451424  // them unless we have a cookie that says to show them. 
    452   checkCookie() 
     425  checkCookie(); 
    453426  // --> 
    454427</script> 
    455    
    456428</body> 
    457429</html> 
Note: See TracChangeset for help on using the changeset viewer.