scorm_engine 0.7.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scorm_engine/api/endpoints.rb +4 -0
- data/lib/scorm_engine/api/endpoints/configuration.rb +94 -0
- data/lib/scorm_engine/api/endpoints/courses/configuration.rb +1 -1
- data/lib/scorm_engine/api/endpoints/registrations/configuration.rb +1 -1
- data/lib/scorm_engine/api/endpoints/tenants/configuration.rb +108 -0
- data/lib/scorm_engine/configuration.rb +4 -2
- data/lib/scorm_engine/faraday/connection.rb +10 -4
- data/lib/scorm_engine/faraday/request.rb +19 -4
- data/lib/scorm_engine/models.rb +1 -0
- data/lib/scorm_engine/models/tenant_configuration.rb +34 -0
- data/lib/scorm_engine/version.rb +1 -1
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about/is_successful.yml +24 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about/knows_the_platform.yml +24 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about/knows_the_version.yml +24 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about_user_count/accepts_before_option.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about_user_count/accepts_since_option.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about_user_count/is_successful.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about_user_count/tracks_combined_counts.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about_user_count/tracks_per_tenantcounts.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_delete_app_configuration/fails_when_settings_are_invalid.yml +46 -0
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_delete_app_configuration/is_successful.yml +42 -0
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_get_app_configuration/includeMetadata/is_successful.yml +931 -0
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_get_app_configuration/includeMetadata/returns_metadata_in_raw_response_when_included_in_options.yml +931 -0
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_get_app_configuration/is_successful.yml +64 -0
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_get_app_configuration/returns_settings_and_values.yml +64 -0
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_post_app_configuration/fails_when_settings_are_invalid.yml +48 -0
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_post_app_configuration/is_successful.yml +44 -0
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_post_app_configuration/persists_the_settings.yml +207 -0
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_delete_course/fails_when_id_is_invalid.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_delete_course/works.yml +19 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_detail/fails_when_id_is_invalid.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_detail/is_successful.yml +24 -16
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_detail/results/sucessfully_creates_the_Course_attributes.yml +24 -16
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_preview/fails_when_id_is_invalid.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_preview/is_successful.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_preview/results/returns_a_URL_string.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_course_id_option/fetches_a_single_course_but_perhaps_multiple_versions.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_course_id_option/returns_404_when_ID_is_invalid.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_more_option_pagination_/returns_all_the_courses.yml +65 -45
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_more_option_pagination_/returns_the_more_key_in_the_raw_response.yml +32 -24
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_since_option/fails_when_passed_an_invalid_value.yml +20 -10
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_since_option/works.yml +42 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/is_successful.yml +32 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/results/is_an_enumerator_of_Course_models.yml +32 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/results/sucessfully_creates_the_Course_attributes.yml +32 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration/fails_when_id_is_invalid.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration/is_successful.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration/results/makes_settings_available_as_key/value_pairs.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration_setting/fails_when_course_id_is_invalid.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration_setting/fails_when_setting_id_is_invalid.yml +20 -10
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration_setting/is_successful.yml +41 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration_setting/results/returns_the_value_as_a_string.yml +41 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_post_course_configuration/fails_when_id_is_invalid.yml +25 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_post_course_configuration/fails_when_settings_are_invalid.yml +24 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_post_course_configuration/is_successful.yml +21 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_post_course_configuration/persists_the_settings.yml +88 -48
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_put_course_configuration_setting/fails_when_course_id_is_invalid.yml +25 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_put_course_configuration_setting/fails_when_setting_id_is_invalid.yml +20 -10
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_put_course_configuration_setting/is_successful.yml +41 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_put_course_configuration_setting/results/persists_the_changes.yml +61 -29
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Import/_get_course_import/successful_imports/works.yml +102 -95
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Import/_get_course_import/unsuccessful_imports/fails_to_import_given_an_invalid_url.yml +73 -294
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Import/_post_course_import/unsuccessful_imports/fails_to_import_a_previously_existing_course.yml +21 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_delete_destination/returns_success_even_when_id_is_invalid.yml +19 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_delete_destination/works.yml +19 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination/fails_when_id_is_invalid.yml +22 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination/is_successful.yml +22 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination/results/sucessfully_creates_the_destination_attributes.yml +22 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination_dispatches_registration_count/fails_when_invalid.yml +22 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination_dispatches_registration_count/works.yml +20 -10
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_more_option_pagination_/returns_all_the_destinations.yml +48 -31
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_more_option_pagination_/returns_the_more_key_in_the_raw_response.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_since_option/fails_when_passed_an_invalid_value.yml +22 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_since_option/works.yml +24 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/is_successful.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/results/is_an_enumerator_of_Destination_models.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/results/sucessfully_creates_the_Destination_attributes.yml +65 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination/is_successful.yml +40 -18
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination/is_successful_even_if_the_destination_id_is_not_unique.yml +21 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_enabled/fails_when_invalid.yml +24 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_enabled/works_when_false.yml +21 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_enabled/works_when_true.yml +21 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_registration_instancing/fails_when_invalid.yml +24 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_registration_instancing/works_when_false.yml +21 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_registration_instancing/works_when_true.yml +21 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_put_destination/is_successful.yml +21 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_put_destination/results/sucessfully_creates_the_destination_attributes.yml +43 -23
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch/returns_success_even_when_id_is_invalid.yml +19 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch/works.yml +19 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch_registration_count/is_successful.yml +19 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch_registration_count/succeeds_even_when_id_is_invalid.yml +19 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/fails_when_id_is_invalid.yml +22 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/is_successful.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/results/sucessfully_creates_the_dispatch_attributes.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_enabled/is_false_when_disabled.yml +39 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_enabled/is_true_when_enabled.yml +39 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_registration_count/fails_when_id_is_invalid.yml +41 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_registration_count/is_successful.yml +42 -20
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_registration_count/results/sucessfully_creates_the_dispatch_attributes.yml +42 -20
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/fails_given_an_invalid_id.yml +22 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/fails_given_an_invalid_type.yml +20 -8
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works.yml +24 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_AICC.yml +24 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_SCORM12.yml +24 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_SCORM2004-3RD.yml +23 -11
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_more_option_pagination_/returns_all_the_dispatches.yml +47 -27
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_more_option_pagination_/returns_the_more_key_in_the_raw_response.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_since_option/fails_when_passed_an_invalid_value.yml +20 -8
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_since_option/works.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/is_successful.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/results/is_an_enumerator_of_dispatch_models.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/results/sucessfully_creates_the_dispatch_attributes.yml +21 -44
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_post_dispatch/is_successful.yml +38 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_post_dispatch/updates_if_same_dispatch_id.yml +65 -33
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch/is_successful.yml +19 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch/results/sucessfully_creates_the_dispatch_attributes.yml +42 -20
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/fails_when_invalid.yml +22 -10
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/works_when_false.yml +19 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/works_when_true.yml +19 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Ping/_get_ping/is_successful.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Ping/_get_ping/reports_the_api_is_up.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Ping/_get_ping/with_invalid_password/is_unsuccessful.yml +25 -17
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Ping/_get_ping/with_invalid_password/returns_status_403.yml +25 -17
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_delete_registration/is_failure_when_registration_does_not_exist.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_delete_registration/is_successful_when_registration_exists.yml +19 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_exists/is_false_when_registration_does_not_exist.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_exists/is_true_when_registration_exists.yml +20 -8
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_instances/includes_results_we_expect.yml +26 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_instances/is_successful.yml +26 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_instances/returns_an_array_of_registrations.yml +26 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_launch_link/fails_when_id_is_invalid.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_launch_link/is_successful.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_launch_link/results/returns_a_URL_string.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_progress/detail/does_not_return_activity_details_by_default.yml +24 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_progress/detail/returns_activity_details_if_requested.yml +24 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_progress/fails_when_registration_does_not_exist.yml +23 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_progress/returns_a_registration_when_it_exists.yml +24 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/filtering_by_course_id/excludes_results.yml +22 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/filtering_by_course_id/includes_results.yml +26 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/filtering_by_learner_id/excludes_results.yml +22 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/filtering_by_learner_id/includes_results.yml +26 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/includes_results_we_expect.yml +26 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/is_successful.yml +26 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/returns_an_array_of_registrations.yml +26 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_post_registration/fails_if_course_id_is_invalid.yml +22 -10
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_post_registration/fails_if_registration_id_already_exists.yml +20 -8
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_post_registration/is_successful.yml +38 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_post_registration/is_successful_even_when_given_a_UTF8/slashed_username.yml +38 -14
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration/fails_when_id_is_invalid.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration/is_successful.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration/results/makes_settings_available_as_key/value_pairs.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration_setting/fails_when_registration_id_is_invalid.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration_setting/fails_when_setting_id_is_invalid.yml +20 -10
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration_setting/is_successful.yml +41 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration_setting/results/returns_the_value_as_a_string.yml +41 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_post_registration_configuration/fails_when_id_is_invalid.yml +25 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_post_registration_configuration/fails_when_settings_are_invalid.yml +24 -12
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_post_registration_configuration/is_successful.yml +21 -9
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_post_registration_configuration/persists_the_settings.yml +88 -48
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_put_registration_configuration_setting/fails_when_registration_id_is_invalid.yml +25 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_put_registration_configuration_setting/fails_when_setting_id_is_invalid.yml +20 -10
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_put_registration_configuration_setting/is_successful.yml +41 -19
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_put_registration_configuration_setting/results/persists_the_changes.yml +61 -29
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_LaunchHistory/_get_registration_launch_history/fails_when_registration_does_not_exist.yml +23 -15
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_LaunchHistory/_get_registration_launch_history/is_successful.yml +23 -31
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_LaunchHistory/_get_registration_launch_history/returns_an_array_of_registration_launch_histories.yml +23 -31
- data/spec/scorm_engine/api/endpoints/about_spec.rb +1 -1
- data/spec/scorm_engine/api/endpoints/configuration_spec.rb +82 -0
- data/spec/scorm_engine/api/endpoints/courses/configuration_spec.rb +5 -5
- data/spec/scorm_engine/api/endpoints/courses_spec.rb +6 -6
- data/spec/scorm_engine/api/endpoints/destinations_spec.rb +2 -2
- data/spec/scorm_engine/api/endpoints/dispatches_spec.rb +1 -1
- data/spec/scorm_engine/api/endpoints/registrations/configuration_spec.rb +5 -5
- data/spec/scorm_engine/api/endpoints/registrations_spec.rb +2 -2
- data/spec/scorm_engine/api/endpoints/tenants/configuration_spec.rb +126 -0
- data/spec/scorm_engine/faraday/connection_spec.rb +23 -5
- data/spec/scorm_engine/models/tenant_configuration_spec.rb +16 -0
- data/spec/support/vcr.rb +1 -0
- metadata +28 -13
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_delete_destination/raises_ArgumentError_when_destination_id_is_missing.yml +0 -32
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_registration_count/when_dispatch_has_registrations/knows_it_s_registration_count.yml +0 -63
@@ -8,30 +8,42 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.8.2
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
17
|
-
message:
|
17
|
+
message: OK
|
18
18
|
headers:
|
19
19
|
content-type:
|
20
20
|
- application/json
|
21
|
-
date:
|
22
|
-
- Fri, 24 Aug 2018 21:33:30 GMT
|
23
|
-
server:
|
24
|
-
- nginx
|
25
|
-
vary:
|
26
|
-
- Accept-Encoding
|
27
21
|
content-length:
|
28
|
-
- '
|
22
|
+
- '2496'
|
29
23
|
connection:
|
30
|
-
-
|
24
|
+
- close
|
25
|
+
date:
|
26
|
+
- Tue, 10 Nov 2020 22:54:30 GMT
|
27
|
+
p3p:
|
28
|
+
- CP="NOI"
|
29
|
+
server:
|
30
|
+
- Apache
|
31
|
+
x-xss-protection:
|
32
|
+
- 1; mode=block
|
33
|
+
x-cache:
|
34
|
+
- Miss from cloudfront
|
35
|
+
via:
|
36
|
+
- 1.1 0a35faf8a81bc2da87034be9b38a5c9a.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- Q-wE7JZyxBRJPbtLn4iDeC4-kS5fj2unzF4JVBPfez0lVSGwYrocLQ==
|
31
41
|
body:
|
32
|
-
encoding:
|
33
|
-
string: '{"registrations":[{"id":"testing-golf-explained-registration-1","instance":0,"updated":"
|
34
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"registrations":[{"id":"testing-golf-explained-registration-1","instance":0,"updated":"2020-10-02T16:56:31.000Z","registrationCompletion":"UNKNOWN","registrationSuccess":"Unknown","totalSecondsTracked":0.0,"lastAccessDate":"2020-10-02T16:56:31.000Z","createdDate":"2020-10-02T16:56:31.000Z","course":{"id":"testing-golf-explained","version":0,"title":"Golf
|
44
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-02T16:56:31.000Z"},"learner":{"id":"testing-golf-explained-learner-1","firstName":"Arnold","lastName":"Palmer"},"globalObjectives":[],"activityDetails":{"id":"golf_sample_default_org","title":"Golf
|
45
|
+
Explained - Run-time Basic Calls","activityProgressKnown":false,"attempts":0,"activityCompletion":"UNKNOWN","previousAttemptCompletion":"Unknown","activitySuccess":"UNKNOWN","attemptedDuringThisAttempt":false,"suspended":false,"active":false,"included":false,"ordinal":0,"selectedChildren":false,"randomizedChildren":false,"children":[{"id":"item_1","title":"Golf
|
46
|
+
Explained","activityProgressKnown":false,"attempts":0,"activityCompletion":"UNKNOWN","previousAttemptCompletion":"Unknown","activitySuccess":"UNKNOWN","timeTracked":"0000:00:00","attemptedDuringThisAttempt":false,"suspended":false,"active":false,"included":false,"ordinal":0,"selectedChildren":false,"randomizedChildren":false,"children":[],"objectives":[{"id":"","primary":true,"firstScoreScaled":0.0,"objectiveCompletion":"Unknown","objectiveSuccess":"UNKNOWN","previousObjectiveSuccess":"Unknown"}],"staticProperties":{"completionThreshold":"","launchData":"","maxTimeAllowed":"","scaledPassingScore":0.0,"scaledPassingScoreUsed":false,"timeLimitAction":""},"runtime":{"completionStatus":"unknown","credit":"credit","entry":"abinitio","exit":"Unknown","learnerPreference":{"audioLevel":1.0,"language":"","deliverySpeed":1.0,"audioCaptioning":0},"mode":"Normal","progressMeasure":"","scoreScaled":"","scoreRaw":"","scoreMin":"","scoreMax":"","totalTime":"0000:00:00","timeTracked":"0000:00:00","successStatus":"Unknown","suspendData":"","learnerComments":[],"lmsComments":[],"runtimeInteractions":[],"runtimeObjectives":[]}}],"objectives":[{"id":"","primary":true,"firstScoreScaled":0.0,"objectiveCompletion":"Unknown","objectiveSuccess":"UNKNOWN","previousObjectiveSuccess":"Unknown"}],"staticProperties":{"completionThreshold":"","launchData":"","maxTimeAllowed":"","scaledPassingScore":0.0,"scaledPassingScoreUsed":false,"timeLimitAction":""}}}]}'
|
35
47
|
http_version:
|
36
|
-
recorded_at:
|
48
|
+
recorded_at: Tue, 10 Nov 2020 22:54:32 GMT
|
37
49
|
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"courseId":"invalid-bogus","registrationId":"testing-golf-explained-registration-1","learner":{"id":"testing-golf-explained-learner-1","firstName":"Arnold","lastName":"Palmer"},"postBack":{"url":"http://playtronics.com/passback/","authType":"FORM","userName":"werner_brandes","password":"passport","resultsFormat":"ACTIVITY"}}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.8.2
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
Content-Type:
|
@@ -16,21 +16,33 @@ http_interactions:
|
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 400
|
19
|
-
message:
|
19
|
+
message: Bad Request
|
20
20
|
headers:
|
21
21
|
content-type:
|
22
22
|
- application/json
|
23
|
-
date:
|
24
|
-
- Fri, 24 Aug 2018 21:33:08 GMT
|
25
|
-
server:
|
26
|
-
- nginx
|
27
23
|
content-length:
|
28
|
-
- '
|
24
|
+
- '50'
|
29
25
|
connection:
|
30
|
-
-
|
26
|
+
- close
|
27
|
+
date:
|
28
|
+
- Tue, 10 Nov 2020 22:54:54 GMT
|
29
|
+
p3p:
|
30
|
+
- CP="NOI"
|
31
|
+
server:
|
32
|
+
- Apache
|
33
|
+
x-xss-protection:
|
34
|
+
- 1; mode=block
|
35
|
+
x-cache:
|
36
|
+
- Error from cloudfront
|
37
|
+
via:
|
38
|
+
- 1.1 c28e90c09fe72af9ef5e45a1bf85f0fc.cloudfront.net (CloudFront)
|
39
|
+
x-amz-cf-pop:
|
40
|
+
- SLC50-C1
|
41
|
+
x-amz-cf-id:
|
42
|
+
- jLViSJ1vA_ANPaRT0Mh-J_PNSUINj_xodwcYA9Qaa1_FL29_DbYTQw==
|
31
43
|
body:
|
32
44
|
encoding: UTF-8
|
33
|
-
string: '{"message":"
|
45
|
+
string: '{"message":"Course ID ''invalid-bogus'' is invalid"}'
|
34
46
|
http_version:
|
35
|
-
recorded_at:
|
47
|
+
recorded_at: Tue, 10 Nov 2020 22:54:54 GMT
|
36
48
|
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"courseId":"testing-golf-explained","registrationId":"testing-golf-explained-registration-1","learner":{"id":"testing-golf-explained-learner-1","firstName":"Arnold","lastName":"Palmer"},"postBack":{"url":"http://playtronics.com/passback/","authType":"FORM","userName":"werner_brandes","password":"passport","resultsFormat":"ACTIVITY"}}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.8.2
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
Content-Type:
|
@@ -16,21 +16,33 @@ http_interactions:
|
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 400
|
19
|
-
message:
|
19
|
+
message: Bad Request
|
20
20
|
headers:
|
21
21
|
content-type:
|
22
22
|
- application/json
|
23
|
-
date:
|
24
|
-
- Fri, 24 Aug 2018 21:33:10 GMT
|
25
|
-
server:
|
26
|
-
- nginx
|
27
23
|
content-length:
|
28
24
|
- '52'
|
29
25
|
connection:
|
30
|
-
-
|
26
|
+
- close
|
27
|
+
date:
|
28
|
+
- Tue, 10 Nov 2020 22:54:52 GMT
|
29
|
+
p3p:
|
30
|
+
- CP="NOI"
|
31
|
+
server:
|
32
|
+
- Apache
|
33
|
+
x-xss-protection:
|
34
|
+
- 1; mode=block
|
35
|
+
x-cache:
|
36
|
+
- Error from cloudfront
|
37
|
+
via:
|
38
|
+
- 1.1 0a35faf8a81bc2da87034be9b38a5c9a.cloudfront.net (CloudFront)
|
39
|
+
x-amz-cf-pop:
|
40
|
+
- SLC50-C1
|
41
|
+
x-amz-cf-id:
|
42
|
+
- byVg1BHZGU0oFIzmbF9YnERXR79M_i0t7u4sybP0BNTFj8ugISINoQ==
|
31
43
|
body:
|
32
44
|
encoding: UTF-8
|
33
45
|
string: '{"message":"This RegistrationId is already in use."}'
|
34
46
|
http_version:
|
35
|
-
recorded_at:
|
47
|
+
recorded_at: Tue, 10 Nov 2020 22:54:52 GMT
|
36
48
|
recorded_with: VCR 4.0.0
|
data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_post_registration/is_successful.yml
CHANGED
@@ -8,25 +8,37 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.8.2
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 204
|
17
|
-
message:
|
17
|
+
message: No Content
|
18
18
|
headers:
|
19
|
+
connection:
|
20
|
+
- close
|
19
21
|
date:
|
20
|
-
-
|
22
|
+
- Tue, 10 Nov 2020 22:54:52 GMT
|
23
|
+
p3p:
|
24
|
+
- CP="NOI"
|
21
25
|
server:
|
22
|
-
-
|
23
|
-
|
24
|
-
-
|
26
|
+
- Apache
|
27
|
+
x-xss-protection:
|
28
|
+
- 1; mode=block
|
29
|
+
x-cache:
|
30
|
+
- Miss from cloudfront
|
31
|
+
via:
|
32
|
+
- 1.1 6499018181503258b63542f68301cbb1.cloudfront.net (CloudFront)
|
33
|
+
x-amz-cf-pop:
|
34
|
+
- SLC50-C1
|
35
|
+
x-amz-cf-id:
|
36
|
+
- "--kO4UlBIDexaK_CyiRmvqFndCZGBycnZegTYRoxzG_aF29OSsAeGg=="
|
25
37
|
body:
|
26
38
|
encoding: UTF-8
|
27
39
|
string: ''
|
28
40
|
http_version:
|
29
|
-
recorded_at:
|
41
|
+
recorded_at: Tue, 10 Nov 2020 22:54:52 GMT
|
30
42
|
- request:
|
31
43
|
method: post
|
32
44
|
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/registrations
|
@@ -35,7 +47,7 @@ http_interactions:
|
|
35
47
|
string: '{"courseId":"testing-golf-explained","registrationId":"testing-golf-explained-registration-1","learner":{"id":"testing-golf-explained-learner-1","firstName":"Arnold","lastName":"Palmer"},"postBack":{"url":"http://playtronics.com/passback/","authType":"FORM","userName":"werner_brandes","password":"passport","resultsFormat":"ACTIVITY"}}'
|
36
48
|
headers:
|
37
49
|
User-Agent:
|
38
|
-
- ScormEngine Ruby Gem 0.
|
50
|
+
- ScormEngine Ruby Gem 0.8.2
|
39
51
|
Authorization:
|
40
52
|
- Basic <BASIC_AUTH>
|
41
53
|
Content-Type:
|
@@ -43,17 +55,29 @@ http_interactions:
|
|
43
55
|
response:
|
44
56
|
status:
|
45
57
|
code: 204
|
46
|
-
message:
|
58
|
+
message: No Content
|
47
59
|
headers:
|
60
|
+
connection:
|
61
|
+
- close
|
48
62
|
date:
|
49
|
-
-
|
63
|
+
- Tue, 10 Nov 2020 22:54:52 GMT
|
64
|
+
p3p:
|
65
|
+
- CP="NOI"
|
50
66
|
server:
|
51
|
-
-
|
52
|
-
|
53
|
-
-
|
67
|
+
- Apache
|
68
|
+
x-xss-protection:
|
69
|
+
- 1; mode=block
|
70
|
+
x-cache:
|
71
|
+
- Miss from cloudfront
|
72
|
+
via:
|
73
|
+
- 1.1 dc1008da8748ae0c60c93323ff766e49.cloudfront.net (CloudFront)
|
74
|
+
x-amz-cf-pop:
|
75
|
+
- SLC50-C1
|
76
|
+
x-amz-cf-id:
|
77
|
+
- ljO_CHGy1TrR2F0fKAGdKEz_QhPtRYrURrZI5iFDb6YIaYMkc_V9dA==
|
54
78
|
body:
|
55
79
|
encoding: UTF-8
|
56
80
|
string: ''
|
57
81
|
http_version:
|
58
|
-
recorded_at:
|
82
|
+
recorded_at: Tue, 10 Nov 2020 22:54:52 GMT
|
59
83
|
recorded_with: VCR 4.0.0
|
@@ -8,25 +8,37 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.8.2
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 204
|
17
|
-
message:
|
17
|
+
message: No Content
|
18
18
|
headers:
|
19
|
+
connection:
|
20
|
+
- close
|
19
21
|
date:
|
20
|
-
-
|
22
|
+
- Tue, 10 Nov 2020 22:54:53 GMT
|
23
|
+
p3p:
|
24
|
+
- CP="NOI"
|
21
25
|
server:
|
22
|
-
-
|
23
|
-
|
24
|
-
-
|
26
|
+
- Apache
|
27
|
+
x-xss-protection:
|
28
|
+
- 1; mode=block
|
29
|
+
x-cache:
|
30
|
+
- Miss from cloudfront
|
31
|
+
via:
|
32
|
+
- 1.1 794a3d3af21f401cf5ddf53187ea3030.cloudfront.net (CloudFront)
|
33
|
+
x-amz-cf-pop:
|
34
|
+
- SLC50-C1
|
35
|
+
x-amz-cf-id:
|
36
|
+
- GJCbwPqXsBexp4jID9_Egue4GsgTQ1Tp_Gq1a6QdNuVF6udUyq6U6A==
|
25
37
|
body:
|
26
38
|
encoding: UTF-8
|
27
39
|
string: ''
|
28
40
|
http_version:
|
29
|
-
recorded_at:
|
41
|
+
recorded_at: Tue, 10 Nov 2020 22:54:53 GMT
|
30
42
|
- request:
|
31
43
|
method: post
|
32
44
|
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/registrations
|
@@ -35,7 +47,7 @@ http_interactions:
|
|
35
47
|
string: '{"courseId":"testing-golf-explained","registrationId":"testing-golf-explained-registration-1","learner":{"id":"testing-golf-explained-learner-1","firstName":"Släshy","lastName":"Mč/SláshFacę"},"postBack":{"url":"http://playtronics.com/passback/","authType":"FORM","userName":"werner_brandes","password":"passport","resultsFormat":"ACTIVITY"}}'
|
36
48
|
headers:
|
37
49
|
User-Agent:
|
38
|
-
- ScormEngine Ruby Gem 0.
|
50
|
+
- ScormEngine Ruby Gem 0.8.2
|
39
51
|
Authorization:
|
40
52
|
- Basic <BASIC_AUTH>
|
41
53
|
Content-Type:
|
@@ -43,17 +55,29 @@ http_interactions:
|
|
43
55
|
response:
|
44
56
|
status:
|
45
57
|
code: 204
|
46
|
-
message:
|
58
|
+
message: No Content
|
47
59
|
headers:
|
60
|
+
connection:
|
61
|
+
- close
|
48
62
|
date:
|
49
|
-
-
|
63
|
+
- Tue, 10 Nov 2020 22:54:54 GMT
|
64
|
+
p3p:
|
65
|
+
- CP="NOI"
|
50
66
|
server:
|
51
|
-
-
|
52
|
-
|
53
|
-
-
|
67
|
+
- Apache
|
68
|
+
x-xss-protection:
|
69
|
+
- 1; mode=block
|
70
|
+
x-cache:
|
71
|
+
- Miss from cloudfront
|
72
|
+
via:
|
73
|
+
- 1.1 41b8cfb6434b49744c4c497f1135d9e1.cloudfront.net (CloudFront)
|
74
|
+
x-amz-cf-pop:
|
75
|
+
- SLC50-C1
|
76
|
+
x-amz-cf-id:
|
77
|
+
- MNO_XjgRA1bryrv5ls0D-N3raa-Ef4gvQcc9R9nOKtavmBUIX4RewQ==
|
54
78
|
body:
|
55
79
|
encoding: UTF-8
|
56
80
|
string: ''
|
57
81
|
http_version:
|
58
|
-
recorded_at:
|
82
|
+
recorded_at: Tue, 10 Nov 2020 22:54:54 GMT
|
59
83
|
recorded_with: VCR 4.0.0
|
@@ -7,32 +7,40 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
Content-Type:
|
11
|
-
- application/json
|
12
10
|
User-Agent:
|
13
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.8.2
|
14
12
|
Authorization:
|
15
13
|
- Basic <BASIC_AUTH>
|
16
14
|
response:
|
17
15
|
status:
|
18
16
|
code: 404
|
19
|
-
message:
|
17
|
+
message: Not Found
|
20
18
|
headers:
|
21
19
|
content-type:
|
22
20
|
- application/json
|
23
|
-
date:
|
24
|
-
- Wed, 25 Jul 2018 22:09:51 GMT
|
25
|
-
server:
|
26
|
-
- nginx
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
21
|
content-length:
|
30
|
-
- '
|
22
|
+
- '71'
|
31
23
|
connection:
|
32
|
-
-
|
24
|
+
- close
|
25
|
+
date:
|
26
|
+
- Tue, 10 Nov 2020 22:58:41 GMT
|
27
|
+
p3p:
|
28
|
+
- CP="NOI"
|
29
|
+
server:
|
30
|
+
- Apache
|
31
|
+
x-xss-protection:
|
32
|
+
- 1; mode=block
|
33
|
+
x-cache:
|
34
|
+
- Error from cloudfront
|
35
|
+
via:
|
36
|
+
- 1.1 34d83bdced2ff151ec8c14c89b681519.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- U1t1WQLbiBBtrZFyKrTicJs0zvVDM5IAVd8q31jdDMRiPY7wH0iTSg==
|
33
41
|
body:
|
34
|
-
encoding:
|
35
|
-
string: '{"message":"
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"message":"Registration ID ''nonexistent-registration'' does not exist"}'
|
36
44
|
http_version:
|
37
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 10 Nov 2020 22:58:41 GMT
|
38
46
|
recorded_with: VCR 4.0.0
|
@@ -7,32 +7,40 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
Content-Type:
|
11
|
-
- application/json
|
12
10
|
User-Agent:
|
13
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.8.2
|
14
12
|
Authorization:
|
15
13
|
- Basic <BASIC_AUTH>
|
16
14
|
response:
|
17
15
|
status:
|
18
16
|
code: 200
|
19
|
-
message:
|
17
|
+
message: OK
|
20
18
|
headers:
|
21
19
|
content-type:
|
22
20
|
- application/json
|
23
|
-
date:
|
24
|
-
- Wed, 25 Jul 2018 22:09:50 GMT
|
25
|
-
server:
|
26
|
-
- nginx
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
21
|
content-length:
|
30
|
-
- '
|
22
|
+
- '8945'
|
31
23
|
connection:
|
32
|
-
-
|
24
|
+
- close
|
25
|
+
date:
|
26
|
+
- Tue, 10 Nov 2020 22:58:40 GMT
|
27
|
+
p3p:
|
28
|
+
- CP="NOI"
|
29
|
+
server:
|
30
|
+
- Apache
|
31
|
+
x-xss-protection:
|
32
|
+
- 1; mode=block
|
33
|
+
x-cache:
|
34
|
+
- Miss from cloudfront
|
35
|
+
via:
|
36
|
+
- 1.1 07c02ae6c53d85283eb15380264d9998.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- 8uvsJRlCLsBYai1xfUkNM1JTBIW9LsMBbVdMQa9Djl8Dly_9R_GEaA==
|
33
41
|
body:
|
34
|
-
encoding:
|
35
|
-
string: '{"configurationItems":[{"id":"PlayerLaunchType","value":"FRAMESET"},{"id":"PlayerFinalScoCourseNotSatisfiedTimeoutExitAction","value":"EXIT_COURSE"},{"id":"PlayerCaptureHistoryDetailed","value":"
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"configurationItems":[{"id":"PlayerLaunchType","value":"FRAMESET"},{"id":"PlayerFinalScoCourseNotSatisfiedTimeoutExitAction","value":"EXIT_COURSE"},{"id":"WebContentForceNewWindow","value":"false"},{"id":"PlayerCaptureHistoryDetailed","value":"NO"},{"id":"PlayerOfflineSynchMode","value":"Simple"},{"id":"ContentVaultPathModifyingPrefix","value":"/vault"},{"id":"PlayerStatusRollupModeThresholdScore","value":"42"},{"id":"xAPIRewriteStatementModifier","value":""},{"id":"ApiRollupRegistrationDuringSession","value":"true"},{"id":"Lti11Roles","value":"Learner"},{"id":"PlayerSatisfiedCausesCompletion","value":"NO"},{"id":"PlayerCommMaxFailedSubmissions","value":"2"},{"id":"PlayerSuspendDataMaxLength","value":"64000"},{"id":"PlayerLookaheadSequencerMode","value":"ENABLED"},{"id":"PlayerEnableChoiceNav","value":"NO"},{"id":"PlayerIntermediateScoSatisfiedTimeoutExitAction","value":"DISPLAY_MESSAGE"},{"id":"PlayerUseQuickLookaheadSequencer","value":"YES"},{"id":"SupplementalQueryStringParametersForAllActivities","value":""},{"id":"PlayerShowCloseItem","value":"NO"},{"id":"Lti13Roles","value":"http://purl.imsglobal.org/vocab/lis/v2/institution/person#Student"},{"id":"X_SkipLaunchPage","value":"false"},{"id":"PlayerShowProgressBar","value":"NO"},{"id":"PlayerDebugLookAheadAudit","value":"true"},{"id":"PlayerDebugLookAheadDetailed","value":"true"},{"id":"PlayerCourseStructureStartsOpen","value":"NO"},{"id":"PlayerCompletionStatOfFailedSuccessStat","value":"Unknown"},{"id":"PlayerIntermediateScoSatisfiedLogoutExitAction","value":"DISPLAY_MESSAGE"},{"id":"PlayerRequiredWidth","value":"0"},{"id":"PlayerIntermediateScoNotSatisfiedNormalExitAction","value":"DISPLAY_MESSAGE"},{"id":"PlayerIsSatisfactionTracked","value":"YES"},{"id":"ContentVaultSlidingAuthExpiry","value":"60"},{"id":"TinCanInteractionsEnabled","value":"true"},{"id":"PlayerForceObjectiveCompletionSetByContent","value":"NO"},{"id":"EnableClientDebugger","value":"false"},{"id":"ForceFramesetUserAgentRegex","value":""},{"id":"PlayerWrapScoWindowWithApi","value":"NO"},{"id":"PDFContentStylesheetPath","value":""},{"id":"WhenToRestartRegistration","value":"WHEN_EXISTING_REG_IS_COMPLETE_AND_NEWER_PACKAGE_VERSION_EXISTS"},{"id":"MaxPersistRuntimeDataAttempts","value":"1"},{"id":"LegacyPlayerCustomizationStylesheetUrl","value":""},{"id":"PlayerScoreOverridesStatus","value":"NO"},{"id":"PlayerCourseStructureWidth","value":"0"},{"id":"PDFContentPageDurationThreshold","value":"5"},{"id":"AssignLatestVersionInsteadOfRestartRegistration","value":"false"},{"id":"ApiRollupRegistrationAuthUser","value":"werner_brandes"},{"id":"PrivacyPolicyUrl","value":""},{"id":"PlayerIsAvailableOffline","value":"NO"},{"id":"RecordResultsMaxPayloadSizeInBytes","value":"5242880"},{"id":"UsePlayerForTinCanLaunches","value":"true"},{"id":"SuppressNavbarWhenForcedFrameset","value":"false"},{"id":"PlayerFinalScoCourseNotSatisfiedNormalExitAction","value":"EXIT_COURSE"},{"id":"PlayerReturnToLmsAction","value":"Legacy"},{"id":"PlayerFinalScoCourseSatisfiedSuspendExitAction","value":"EXIT_COURSE"},{"id":"PlayerFinalScoCourseSatisfiedTimeoutExitAction","value":"EXIT_COURSE"},{"id":"UseDeltaRecordResultsPayload","value":"false"},{"id":"PlayerPreventWindowResize","value":"NO"},{"id":"PlayerLogoutCausesPlayerExit","value":"YES"},{"id":"PlayerIntermediateScoNotSatisfiedLogoutExitAction","value":"DISPLAY_MESSAGE"},{"id":"PlayerDebugSequencingDetailed","value":"true"},{"id":"PlayerDesiredFullScreen","value":"NO"},{"id":"MediaContentStylesheetPath","value":""},{"id":"AudioVideoContentStylesheetPath","value":""},{"id":"PlayerPreventRightClick","value":"NO"},{"id":"PromptOnPlayerClose","value":"false"},{"id":"PlayerScaleRawScore","value":"NO"},{"id":"PlayerDebugControlDetailed","value":"true"},{"id":"PlayerDebugSequencingAudit","value":"true"},{"id":"PlayerShowCourseStructure","value":"NO"},{"id":"PlayerCaptureHistory","value":"YES"},{"id":"PlayerIntermediateScoSatisfiedNormalExitAction","value":"DISPLAY_MESSAGE"},{"id":"PlayerStatusRollupModeValue","value":"COMPLETE_WHEN_ALL_UNITS_COMPLETE_AND_NOT_FAILED"},{"id":"MediaContentPathReplacementRegex","value":""},{"id":"PlayerInvokeRollupAtSuspendAll","value":"true"},{"id":"MediaContentCompletionThreshold","value":"95"},{"id":"UseLegacyMobileFramesetBehavior","value":"False"},{"id":"PlayerIsCompletionTracked","value":"YES"},{"id":"PlayerIntermediateScoNotSatisfiedTimeoutExitAction","value":"DISPLAY_MESSAGE"},{"id":"ForceFramesetByRegex","value":"true"},{"id":"StorePlayerDebugLogsInFileStoreOnExit","value":"false"},{"id":"PlayerFinalScoCourseNotSatisfiedSuspendExitAction","value":"EXIT_COURSE"},{"id":"RedirectLaunchPageOnExit","value":"false"},{"id":"PlayerIntermediateScoSatisfiedSuspendExitAction","value":"DISPLAY_MESSAGE"},{"id":"ContentLangToUrl","value":"[]"},{"id":"PlayerUseMeasureProgressBar","value":"NO"},{"id":"RedirectOnExitUrl","value":"noop"},{"id":"PlayerIntermediateScoNotSatisfiedSuspendExitAction","value":"DISPLAY_MESSAGE"},{"id":"PlayerLaunchCompletedRegsAsNoCredit","value":"YES"},{"id":"PlayerValidateInteractionResponses","value":"YES"},{"id":"PlayerStatusDisplayPreference","value":"SEPARATE"},{"id":"PlayerInternetExplorerCompatibilityMode","value":"NONE"},{"id":"ContentVaultIpAddressValidationEnabled","value":"false"},{"id":"PlayerDebugRteDetailed","value":"true"},{"id":"PlayerIsIncompleteSatisfactionMeaningful","value":"YES"},{"id":"PlayerResetRunTimeData","value":"WHEN_EXIT_IS_NOT_SUSPEND"},{"id":"PlayerScoLaunchType","value":"NEW_WINDOW"},{"id":"PlayerDesiredWidth","value":"960"},{"id":"PlayerDebugRteAudit","value":"true"},{"id":"DispatchPollingFrequency","value":"1500"},{"id":"ConcurrentLaunchDetectionEnabled","value":"true"},{"id":"PlayerCommCommitFrequency","value":"20000"},{"id":"UseModernPlayer","value":"true"},{"id":"ModernPlayerCustomizationStylesheetUrl","value":""},{"id":"ContentVaultAuthFingerprintValidationEnabled","value":"true"},{"id":"PlayerEnableFlowNav","value":"NO"},{"id":"PlayerFinalScoCourseSatisfiedLogoutExitAction","value":"EXIT_COURSE"},{"id":"PlayerDebugIncludeTimestamps","value":"true"},{"id":"PlayerIsIncompleteScoreMeaningful","value":"YES"},{"id":"ModernPlayerCustomizationScriptUrl","value":"https://d2wzd4gs88w14e.cloudfront.net/learn/assets/my-learning/scorm-player-customization-script.min.js"},{"id":"PlayerShowFinishButton","value":"NO"},{"id":"PlayerRollupEmptySetToUnknown","value":"NO"},{"id":"PlayerMakeStudentPrefsGlobalToCourse","value":"NO"},{"id":"ForceExitConcurrentLaunches","value":"false"},{"id":"PlayerFinishCausesImmediateCommit","value":"YES"},{"id":"IntermediatePageLoadAtStart","value":"true"},{"id":"PlayerRequiredFullScreen","value":"NO"},{"id":"PlayerAlwaysFlowToFirstSco","value":"YES"},{"id":"ApiCourseDeleteAttemptDeleteFiles","value":"false"},{"id":"ModernPlayerCustomizationLogo","value":""},{"id":"PlayerInvalidMenuItemAction","value":"DISABLE"},{"id":"PlayerRollupRuntimeAtScoUnload","value":"true"},{"id":"PlayerDebugControlAudit","value":"true"},{"id":"ContentVaultAuthExpiry","value":"43200"},{"id":"GenerateTinCanLaunchStatements","value":"true"},{"id":"Lti13PrivacySettings","value":"LEARNER_NAME_ONLY"},{"id":"RemoteDeliverPageUrl","value":""},{"id":"ContentVaultSlidingAuthExpiryEnabled","value":"false"},{"id":"DefaultModernPlayerTheme","value":"default"},{"id":"PlayerFirstScoIsPretest","value":"NO"},{"id":"PlayerIsScoreTracked","value":"YES"},{"id":"DispatchHideGetRegistrationErrorDuringTeardown","value":"false"},{"id":"PlayerTimeLimit","value":"0"},{"id":"PlayerApplyRollupStatusToSuccess","value":"NO"},{"id":"Cmi5EntitlementKeyAlternate","value":""},{"id":"ApiRollupRegistrationSynchronous","value":"true"},{"id":"Lti11PrivacySettings","value":"LEARNER_NAME_ONLY"},{"id":"PlayerShowNavBar","value":"NO"},{"id":"ApiRollupRegistrationAuthType","value":"FORM"},{"id":"PlayerDebugSequencingSimple","value":"false"},{"id":"ContentVaultEnabled","value":"True"},{"id":"PlayerRequiredHeight","value":"0"},{"id":"PlayerScoreRollupModeNumberOfScoringObjects","value":"-2147483648"},{"id":"PlayerDesiredHeight","value":"600"},{"id":"ApiRollupRegistrationAuthPassword","value":"passport"},{"id":"PlayerShowHelp","value":"NO"},{"id":"PlayerFinalScoCourseNotSatisfiedLogoutExitAction","value":"EXIT_COURSE"},{"id":"LegacyPlayerCustomizationScriptUrl","value":""},{"id":"CompressRecordResultsPayload","value":"false"},{"id":"ApiRollupRegistrationFormat","value":"ACTIVITY"},{"id":"ApiRollupRegistrationPostBackUrl","value":"http://playtronics.com/passback/"},{"id":"PlayerFinalScoCourseSatisfiedNormalExitAction","value":"EXIT_COURSE"},{"id":"PlayerAllowCompleteStatusChange","value":"NO"},{"id":"RedirectOnRefreshUrl","value":""},{"id":"PreferSendBeacon","value":"false"},{"id":"ConcurrentLaunchDetectionHistoryRows","value":"5"},{"id":"PlayerScoreRollupModeValue","value":"AVERAGE_SCORE_OF_ALL_UNITS_WITH_SCORES"},{"id":"PlayerShowTitleBar","value":"NO"},{"id":"PlayerForceDisableRootChoice","value":"NO"}]}'
|
36
44
|
http_version:
|
37
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 10 Nov 2020 22:58:40 GMT
|
38
46
|
recorded_with: VCR 4.0.0
|