]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
DRYD-202: Adding tests for dealing with POSTs to /vocabularies with term items in...
authorremillet <remillet@yahoo.com>
Thu, 18 Jan 2018 00:17:29 +0000 (16:17 -0800)
committerremillet <remillet@yahoo.com>
Thu, 18 Jan 2018 00:17:29 +0000 (16:17 -0800)
services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/PostWithItems/postWithItems-vocab.xml [new file with mode: 0644]
services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/vocabulary.xml

diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/PostWithItems/postWithItems-vocab.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/PostWithItems/postWithItems-vocab.xml
new file mode 100644 (file)
index 0000000..b2e1809
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document name="vocabularies">
+    <ns3:vocabularies_common xmlns:ns3="http://collectionspace.org/services/vocabulary" xmlns:ns2="http://collectionspace.org/services/jaxb">
+        <displayName>PostWithItems Vocabulary</displayName>
+        <shortIdentifier>postwithitems</shortIdentifier>
+        <description>This is a test vocabulary created in the PostWithItems XMLReplay test group</description>
+        <source>Some mythical book posted with item terms</source>
+    </ns3:vocabularies_common>
+    <ns2:abstract-common-list xmlns:ns2="http://collectionspace.org/services/jaxb">
+        <list-item>
+            <proposed>true</proposed>
+            <order>1</order>
+            <displayName>PostWithItems item PostWithItems1</displayName>
+            <shortIdentifier>PostWithItems1</shortIdentifier>
+        </list-item>
+        <list-item>
+            <proposed>true</proposed>
+            <order>2</order>
+            <displayName>PostWithItems item PostWithItems2</displayName>
+            <shortIdentifier>ShowItemsItem2</shortIdentifier>
+        </list-item>
+        <list-item>
+            <order>3</order>
+            <displayName>PostWithItems item PostWithItems3</displayName>
+            <shortIdentifier>PostWithItems3</shortIdentifier>
+        </list-item>
+    </ns2:abstract-common-list>
+</document>
index 92924270fcad1a141a5ffe46dd894771164fd130..b91cce90feb59c8bab22391892fccf16821600ea 100644 (file)
@@ -6,10 +6,22 @@
                <auth ID="testAdministator">YWRtaW5AY29sbGVjdGlvbnNwYWNlLm9yZzpBZG1pbmlzdHJhdG9y</auth>
        </auths>
     
-    <!-- This test group tests the "showItems" query param that can be sent to the /vocabularies/${id} endpoint.
+    <!--
+          Test creation of Vocabulary (TermList) that includes (via an abstract-common-list element) term items.
+       -->
+    <testGroup ID="PostWithItems" autoDeletePOSTS="true">
+        <test ID="createPostWithItems">
+            <method>POST</method>
+            <uri>/cspace-services/vocabularies/</uri>
+            <filename>vocabulary/PostWithItems/postWithItems-vocab.xml</filename>            
+        </test>
+    </testGroup>
+    
+    <!--
+        This test group tests the "showItems" query param that can be sent to the /vocabularies/${id} endpoint.
         The "showItems=true" query param adds all the vocabularies items to the returned payload.
     -->
-    <testGroup ID="TestShowItems" autoDeletePOSTS="true">
+    <testGroup ID="ShowItems" autoDeletePOSTS="true">
         <test ID="createShowItemsVocab">
             <method>POST</method>
             <uri>/cspace-services/vocabularies/</uri>
         </test>
     </testGroup>
        
+       <!--
+          Comments needed to describe this test group.
+       -->
     <testGroup ID="TestOrder" autoDeletePOSTS="true">
                <!-- The purpose of this testGroup is to test the new "order" field
              that was added in http://issues.collectionspace.org/browse/CSPACE-573