From: Ray Lee Date: Fri, 22 Jul 2016 03:39:48 +0000 (-0700) Subject: DRYD-22: Add more XmlReplay tests. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=b145827649c1adc48777081c40c48109f9097711;p=tmp%2Fjakarta-migration.git DRYD-22: Add more XmlReplay tests. --- diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/security-oauth.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/security-oauth.xml index f54773b72..38eedc2be 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/security-oauth.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/security-oauth.xml @@ -101,4 +101,28 @@ 200,201 + + + + + POST + application/x-www-form-urlencoded + /cspace-services/oauth/token + security-oauth/password-grant-reader.txt + 200 + + + + GET + /cspace-services/collectionobjects + 200 + + + + POST + /cspace-services/collectionobjects + collectionobject/co1.xml + 403 + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/security-oauth/password-grant-reader.txt b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/security-oauth/password-grant-reader.txt new file mode 100644 index 000000000..b74be9dc5 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/security-oauth/password-grant-reader.txt @@ -0,0 +1 @@ +grant_type=password&username=reader@core.collectionspace.org&password=reader \ No newline at end of file