From b145827649c1adc48777081c40c48109f9097711 Mon Sep 17 00:00:00 2001 From: Ray Lee Date: Thu, 21 Jul 2016 20:39:48 -0700 Subject: [PATCH] DRYD-22: Add more XmlReplay tests. --- .../test-data/xmlreplay/security-oauth.xml | 24 +++++++++++++++++++ .../security-oauth/password-grant-reader.txt | 1 + 2 files changed, 25 insertions(+) create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/security-oauth/password-grant-reader.txt 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 -- 2.47.3