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,62 +8,39 @@ 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
|
-
- Thu, 04 Oct 2018 21:22:44 GMT
|
23
|
-
server:
|
24
|
-
- nginx
|
25
|
-
vary:
|
26
|
-
- Accept-Encoding
|
27
21
|
content-length:
|
28
|
-
- '
|
22
|
+
- '3582'
|
29
23
|
connection:
|
30
|
-
-
|
31
|
-
body:
|
32
|
-
encoding: ASCII-8BIT
|
33
|
-
string: '{"dispatches":[{"id":"paginated-dispatch-0","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-1","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-2","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-3","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-4","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-5","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-6","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-7","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-8","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-9","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}}],"more":"https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/scormenginegemtesting-default/dispatches?configuration=ScormEngineGemTesting-default&more=AAABZemSOZgAAAAc"}'
|
34
|
-
http_version:
|
35
|
-
recorded_at: Thu, 04 Oct 2018 21:22:44 GMT
|
36
|
-
- request:
|
37
|
-
method: get
|
38
|
-
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/scormenginegemtesting-default/dispatches?configuration=ScormEngineGemTesting-default&more=AAABZemSOZgAAAAc
|
39
|
-
body:
|
40
|
-
encoding: US-ASCII
|
41
|
-
string: ''
|
42
|
-
headers:
|
43
|
-
User-Agent:
|
44
|
-
- ScormEngine Ruby Gem 0.6.10
|
45
|
-
Authorization:
|
46
|
-
- Basic <BASIC_AUTH>
|
47
|
-
response:
|
48
|
-
status:
|
49
|
-
code: 200
|
50
|
-
message: ''
|
51
|
-
headers:
|
52
|
-
content-type:
|
53
|
-
- application/json
|
24
|
+
- close
|
54
25
|
date:
|
55
|
-
-
|
26
|
+
- Tue, 10 Nov 2020 22:58:59 GMT
|
27
|
+
p3p:
|
28
|
+
- CP="NOI"
|
56
29
|
server:
|
57
|
-
-
|
58
|
-
|
59
|
-
-
|
60
|
-
|
61
|
-
-
|
62
|
-
|
63
|
-
-
|
30
|
+
- Apache
|
31
|
+
x-xss-protection:
|
32
|
+
- 1; mode=block
|
33
|
+
x-cache:
|
34
|
+
- Miss from cloudfront
|
35
|
+
via:
|
36
|
+
- 1.1 42388efa0b39dd5e33d371d553418dbf.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- 3NU6rwj7H1hjs42NK_8DA92s5Xp7qJXHsqj7qXh0BFArPevBeWhXPQ==
|
64
41
|
body:
|
65
|
-
encoding:
|
66
|
-
string: '{"dispatches":[{"id":"
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"dispatches":[{"id":"testing-dispatch-id-2","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-0","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-1","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-2","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-3","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-4","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-5","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-6","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-7","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}},{"id":"paginated-dispatch-8","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}}],"more":"/ScormEngineInterface/api/v1/scormenginegemtesting-default/dispatches?configuration=ScormEngineGemTesting-default&more=AAABdbRiJ8gAAAE4"}'
|
67
44
|
http_version:
|
68
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 10 Nov 2020 22:58:59 GMT
|
69
46
|
recorded_with: VCR 4.0.0
|
data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_post_dispatch/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:59:21 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 6fd49f86f210f7efc9603d6f872dd0cd.cloudfront.net (CloudFront)
|
33
|
+
x-amz-cf-pop:
|
34
|
+
- SLC50-C1
|
35
|
+
x-amz-cf-id:
|
36
|
+
- QKRKOarkaKIIrQSg57StTfngB9PjPRXTbyoPPg_WM4pziNAGWpWsOw==
|
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:59:21 GMT
|
30
42
|
- request:
|
31
43
|
method: post
|
32
44
|
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches
|
@@ -35,7 +47,7 @@ http_interactions:
|
|
35
47
|
string: '{"dispatches":[{"id":"testing-dispatch-id-2","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01","externalConfig":null}}]}'
|
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:59:21 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 ec99de6a8df96b4e008b942ab98e6595.cloudfront.net (CloudFront)
|
74
|
+
x-amz-cf-pop:
|
75
|
+
- SLC50-C1
|
76
|
+
x-amz-cf-id:
|
77
|
+
- BjVm4IHlXOwJJY57qZZ_KP71VFw4IZme530t_QesPGF3j-TBvWbZYw==
|
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:59:22 GMT
|
59
83
|
recorded_with: VCR 4.0.0
|
@@ -8,31 +8,41 @@ 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
|
-
- Thu, 04 Oct 2018 21:23:08 GMT
|
23
|
-
server:
|
24
|
-
- nginx
|
25
|
-
vary:
|
26
|
-
- Accept-Encoding
|
27
21
|
content-length:
|
28
|
-
- '
|
22
|
+
- '325'
|
29
23
|
connection:
|
30
|
-
-
|
24
|
+
- close
|
25
|
+
date:
|
26
|
+
- Tue, 10 Nov 2020 22:59:20 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 3917d15f2f5fbcd37ae2fb2846d0022e.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- nPdkuXLv3V4yNCeuA8VuMWAehUb_MEWaGHG6nYKEIo5IsNQjj5FGDg==
|
31
41
|
body:
|
32
|
-
encoding:
|
33
|
-
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":false,"registrationCount":0,"registrationResetDate":"2020-11-10T22:59:19.000Z"}'
|
34
44
|
http_version:
|
35
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 10 Nov 2020 22:59:20 GMT
|
36
46
|
- request:
|
37
47
|
method: post
|
38
48
|
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches
|
@@ -41,7 +51,7 @@ http_interactions:
|
|
41
51
|
string: '{"dispatches":[{"id":"testing-dispatch-id-2","data":{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2030-01-01","externalConfig":null}}]}'
|
42
52
|
headers:
|
43
53
|
User-Agent:
|
44
|
-
- ScormEngine Ruby Gem 0.
|
54
|
+
- ScormEngine Ruby Gem 0.8.2
|
45
55
|
Authorization:
|
46
56
|
- Basic <BASIC_AUTH>
|
47
57
|
Content-Type:
|
@@ -49,19 +59,31 @@ http_interactions:
|
|
49
59
|
response:
|
50
60
|
status:
|
51
61
|
code: 204
|
52
|
-
message:
|
62
|
+
message: No Content
|
53
63
|
headers:
|
64
|
+
connection:
|
65
|
+
- close
|
54
66
|
date:
|
55
|
-
-
|
67
|
+
- Tue, 10 Nov 2020 22:59:20 GMT
|
68
|
+
p3p:
|
69
|
+
- CP="NOI"
|
56
70
|
server:
|
57
|
-
-
|
58
|
-
|
59
|
-
-
|
71
|
+
- Apache
|
72
|
+
x-xss-protection:
|
73
|
+
- 1; mode=block
|
74
|
+
x-cache:
|
75
|
+
- Miss from cloudfront
|
76
|
+
via:
|
77
|
+
- 1.1 8bb5b74069e9505becb1d7e84c9b94e8.cloudfront.net (CloudFront)
|
78
|
+
x-amz-cf-pop:
|
79
|
+
- SLC50-C1
|
80
|
+
x-amz-cf-id:
|
81
|
+
- m2A5G5hgOtccglNkiaOxVivQDDbYTW3zy42Uzg7-uedsXVTgbGGByA==
|
60
82
|
body:
|
61
83
|
encoding: UTF-8
|
62
84
|
string: ''
|
63
85
|
http_version:
|
64
|
-
recorded_at:
|
86
|
+
recorded_at: Tue, 10 Nov 2020 22:59:20 GMT
|
65
87
|
- request:
|
66
88
|
method: get
|
67
89
|
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id-2
|
@@ -70,29 +92,39 @@ http_interactions:
|
|
70
92
|
string: ''
|
71
93
|
headers:
|
72
94
|
User-Agent:
|
73
|
-
- ScormEngine Ruby Gem 0.
|
95
|
+
- ScormEngine Ruby Gem 0.8.2
|
74
96
|
Authorization:
|
75
97
|
- Basic <BASIC_AUTH>
|
76
98
|
response:
|
77
99
|
status:
|
78
100
|
code: 200
|
79
|
-
message:
|
101
|
+
message: OK
|
80
102
|
headers:
|
81
103
|
content-type:
|
82
104
|
- application/json
|
83
|
-
date:
|
84
|
-
- Thu, 04 Oct 2018 21:23:08 GMT
|
85
|
-
server:
|
86
|
-
- nginx
|
87
|
-
vary:
|
88
|
-
- Accept-Encoding
|
89
105
|
content-length:
|
90
|
-
- '
|
106
|
+
- '325'
|
91
107
|
connection:
|
92
|
-
-
|
108
|
+
- close
|
109
|
+
date:
|
110
|
+
- Tue, 10 Nov 2020 22:59:21 GMT
|
111
|
+
p3p:
|
112
|
+
- CP="NOI"
|
113
|
+
server:
|
114
|
+
- Apache
|
115
|
+
x-xss-protection:
|
116
|
+
- 1; mode=block
|
117
|
+
x-cache:
|
118
|
+
- Miss from cloudfront
|
119
|
+
via:
|
120
|
+
- 1.1 ec99de6a8df96b4e008b942ab98e6595.cloudfront.net (CloudFront)
|
121
|
+
x-amz-cf-pop:
|
122
|
+
- SLC50-C1
|
123
|
+
x-amz-cf-id:
|
124
|
+
- TQwFHwU2F4BhPNaS-pSb7OiwdaCg9tbgkHVqcfr2eLrDASwhnlRwbA==
|
93
125
|
body:
|
94
|
-
encoding:
|
95
|
-
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2030-01-01T00:00:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2030-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":false,"registrationCount":0,"registrationResetDate":"2020-11-10T22:59:19.000Z"}'
|
96
128
|
http_version:
|
97
|
-
recorded_at:
|
129
|
+
recorded_at: Tue, 10 Nov 2020 22:59:21 GMT
|
98
130
|
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01","externalConfig":null}'
|
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,17 +16,29 @@ http_interactions:
|
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 204
|
19
|
-
message:
|
19
|
+
message: No Content
|
20
20
|
headers:
|
21
|
+
connection:
|
22
|
+
- close
|
21
23
|
date:
|
22
|
-
-
|
24
|
+
- Tue, 10 Nov 2020 22:59:31 GMT
|
25
|
+
p3p:
|
26
|
+
- CP="NOI"
|
23
27
|
server:
|
24
|
-
-
|
25
|
-
|
26
|
-
-
|
28
|
+
- Apache
|
29
|
+
x-xss-protection:
|
30
|
+
- 1; mode=block
|
31
|
+
x-cache:
|
32
|
+
- Miss from cloudfront
|
33
|
+
via:
|
34
|
+
- 1.1 a2a145b915c6e207f03377a67fbebd5f.cloudfront.net (CloudFront)
|
35
|
+
x-amz-cf-pop:
|
36
|
+
- SLC50-C1
|
37
|
+
x-amz-cf-id:
|
38
|
+
- XOJDo_CUXSeety_ebC1Jrr5Pp_eX3J6zPiCvwwaVyxxQ80NQODe3Tg==
|
27
39
|
body:
|
28
40
|
encoding: UTF-8
|
29
41
|
string: ''
|
30
42
|
http_version:
|
31
|
-
recorded_at:
|
43
|
+
recorded_at: Tue, 10 Nov 2020 22:59:31 GMT
|
32
44
|
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01","externalConfig":null}'
|
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,19 +16,31 @@ http_interactions:
|
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 204
|
19
|
-
message:
|
19
|
+
message: No Content
|
20
20
|
headers:
|
21
|
+
connection:
|
22
|
+
- close
|
21
23
|
date:
|
22
|
-
-
|
24
|
+
- Tue, 10 Nov 2020 22:59:35 GMT
|
25
|
+
p3p:
|
26
|
+
- CP="NOI"
|
23
27
|
server:
|
24
|
-
-
|
25
|
-
|
26
|
-
-
|
28
|
+
- Apache
|
29
|
+
x-xss-protection:
|
30
|
+
- 1; mode=block
|
31
|
+
x-cache:
|
32
|
+
- Miss from cloudfront
|
33
|
+
via:
|
34
|
+
- 1.1 3460152017718aa24664bf5b7ddf58de.cloudfront.net (CloudFront)
|
35
|
+
x-amz-cf-pop:
|
36
|
+
- SLC50-C1
|
37
|
+
x-amz-cf-id:
|
38
|
+
- 0Qqoi1SAgUH4GuqFJhMmyZTFY9SPFuxtFK_BXeacbg66JLp-kDprww==
|
27
39
|
body:
|
28
40
|
encoding: UTF-8
|
29
41
|
string: ''
|
30
42
|
http_version:
|
31
|
-
recorded_at:
|
43
|
+
recorded_at: Tue, 10 Nov 2020 22:59:35 GMT
|
32
44
|
- request:
|
33
45
|
method: get
|
34
46
|
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id-2
|
@@ -37,29 +49,39 @@ http_interactions:
|
|
37
49
|
string: ''
|
38
50
|
headers:
|
39
51
|
User-Agent:
|
40
|
-
- ScormEngine Ruby Gem 0.
|
52
|
+
- ScormEngine Ruby Gem 0.8.2
|
41
53
|
Authorization:
|
42
54
|
- Basic <BASIC_AUTH>
|
43
55
|
response:
|
44
56
|
status:
|
45
57
|
code: 200
|
46
|
-
message:
|
58
|
+
message: OK
|
47
59
|
headers:
|
48
60
|
content-type:
|
49
61
|
- application/json
|
50
|
-
date:
|
51
|
-
- Thu, 04 Oct 2018 21:21:56 GMT
|
52
|
-
server:
|
53
|
-
- nginx
|
54
|
-
vary:
|
55
|
-
- Accept-Encoding
|
56
62
|
content-length:
|
57
|
-
- '
|
63
|
+
- '324'
|
58
64
|
connection:
|
59
|
-
-
|
65
|
+
- close
|
66
|
+
date:
|
67
|
+
- Tue, 10 Nov 2020 22:59:35 GMT
|
68
|
+
p3p:
|
69
|
+
- CP="NOI"
|
70
|
+
server:
|
71
|
+
- Apache
|
72
|
+
x-xss-protection:
|
73
|
+
- 1; mode=block
|
74
|
+
x-cache:
|
75
|
+
- Miss from cloudfront
|
76
|
+
via:
|
77
|
+
- 1.1 be07bf9bf37f2e63b7b1c8863b7a11ca.cloudfront.net (CloudFront)
|
78
|
+
x-amz-cf-pop:
|
79
|
+
- SLC50-C1
|
80
|
+
x-amz-cf-id:
|
81
|
+
- M3oCYDDnhr2TcQC6nTFV10Z2xIHY6-RFWEN8THMKkNZ-D9iMWvr0gA==
|
60
82
|
body:
|
61
|
-
encoding:
|
62
|
-
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00.000Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"2020-11-10T22:59:30.000Z"}'
|
63
85
|
http_version:
|
64
|
-
recorded_at:
|
86
|
+
recorded_at: Tue, 10 Nov 2020 22:59:35 GMT
|
65
87
|
recorded_with: VCR 4.0.0
|