diff --git a/event_routing_backends/processors/tests/transformers_test_mixin.py b/event_routing_backends/processors/tests/transformers_test_mixin.py index eeb0320a..3e1898b1 100644 --- a/event_routing_backends/processors/tests/transformers_test_mixin.py +++ b/event_routing_backends/processors/tests/transformers_test_mixin.py @@ -5,6 +5,7 @@ import os from abc import abstractmethod from unittest.mock import patch +from uuid import UUID import ddt from django.contrib.auth import get_user_model @@ -89,11 +90,12 @@ def compare_events(self, transformed_event, expected_event): Every transformer's test case will implement its own logic to test events transformation """ - @patch('event_routing_backends.helpers.uuid') + @patch('event_routing_backends.helpers.uuid.uuid4') @ddt.data(*EVENT_FIXTURE_FILENAMES) - def test_event_transformer(self, event_filename, mocked_uuid): - mocked_uuid.uuid4.return_value = '32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb' - mocked_uuid.uuid5.return_value = '32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb' + def test_event_transformer(self, event_filename, mocked_uuid4): + # Used to generate the anonymized actor.name, + # which in turn is used to generate the event UUID. + mocked_uuid4.return_value = UUID('32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb') # if an event's expected fixture doesn't exist, the test shouldn't fail. # evaluate transformation of only supported event fixtures. diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/complete_video.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/complete_video.json index 0fa34a0f..3e533bfb 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/complete_video.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/complete_video.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "f7c8b743-f18f-5016-8455-35ff8a2f8020", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.enterprise.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.enterprise.json index 315695a0..53ecd183 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.enterprise.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.enterprise.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "bb946682-b0b9-5dc2-a17c-605ef5833c98", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.json index 15a14a0a..de5b0fa9 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "bb946682-b0b9-5dc2-a17c-605ef5833c98", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.required.only.data.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.required.only.data.json index 6fc9a13d..ce15adff 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.required.only.data.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.activated.required.only.data.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "bb946682-b0b9-5dc2-a17c-605ef5833c98", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.deactivated.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.deactivated.json index c800b746..77864cfc 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.deactivated.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.deactivated.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "074afb4a-90d6-57d6-8a6a-4867b4bfcc5f", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.mode_changed.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.mode_changed.json index 15a14a0a..de5b0fa9 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.mode_changed.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.enrollment.mode_changed.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "bb946682-b0b9-5dc2-a17c-605ef5833c98", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.now_failed.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.now_failed.json index 0996e118..32af2314 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.now_failed.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.now_failed.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "ecf2a41b-d1c8-50f7-bd6f-79b305159dae", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.now_passed.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.now_passed.json index faf9c666..1da4c9a5 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.now_passed.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.now_passed.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "ebfef69f-dd05-5bf0-bf90-bad645bc6992", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.passed.first_time.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.passed.first_time.json index faf9c666..1da4c9a5 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.passed.first_time.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.course.grade.passed.first_time.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "ebfef69f-dd05-5bf0-bf90-bad645bc6992", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.created.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.created.json index ad1e325f..1377089d 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.created.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.created.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b57c965a-218a-5a17-aee8-9f3dc75c5bb3", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.deleted.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.deleted.json index 29818cd9..d73b9334 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.deleted.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.deleted.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "54acd352-b4f5-56fb-a328-d7fa43d90710", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.edited.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.edited.json index 64922c5b..5743425e 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.edited.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.edited.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "196cf44f-9d76-5d76-ac0d-683359d9b88b", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.reported.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.reported.json index f5a410ff..cef6fe26 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.reported.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.reported.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b52e9a1c-3ff6-5841-8cb3-d9edbed4fc4f", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.unreported.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.unreported.json index d1f39321..a5a035e1 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.unreported.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.unreported.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "23ae2117-975a-5669-9d1d-cc47928b1959", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.voted.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.voted.json index ddb4c5f0..3aea4a9f 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.voted.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.response.voted.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "806c7c48-7df6-56b9-bdb0-c379a968acf5", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.created.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.created.json index 4e9983c9..929ea31d 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.created.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.created.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "a4e3d431-0281-5b3e-bcf7-0ddbeb8543b2", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.deleted.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.deleted.json index df1d36c9..5a7a9655 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.deleted.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.deleted.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "e57ea5a8-ad20-5717-b648-824bede138aa", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.edited.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.edited.json index f9285491..26f92d11 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.edited.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.edited.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "ae1a9bfe-2d3b-5afd-87f4-ad8d4c596932", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.reported.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.reported.json index 600c16d2..486b8276 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.reported.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.reported.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "81c7f03f-e07e-5b54-9095-f5019e5bbef3", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.unreported.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.unreported.json index b83df2a9..d28b70d2 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.unreported.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.unreported.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "0ce637d7-e823-5447-8cdf-8da3afb4fd9b", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.viewed.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.viewed.json index c51212f8..a00c62e8 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.viewed.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.viewed.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "d1325940-fe1b-5042-90c1-e3365960c9a1", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.voted.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.voted.json index c7fe0a24..e1fdac8a 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.voted.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.forum.thread.voted.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "883a9580-f6bc-55b6-b5c8-1d5a13a8bdd7", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.grades.problem.submitted.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.grades.problem.submitted.json index 32f81365..1b88f869 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.grades.problem.submitted.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.grades.problem.submitted.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "a10da8af-8e6a-5d1c-b7d5-cdabaacc0ba8", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.grades.problem.submitted.weighted_possible_0.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.grades.problem.submitted.weighted_possible_0.json index d110ad8f..c147e570 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.grades.problem.submitted.weighted_possible_0.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.grades.problem.submitted.weighted_possible_0.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "a10da8af-8e6a-5d1c-b7d5-cdabaacc0ba8", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.problem.completed(proposed).json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.problem.completed(proposed).json index f8380c0d..ee707af4 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.problem.completed(proposed).json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.problem.completed(proposed).json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "1940cdf9-6a89-5cb7-82f9-5b0955584db8", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.problem.hint.demandhint_displayed.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.problem.hint.demandhint_displayed.json index 5ec5acbb..d8b54e3e 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.problem.hint.demandhint_displayed.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.problem.hint.demandhint_displayed.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "e9b9ba0f-d976-5656-9a6c-d432b12335ea", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked(anonymous_user).json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked(anonymous_user).json index bda507cd..31a0ac3a 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked(anonymous_user).json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked(anonymous_user).json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "01b620b3-0cba-556e-96d5-d1e9ef63489d", "actor": { "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"}, "objectType": "Agent" diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked.json index 62dcf609..c259f5b6 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "01b620b3-0cba-556e-96d5-d1e9ef63489d", "actor": { "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"}, "objectType": "Agent" diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked.required.only.data.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked.required.only.data.json index 155982c8..ce5aec8b 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked.required.only.data.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.link_clicked.required.only.data.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "01b620b3-0cba-556e-96d5-d1e9ef63489d", "actor": { "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"}, "objectType": "Agent" diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.outline.selected.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.outline.selected.json index ef178ed7..c050b005 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.outline.selected.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.outline.selected.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "d30c30af-2eeb-5ae3-a765-4e2ca9bb3283", "actor": { "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"}, "objectType": "Agent" diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.next_selected.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.next_selected.json index c344e017..261f2611 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.next_selected.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.next_selected.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "2802561d-3e8e-56d4-8944-07a8fbfd02b2", "actor": { "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"}, "objectType": "Agent" diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.previous_selected.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.previous_selected.json index 9957a861..b12e3e2d 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.previous_selected.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.previous_selected.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "6e0efdce-2611-52f8-a213-dcd81b78cfbd", "actor": { "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"}, "objectType": "Agent" diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.tab_selected.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.tab_selected.json index 3cea2076..a7073946 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.tab_selected.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.ui.lms.sequence.tab_selected.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "0f73de3b-445e-5674-aab9-b0117c64671a", "actor": { "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"}, "objectType": "Agent" diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.video.closed_captions.hidden.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.video.closed_captions.hidden.json index 5753ce82..c4f5c103 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.video.closed_captions.hidden.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.video.closed_captions.hidden.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "9e08cf47-e86f-5b64-b48f-a4d524f9a7e4", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.video.closed_captions.shown.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.video.closed_captions.shown.json index c0b57780..468f5b9a 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.video.closed_captions.shown.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/edx.video.closed_captions.shown.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "9e08cf47-e86f-5b64-b48f-a4d524f9a7e4", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/hide_transcript.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/hide_transcript.json index 1f5e17bd..32b8efec 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/hide_transcript.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/hide_transcript.json @@ -1,5 +1,5 @@ { - "id": "0b9e39477cf34507a7a48f74be381fdd", + "id": "8c936f51-267d-51ad-a850-9fffdb7595de", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/load_video.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/load_video.json index 27a16982..d0ffb4ac 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/load_video.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/load_video.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "3feca024-a2a2-5ee3-9307-50711dc48abd", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/load_video.required.only.data.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/load_video.required.only.data.json index 877da649..37065c1f 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/load_video.required.only.data.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/load_video.required.only.data.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "3feca024-a2a2-5ee3-9307-50711dc48abd", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/pause_video.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/pause_video.json index 007a1ab2..6b471695 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/pause_video.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/pause_video.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2fff5f6-c77d-5aa4-a08b-bb547d6ee5a6", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/play_video.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/play_video.json index b74454b4..4e4d2e17 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/play_video.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/play_video.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "203e182c-6a2d-5458-9c61-a271297d459a", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser).json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser).json index 54831e74..ad39df5f 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser).json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser).json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "2a1f0f7c-6636-52df-913b-59e2f197a58e", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser).required.only.data.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser).required.only.data.json index 0628996d..1d466f6c 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser).required.only.data.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser).required.only.data.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "37e0953c-fa85-5435-8c53-723909ab81d9", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser)legacy.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser)legacy.json index 98962f50..398f4e06 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser)legacy.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(browser)legacy.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "2a1f0f7c-6636-52df-913b-59e2f197a58e", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server).json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server).json index d15b6a37..3fb71d5a 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server).json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server).json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "c9c7da1a-0cf0-5161-9bf5-35c61091f826", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server).max_grade_0.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server).max_grade_0.json index c287bad1..5cf96cc3 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server).max_grade_0.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server).max_grade_0.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "c9c7da1a-0cf0-5161-9bf5-35c61091f826", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server)_no_response_type.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server)_no_response_type.json index 2fe58cab..cde5281a 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server)_no_response_type.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server)_no_response_type.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "c9c7da1a-0cf0-5161-9bf5-35c61091f826", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,correct).json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,correct).json index f47b6ae9..0b5e3797 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,correct).json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,correct).json @@ -1,6 +1,6 @@ [ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"score": {"min": 0, "max": 3, "raw": 3, "scaled": 1}, "success": true}, "version": "1.0.3", "actor": { @@ -47,7 +47,7 @@ } }, { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"response": "blue", "success": true}, "version": "1.0.3", "actor": { @@ -76,7 +76,7 @@ }, "context": { "statement": { - "id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "objectType": "StatementRef" }, "contextActivities": { @@ -113,7 +113,7 @@ } }, { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"response": "['a piano', 'a guitar']", "success": true}, "version": "1.0.3", "actor": { @@ -142,7 +142,7 @@ }, "context": { "statement": { - "id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "objectType": "StatementRef" }, "contextActivities": { @@ -179,7 +179,7 @@ } }, { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"response": "a chair", "success": true}, "version": "1.0.3", "actor": { @@ -208,7 +208,7 @@ }, "context": { "statement": { - "id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "objectType": "StatementRef" }, "contextActivities": { diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,incorrect).json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,incorrect).json index 41541ab7..db914659 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,incorrect).json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,incorrect).json @@ -1,6 +1,6 @@ [ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"score": {"min": 0, "max": 3, "raw": 0, "scaled": 0}, "success": false}, "version": "1.0.3", "actor": { @@ -49,7 +49,7 @@ } }, { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"response": "yellow", "success": false}, "version": "1.0.3", "actor": { @@ -78,7 +78,7 @@ }, "context": { "statement": { - "id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "objectType": "StatementRef" }, "contextActivities": { @@ -115,7 +115,7 @@ } }, { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"response": "['a window']", "success": false}, "version": "1.0.3", "actor": { @@ -144,7 +144,7 @@ }, "context": { "statement": { - "id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "objectType": "StatementRef" }, "contextActivities": { @@ -181,7 +181,7 @@ } }, { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"response": "a bookshelf", "success": false}, "version": "1.0.3", "actor": { @@ -210,7 +210,7 @@ }, "context": { "statement": { - "id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "objectType": "StatementRef" }, "contextActivities": { diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,partial_correct).json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,partial_correct).json index d8014195..8a79bd86 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,partial_correct).json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,multiple_questions,partial_correct).json @@ -1,6 +1,6 @@ [ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"score": {"min": 0, "max": 3, "raw": 2, "scaled": 0.6666666666666666}, "success": false}, "version": "1.0.3", "actor": { @@ -47,7 +47,7 @@ } }, { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"response": "blue", "success": true}, "version": "1.0.3", "actor": { @@ -76,7 +76,7 @@ }, "context": { "statement": { - "id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "objectType": "StatementRef" }, "contextActivities": { @@ -113,7 +113,7 @@ } }, { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"response": "['a piano', 'a guitar']", "success": true}, "version": "1.0.3", "actor": { @@ -142,7 +142,7 @@ }, "context": { "statement": { - "id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "objectType": "StatementRef" }, "contextActivities": { @@ -179,7 +179,7 @@ } }, { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "result": {"response": "a bookshelf", "success": false}, "version": "1.0.3", "actor": { @@ -208,7 +208,7 @@ }, "context": { "statement": { - "id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", + "id": "b2f56b44-07f9-5044-85d1-c1dbc550d35f", "objectType": "StatementRef" }, "contextActivities": { diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,string_anwers).json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,string_anwers).json index 04ec3fe6..7b22833e 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,string_anwers).json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,string_anwers).json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "c9c7da1a-0cf0-5161-9bf5-35c61091f826", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,unsupported_responsetype).json b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,unsupported_responsetype).json index 7e9e8c76..bf6204c3 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,unsupported_responsetype).json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/problem_check(server,unsupported_responsetype).json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "c9c7da1a-0cf0-5161-9bf5-35c61091f826", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/seek_video.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/seek_video.json index 86dc8def..dedd4022 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/seek_video.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/seek_video.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "50e46aad-346e-58da-ab55-e599abcd554c", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/show_transcript.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/show_transcript.json index 543cd097..52714c85 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/show_transcript.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/show_transcript.json @@ -1,5 +1,5 @@ { - "id": "0b9e39477cf34507a7a48f74be381fdd", + "id": "8c936f51-267d-51ad-a850-9fffdb7595de", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/showanswer.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/showanswer.json index f4b40e3e..64513665 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/showanswer.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/showanswer.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "c552e1bc-2a30-555c-99e8-79d72413eaf7", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/speed_change_video.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/speed_change_video.json index 9b49bc4f..7a2762c4 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/speed_change_video.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/speed_change_video.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "2f31f095-ee62-54d8-bcab-8e764a45b47f", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/stop_video.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/stop_video.json index 34acb8cf..52b61316 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/stop_video.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/stop_video.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "d079c151-11f1-5a91-8e49-9627a5c9832d", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/video_hide_cc_menu.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/video_hide_cc_menu.json index 5753ce82..c4f5c103 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/video_hide_cc_menu.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/video_hide_cc_menu.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "9e08cf47-e86f-5b64-b48f-a4d524f9a7e4", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/fixtures/expected/video_show_cc_menu.json b/event_routing_backends/processors/xapi/tests/fixtures/expected/video_show_cc_menu.json index c0b57780..468f5b9a 100644 --- a/event_routing_backends/processors/xapi/tests/fixtures/expected/video_show_cc_menu.json +++ b/event_routing_backends/processors/xapi/tests/fixtures/expected/video_show_cc_menu.json @@ -1,5 +1,5 @@ { - "id": "6d1f033b-3f70-458c-b53a-e6bb63cbaef9", + "id": "9e08cf47-e86f-5b64-b48f-a4d524f9a7e4", "actor": { "objectType": "Agent", "account": {"homePage": "http://localhost:18000", "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb"} diff --git a/event_routing_backends/processors/xapi/tests/test_transformers.py b/event_routing_backends/processors/xapi/tests/test_transformers.py index a3cc28ce..369d54f5 100644 --- a/event_routing_backends/processors/xapi/tests/test_transformers.py +++ b/event_routing_backends/processors/xapi/tests/test_transformers.py @@ -60,11 +60,7 @@ def _compare_events(self, transformed_event, expected_event): Raises: AssertionError: Raised if the two events are not same. """ - # id is a randomly generated UUID therefore not comparing that transformed_event_json = json.loads(transformed_event.to_json()) - self.assertIn('id', transformed_event_json) - expected_event.pop('id') - transformed_event_json.pop('id') self.assertDictEqual(expected_event, transformed_event_json) @override_settings(XAPI_AGENT_IFI_TYPE='mbox')