Making room for request-specific input in the test rspec.
Sapan Bhatia [Thu, 24 Sep 2009 00:52:13 +0000 (00:52 +0000)]
sfatables/test.sfarspec
sfatables/xmlrule.py

index 0b8942f..5a3a36b 100644 (file)
@@ -5,21 +5,7 @@
         <sfa><user><hrn>plc.princeton.sapanb</hrn></user></sfa>
     </request-context>
 
-    <rule-context>
-            <argument>
-                <name>hrn</name>
-                <value>plc</value>
-            </argument>
-            <argument>
-                <name>whitelist</name>
-                <value>plc.princeton</value>
-            </argument>
-            <argument>
-                <name>blacklist</name>
-                <value>plc.tp</value>
-            </argument>
-    </rule-context>
-    <request>
+     <request>
         <nodespec>
             <node name="plc.princeton.planetlab-01"/>
             <node name="plc.princeton.planetlab-02"/>
index 70055dd..fb0ef79 100644 (file)
@@ -34,6 +34,7 @@ class XMLRule:
             p.xpathFreeContext()
         else:
             stylesheet_result = style.saveResultToString(result)
+
         style.freeStylesheet()
         doc.freeDoc()
         result.freeDoc()