From b3d5c838d0e36e6027b21a4d838b5493b1df91ab Mon Sep 17 00:00:00 2001 From: Fredrick Whorton Date: Thu, 7 May 2015 09:47:51 -0400 Subject: [PATCH] Move setting headers to occur for all document requests including GET. --- test/v1_0_2/configs/actors.js | 2 +- test/v1_0_2/configs/groups.js | 4 ++-- test/v1_0_2/templates/groups/authority_group.json | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 test/v1_0_2/templates/groups/authority_group.json diff --git a/test/v1_0_2/configs/actors.js b/test/v1_0_2/configs/actors.js index 4da4118..c080730 100644 --- a/test/v1_0_2/configs/actors.js +++ b/test/v1_0_2/configs/actors.js @@ -1123,7 +1123,7 @@ name: 'statement authority "group account" property exists', templates: [ {statement: '{{statements.authority}}'}, - {authority: '{{groups.identified_account}}'} + {authority: '{{groups.authority_group}}'} ], expect: [200] }, diff --git a/test/v1_0_2/configs/groups.js b/test/v1_0_2/configs/groups.js index 1c749ee..7a2f904 100644 --- a/test/v1_0_2/configs/groups.js +++ b/test/v1_0_2/configs/groups.js @@ -108,7 +108,7 @@ name: 'statement authority "objectType" accepts "Group"', templates: [ {statement: '{{statements.authority}}'}, - {authority: '{{groups.default}}'} + {authority: '{{groups.authority_group}}'} ], expect: [200] }, @@ -184,7 +184,7 @@ name: 'statement authority does not require functional identifier', templates: [ {statement: '{{statements.authority}}'}, - {authority: '{{groups.anonymous}}'} + {authority: '{{groups.authority_group}}'} ], expect: [200] }, diff --git a/test/v1_0_2/templates/groups/authority_group.json b/test/v1_0_2/templates/groups/authority_group.json new file mode 100644 index 0000000..db2ce48 --- /dev/null +++ b/test/v1_0_2/templates/groups/authority_group.json @@ -0,0 +1,14 @@ +{ + "objectType": "Group", + "member": [ + { + "account": { + "homePage": "http://example.com/xAPI/OAuth/Token", + "name": "oauth_consumer_x75db" + } + }, + { + "mbox": "mailto:bob_authority@example.com" + } + ] +} \ No newline at end of file