You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a test issue or if the spec itself needs clarifying.
I'm testing a simple LRS implementation and found a conformance test that expects a HTTP 400 error for a non-existent endpoint. I suppose this reflects the requirement under section 7:
The LRS MUST reject with HTTP 400 Bad Request status any request to any of these APIs that use any parameters which the LRS does not recognize in their intended context in this specification
My initial reaction was that a 404 might be more appropriate, but on further reflection I think the test itself might be overreaching. The test is looking for something outside "these" APIs by checking for a different resource ("/abouts") which is not part of the xAPI spec. I don't think the spec - or the tests - should be concerned with other resources alongside the base endpoint, but perhaps this is something I've overlooked. Is the base endpoint forbidden from having other endpoints outside those listed in Appendix F?
For example, if my base endpoint is just example.com:
example.com/statements - xAPI endpoint so should be tested
example.com/about - xAPI endpoint so should be tested
example.com/foo - outside the spec so shouldn't be tested
Grateful for some clarification!
The text was updated successfully, but these errors were encountered:
I'm not sure if this is a test issue or if the spec itself needs clarifying.
I'm testing a simple LRS implementation and found a conformance test that expects a HTTP 400 error for a non-existent endpoint. I suppose this reflects the requirement under section 7:
My initial reaction was that a 404 might be more appropriate, but on further reflection I think the test itself might be overreaching. The test is looking for something outside "these" APIs by checking for a different resource ("/abouts") which is not part of the xAPI spec. I don't think the spec - or the tests - should be concerned with other resources alongside the base endpoint, but perhaps this is something I've overlooked. Is the base endpoint forbidden from having other endpoints outside those listed in Appendix F?
For example, if my base endpoint is just example.com:
example.com/statements - xAPI endpoint so should be tested
example.com/about - xAPI endpoint so should be tested
example.com/foo - outside the spec so shouldn't be tested
Grateful for some clarification!
The text was updated successfully, but these errors were encountered: