Closed gomezgoiri closed 8 years ago
I have rewritten these test to reuse the same ID and the only one which still fails is:
So apparently, what makes an entity for Learning Locker is not only the ID but also the activity associated to that object.
In fact, after reusing the same activity this test also passes successfully.
@gomezgoiri there appears to be a bug in the latest version of learning locker (1.11.0) around the Agent Profile API (and maybe other document APIs - I've not tested). See https://github.com/garemoko/moodle-mod_tincanlaunch/issues/80#issuecomment-160328018
It may be worth running these tests against another LRS e.g. SCORM Cloud to confirm the problem.
Thanks for the clue.
Yes, all tests pass if I use SCORM Cloud.
I'm gathering this is resolved, re-open if necessary.
When I locally execute tests using
mvn clean test
against a LearningLocker LRS three of them fail:After analysing them, they all have the following behaviour in common:
The tests talk about overwriting/updating an object, but since the ID changes I don't think the LRS is considering that it is the same entity anymore. Therefore the Etag is not valid for that entity and IMHO it is correct that these tests fail.