]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-4814: Added response file for initial imports POST test.
authorAron Roberts <aron@socrates.berkeley.edu>
Tue, 3 Apr 2012 21:59:56 +0000 (14:59 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Tue, 3 Apr 2012 21:59:56 +0000 (14:59 -0700)
services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml
services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-1objectexit-post.res.xml [new file with mode: 0644]

index 4b26bd4017c65511c30e9c3025bb16121f0dc043..f18748973bca81630999b494890352abc2b35e7d 100644 (file)
@@ -2,21 +2,24 @@
 <xmlReplay>
     <auths>
         <!-- IMPORTANT: THESE ARE STICKY :: THEY STICK AROUND UNTIL RESET, IN EXEC ORDER OF THIS FILE. -->
+       <auth ID="admin@core.collectionspace.org">YWRtaW5AY29yZS5jb2xsZWN0aW9uc3BhY2Uub3JnOkFkbWluaXN0cmF0b3I=</auth>
     </auths>
     
    <!-- ================================================================================ -->
     
-   <testGroup ID="importsTestGroup" autoDeletePOSTS="false">
+   <testGroup ID="importsTestGroup" autoDeletePOSTS="true">
 
-        <test ID="import-post"  auth="test">
+        <test ID="import-post">
             <expectedCodes>200</expectedCodes>
             <method>POST</method>
             <uri>/cspace-services/imports</uri>
             <filename>imports/import-1objectexit-post.xml</filename>
+            <response>
+                <expected level="TEXT" />
+                <filename>imports/res/import-1objectexit-post.res.xml</filename>
+             </response>
         </test>
-        
-        <!-- FIXME: Add check of response payload; 200 status is routinely returned -->
-        
+                
         <!-- FIXME: Add forms-based import test -->
         
     </testGroup>
diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-1objectexit-post.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-1objectexit-post.res.xml
new file mode 100644 (file)
index 0000000..7a31240
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<document name="collectionobjects">
+  <ns2:collectionobjects_common
+    xmlns:ns2="http://collectionspace.org/services/collectionobject">
+    <objectNumber>6.0221415</objectNumber>
+  </ns2:collectionobjects_common>
+</document>