Added a test case to test the current set of rules.
authorSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 16 Sep 2009 14:04:30 +0000 (14:04 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 16 Sep 2009 14:04:30 +0000 (14:04 +0000)
sfatables/test.sfarspec [new file with mode: 0644]

diff --git a/sfatables/test.sfarspec b/sfatables/test.sfarspec
new file mode 100644 (file)
index 0000000..db6f075
--- /dev/null
@@ -0,0 +1,32 @@
+<!-- run "runtime.py sfarspec" to apply current rule set to this file -->
+
+<rspec>
+    <request-context>
+        <sfa><user><hrn>plc.princeton.sapanb</hrn></user></sfa>
+    </request-context>
+
+    <sfatables-rule>
+            <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>
+    </sfatables-rule>
+    <request>
+        <nodespec>
+            <node name="plc.princeton.planetlab-01"/>
+            <node name="plc.princeton.planetlab-02"/>
+            <node name="plc.princeton.planetlab-03"/>
+            <node name="plc.princeton.planetlab-04"/>
+            <node name="plc.tp.planetlab3"/>
+        </nodespec>
+    </request>
+</rspec>
+    """