]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-4814: Beachhead commit of a passing XmlReplay-based test for POSTs to the...
authorAron Roberts <aron@socrates.berkeley.edu>
Mon, 2 Apr 2012 19:51:04 +0000 (12:51 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Mon, 2 Apr 2012 19:51:04 +0000 (12:51 -0700)
services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-1objectexit-post.xml [new file with mode: 0644]
services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml [new file with mode: 0644]

diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-1objectexit-post.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-1objectexit-post.xml
new file mode 100644 (file)
index 0000000..209ad37
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<imports>
+  <import service="ObjectExit" type="ObjectExit">
+    <schema xmlns:objectexit_common="http://collectionspace.org/services/objectexit" 
+      name="objectexit_common">
+      <exitNote>Sebastián &amp; Barnes</exitNote>
+      <exitNumber>OE2010.2</exitNumber>
+    </schema>
+  </import>
+</imports>
diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml
new file mode 100644 (file)
index 0000000..4b26bd4
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmlReplay>
+    <auths>
+        <!-- IMPORTANT: THESE ARE STICKY :: THEY STICK AROUND UNTIL RESET, IN EXEC ORDER OF THIS FILE. -->
+    </auths>
+    
+   <!-- ================================================================================ -->
+    
+   <testGroup ID="importsTestGroup" autoDeletePOSTS="false">
+
+        <test ID="import-post"  auth="test">
+            <expectedCodes>200</expectedCodes>
+            <method>POST</method>
+            <uri>/cspace-services/imports</uri>
+            <filename>imports/import-1objectexit-post.xml</filename>
+        </test>
+        
+        <!-- FIXME: Add check of response payload; 200 status is routinely returned -->
+        
+        <!-- FIXME: Add forms-based import test -->
+        
+    </testGroup>
+</xmlReplay>
+        
+        
\ No newline at end of file