adlnet-archive / grail-issue-tracker

Issue tracker for the lrs conformance test server public alpha
0 stars 0 forks source link

Unclear error: should process using GET with "format" canonical (XAPI-00169) #60

Closed garemoko closed 7 years ago

garemoko commented 7 years ago

For the test 'should process using GET with "format" canonical (XAPI-00169)' i get the error: 'AssertionError: expected { Object (id, definition, ...) } to deeply equal { Object (objectType, id, ...) }'

I don't see anything obviously wrong with the response:

REQUEST SUPERREQUEST
_______________________________________
GET /api/organizations/4001/lrs/statements?statementId=f4863ba4-6780-41c0-a261-526ecb353367 HTTP/1.1
X-Experience-API-Version: 1.0.3
Authorization: Basic xxxx
host: sandbox.watershedlrs.com
Connection: close

RESPONSE SUPERREQUEST
_______________________________________
HTTP/1.1 200 OK
access-control-allow-headers: Content-Type,Content-Length,Authorization,If-Match,If-None-Match,X-Experience-API-Version,X-Experience-API-Consistent-Through
access-control-allow-methods: HEAD,GET,POST,PUT,DELETE
access-control-allow-origin: *
access-control-expose-headers: ETag,Last-Modified,Cache-Control,Content-Type,Content-Length,WWW-Authenticate,X-Experience-API-Version,X-Experience-API-Consistent-Through
cache-control: max-age=0
content-type: application/json;charset=UTF-8
date: Tue, 27 Dec 2016 18:04:11 GMT
expires: -1
server: Apache-Coyote/1.1
strict-transport-security: max-age=31536000
vary: Accept-Encoding,User-Agent
x-content-type-options: nosniff
x-experience-api-consistent-through: 2016-12-27T18:04:12.513Z
x-experience-api-version: 1.0.2
x-permitted-cross-domain-policies: master-only
x-xss-protection: 1; mode=block
transfer-encoding: chunked
connection: Close

{"id":"f4863ba4-6780-41c0-a261-526ecb353367","actor":{"name":"xAPI account","mbox":"mailto:agentb0e1b6a9-ad75-48af-9082-2ad7862df636@adlnet.gov","objectType":"Agent"},"verb":{"id":"http://adlnet.gov/expapi/verbs/attended","display":{"en-GB":"attended","en-US":"attended"}},"timestamp":"2016-12-27T18:04:12.428Z","stored":"2016-12-27T18:04:12.428Z","authority":{"name":"December 27th","account":{"homePage":"https://sandbox.watershedlrs.com","name":"f52cfee60b286f"},"objectType":"Agent"},"version":"1.0.0","object":{"actor":{"name":"Group Identified","mbox":"mailto:group3b6750e2-943d-4859-93d5-3ef2390ec670@adlnet.gov","objectType":"Group"},"verb":{"id":"http://adlnet.gov/expapi/verbs/attended","display":{"is-IS":"sótti","ru-RU":"участие","en-US":"attended","ar-EG":"حضر","ko-KR":"참석","pa-IN":"ਹਾਜ਼ਰ","sk-SK":"zúčastnil","hy-AM":"ներկա է գտնվել","kn-IN":"ಹಾಜರಿದ್ದರು","en-GB":"attended","ja-JP":"出席した"}},"objectType":"SubStatement","object":{"id":"http://www.example.com/unicode","definition":{"extensions":{"http://example.com/profiles/meetings/extension/reporter":{"name":"Thomas","id":"http://openid.com/342"},"http://example.com/profiles/meetings/extension/location":"X:\\meetings\\minutes\\examplemeeting.one"},"name":{"en-US":"attended","ko-KR":"참석","sk-SK":"zúčastnil","en":"Other","is-IS":"sótti","ru-RU":"участие","ar-EG":"حضر","pa-IN":"ਹਾਜ਼ਰ","hy-AM":"ներկա է գտնվել","kn-IN":"ಹಾಜರಿದ್ದರು","en-GB":"attended","ja-JP":"出席した"},"description":{"en":"On this map, please mark Franklin, TN"},"type":"http://adlnet.gov/expapi/activities/cmi.interaction","interactionType":"other","moreInfo":"http://virtualmeeting.example.com/345256","correctResponsesPattern":["(35.937432,-86.868896)"]},"objectType":"Activity"}}}
=======================================
REQUEST SUPERREQUEST
_______________________________________
GET /api/organizations/4001/lrs/statements?format=canonical HTTP/1.1
Accept-Language: en-GB
X-Experience-API-Version: 1.0.3
Authorization: Basic xxxx
host: sandbox.watershedlrs.com
Connection: close

RESPONSE SUPERREQUEST
_______________________________________
HTTP/1.1 200 OK
access-control-allow-headers: Content-Type,Content-Length,Authorization,If-Match,If-None-Match,X-Experience-API-Version,X-Experience-API-Consistent-Through
access-control-allow-methods: HEAD,GET,POST,PUT,DELETE
access-control-allow-origin: *
access-control-expose-headers: ETag,Last-Modified,Cache-Control,Content-Type,Content-Length,WWW-Authenticate,X-Experience-API-Version,X-Experience-API-Consistent-Through
content-type: application/json;charset=UTF-8
date: Tue, 27 Dec 2016 18:04:12 GMT
server: Apache-Coyote/1.1
strict-transport-security: max-age=31536000
vary: Accept-Encoding,User-Agent
x-content-type-options: nosniff
x-experience-api-consistent-through: 2016-12-27T18:04:12.631Z
x-experience-api-version: 1.0.2
x-permitted-cross-domain-policies: master-only
x-xss-protection: 1; mode=block
transfer-encoding: chunked
connection: Close

{"statements":[{"id":"f4863ba4-6780-41c0-a261-526ecb353367","actor":{"name":"xAPI account","mbox":"mailto:agentb0e1b6a9-ad75-48af-9082-2ad7862df636@adlnet.gov","objectType":"Agent"},"verb":{"id":"http://adlnet.gov/expapi/verbs/attended","display":{"en-GB":"attended"}},"timestamp":"2016-12-27T18:04:12.428Z","stored":"2016-12-27T18:04:12.428Z","authority":{"name":"December 27th","account":{"homePage":"https://sandbox.watershedlrs.com","name":"f52cfee60b286f"},"objectType":"Agent"},"version":"1.0.0","object":{"actor":{"name":"Group Identified","mbox":"mailto:group3b6750e2-943d-4859-93d5-3ef2390ec670@adlnet.gov","objectType":"Group"},"verb":{"id":"http://adlnet.gov/expapi/verbs/attended","display":{"en-GB":"attended"}},"objectType":"SubStatement","object":{"id":"http://www.example.com/unicode","definition":{"extensions":{"http://example.com/profiles/meetings/extension/reporter":{"name":"Thomas","id":"http://openid.com/342"},"http://example.com/profiles/meetings/extension/location":"X:\\meetings\\minutes\\examplemeeting.one"},"name":{"en-GB":"attended"},"type":"http://adlnet.gov/expapi/activities/cmi.interaction","interactionType":"other","moreInfo":"http://virtualmeeting.example.com/345256","correctResponsesPattern":["(35.937432,-86.868896)"]},"objectType":"Activity"}}},

... lots more statements that don't seem relevant to the test ...

],"more":"/api/organizations/4001/lrs/statements?continueToken=f14a9477-6030-4782-88dd-365b6966bfa8"}
=======================================