From: remillet Date: Fri, 26 Jan 2018 06:07:31 +0000 (-0800) Subject: DRYD-202: Misc bug fixes to term-list payloads in PUT requests to vocab resources. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=cd862e509efcb32ef2e9617dcf66ad0faf7a53e4;p=tmp%2Fjakarta-migration.git DRYD-202: Misc bug fixes to term-list payloads in PUT requests to vocab resources. --- 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 index 4bb5382f2..8b4e4b7b8 100644 --- 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 @@ -20,7 +20,7 @@ 3 PostWithItems item PostWithItems3 - PostWithItems3 + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/PostWithItems/vocab-Item-no-shortid.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/PostWithItems/vocab-Item-no-shortid.xml new file mode 100644 index 000000000..76fdc7839 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/PostWithItems/vocab-Item-no-shortid.xml @@ -0,0 +1,10 @@ + + + + ${displayName} + ${order} + This is a test vocabulary item for test ${Test.ID} + Some mythical book for test ${Test.ID} + The page should match the order:${order} + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/UpdateAddDeleteVocabItems/responses/updateAddDeleteVocabItems.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/UpdateAddDeleteVocabItems/responses/updateAddDeleteVocabItems.res.xml index fba9c64d9..eae901339 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/UpdateAddDeleteVocabItems/responses/updateAddDeleteVocabItems.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/UpdateAddDeleteVocabItems/responses/updateAddDeleteVocabItems.res.xml @@ -48,16 +48,12 @@ addeditemb - - urn:cspace:testsci.collectionspace.org:vocabularies:name(createUpdateAddDeleteVocabItems):item:name(addeditemc)'Added item C' - project 0 false true 4 Added item C - addeditemc diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/UpdateAddDeleteVocabItems/updateAddDeleteWithItems-vocab.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/UpdateAddDeleteVocabItems/updateAddDeleteWithItems-vocab.xml index 6128aceac..429008025 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/UpdateAddDeleteVocabItems/updateAddDeleteWithItems-vocab.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/UpdateAddDeleteVocabItems/updateAddDeleteWithItems-vocab.xml @@ -8,9 +8,11 @@ + ${item301csid} 1 Updated createItem301 createItem301 + inactive 2 @@ -25,7 +27,7 @@ 4 Added item C - addeditemc + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/vocabulary.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/vocabulary.xml index b02a86342..740711e35 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/vocabulary.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/vocabulary/vocabulary.xml @@ -196,6 +196,9 @@ PUT /cspace-services/vocabularies/${createUpdateAddDeleteVocabItems.CSID}?omittedItemAction=delete vocabulary/UpdateAddDeleteVocabItems/updateAddDeleteWithItems-vocab.xml + + ${createItem301.CSID} + GET @@ -387,6 +390,15 @@ /cspace-services/vocabularies/ vocabulary/PostWithItems/postWithItems-vocab.xml + + POST + /cspace-services/vocabularies/${createPostWithItems.CSID}/items/ + vocabulary/PostWithItems/vocab-Item-no-shortid.xml + + 4 + TestOrder item ${itemID} order ${order} + +