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
@@ -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
|
-
- Tue, 24 Jul 2018 20:23:16 GMT
|
25
|
-
server:
|
26
|
-
- nginx
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
21
|
content-length:
|
30
|
-
- '
|
22
|
+
- '54'
|
31
23
|
connection:
|
32
|
-
-
|
24
|
+
- close
|
25
|
+
date:
|
26
|
+
- Tue, 10 Nov 2020 22:54:26 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 b165299644482a8ffbc85462a8b9e7f1.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- na93pydDo2SCLy10gONW_R1uMcEdj4bea6Si0wlID64HJlZQlAqFww==
|
33
41
|
body:
|
34
|
-
encoding:
|
35
|
-
string: '{"message":"
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"message":"Course ID ''invalid-bogus'' does not exist"}'
|
36
44
|
http_version:
|
37
|
-
recorded_at: Tue,
|
45
|
+
recorded_at: Tue, 10 Nov 2020 22:54:26 GMT
|
38
46
|
recorded_with: VCR 4.0.0
|
@@ -7,83 +7,103 @@ 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
|
-
- Tue, 24 Jul 2018 20:24:46 GMT
|
25
|
-
server:
|
26
|
-
- nginx
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
21
|
content-length:
|
30
|
-
- '
|
22
|
+
- '2138'
|
31
23
|
connection:
|
32
|
-
-
|
24
|
+
- close
|
25
|
+
date:
|
26
|
+
- Tue, 10 Nov 2020 22:54:23 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 c4ab6962f5d964707d14e1b456abda18.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- 3Fg9X6s2fUcuZBwdChnEOV6j8t4YmmReDT-em9Hga7pj1bYj4wtWsg==
|
33
41
|
body:
|
34
|
-
encoding:
|
42
|
+
encoding: UTF-8
|
35
43
|
string: '{"courses":[{"id":"testing-golf-explained","version":0,"title":"Golf
|
36
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":
|
37
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
38
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
39
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
40
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
41
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
42
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
43
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
44
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
45
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
44
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":1,"updated":"2020-09-25T22:59:25.000Z"},{"id":"a-valid-course-url","version":0,"title":"Golf
|
45
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:33.000Z"},{"id":"testing-url-123","version":0,"title":"Golf
|
46
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:46.000Z"},{"id":"testing-pathname-123","version":0,"title":"Golf
|
47
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:52.000Z"},{"id":"a-previously-existing-course","version":0,"title":"Golf
|
48
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:59.000Z"},{"id":"paginated-course-0","version":0,"title":"Golf
|
49
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:19.000Z"},{"id":"paginated-course-1","version":0,"title":"Golf
|
50
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:25.000Z"},{"id":"paginated-course-2","version":0,"title":"Golf
|
51
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:31.000Z"},{"id":"paginated-course-3","version":0,"title":"Golf
|
52
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:37.000Z"},{"id":"paginated-course-4","version":0,"title":"Golf
|
53
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:43.000Z"}],"more":"/ScormEngineInterface/api/v1/scormenginegemtesting-default/courses?configuration=ScormEngineGemTesting-default&more=AAABdOX-63gAAAtO"}'
|
46
54
|
http_version:
|
47
|
-
recorded_at: Tue,
|
55
|
+
recorded_at: Tue, 10 Nov 2020 22:54:23 GMT
|
48
56
|
- request:
|
49
57
|
method: get
|
50
|
-
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/scormenginegemtesting-default/courses?configuration=ScormEngineGemTesting-default&more=
|
58
|
+
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/scormenginegemtesting-default/courses?configuration=ScormEngineGemTesting-default&more=AAABdOX-63gAAAtO
|
51
59
|
body:
|
52
60
|
encoding: US-ASCII
|
53
61
|
string: ''
|
54
62
|
headers:
|
55
|
-
Content-Type:
|
56
|
-
- application/json
|
57
63
|
User-Agent:
|
58
|
-
- ScormEngine Ruby Gem 0.
|
64
|
+
- ScormEngine Ruby Gem 0.8.2
|
59
65
|
Authorization:
|
60
66
|
- Basic <BASIC_AUTH>
|
61
67
|
response:
|
62
68
|
status:
|
63
69
|
code: 200
|
64
|
-
message:
|
70
|
+
message: OK
|
65
71
|
headers:
|
66
72
|
content-type:
|
67
73
|
- application/json
|
68
|
-
date:
|
69
|
-
- Tue, 24 Jul 2018 20:24:47 GMT
|
70
|
-
server:
|
71
|
-
- nginx
|
72
|
-
vary:
|
73
|
-
- Accept-Encoding
|
74
74
|
content-length:
|
75
|
-
- '
|
75
|
+
- '2004'
|
76
76
|
connection:
|
77
|
-
-
|
77
|
+
- close
|
78
|
+
date:
|
79
|
+
- Tue, 10 Nov 2020 22:54:23 GMT
|
80
|
+
p3p:
|
81
|
+
- CP="NOI"
|
82
|
+
server:
|
83
|
+
- Apache
|
84
|
+
x-xss-protection:
|
85
|
+
- 1; mode=block
|
86
|
+
x-cache:
|
87
|
+
- Miss from cloudfront
|
88
|
+
via:
|
89
|
+
- 1.1 a2a145b915c6e207f03377a67fbebd5f.cloudfront.net (CloudFront)
|
90
|
+
x-amz-cf-pop:
|
91
|
+
- SLC50-C1
|
92
|
+
x-amz-cf-id:
|
93
|
+
- YA69aSOZqE3Jxbw0EBNvs-e1xXDM3819SrxYYE2mNLvfAB_qijj7zA==
|
78
94
|
body:
|
79
|
-
encoding:
|
95
|
+
encoding: UTF-8
|
80
96
|
string: '{"courses":[{"id":"paginated-course-5","version":0,"title":"Golf Explained
|
81
|
-
- Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
82
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
83
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
84
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
85
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
86
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
97
|
+
- Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:49.000Z"},{"id":"paginated-course-6","version":0,"title":"Golf
|
98
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:55.000Z"},{"id":"paginated-course-7","version":0,"title":"Golf
|
99
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:09:01.000Z"},{"id":"paginated-course-8","version":0,"title":"Golf
|
100
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:09:07.000Z"},{"id":"paginated-course-9","version":0,"title":"Golf
|
101
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:09:13.000Z"},{"id":"paginated-course-10","version":0,"title":"Golf
|
102
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:09:19.000Z"},{"id":"testing-golf-explained-no-registrations","version":0,"title":"Golf
|
103
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:09:31.000Z"},{"id":"a-valid-course-url","version":1,"title":"Golf
|
104
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-02T16:54:50.000Z"},{"id":"testing-url-123","version":1,"title":"Golf
|
105
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-02T16:55:05.000Z"},{"id":"testing-pathname-123","version":1,"title":"Golf
|
106
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-02T16:55:11.000Z"}]}'
|
87
107
|
http_version:
|
88
|
-
recorded_at: Tue,
|
108
|
+
recorded_at: Tue, 10 Nov 2020 22:54:24 GMT
|
89
109
|
recorded_with: VCR 4.0.0
|
@@ -7,42 +7,50 @@ 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
|
-
- Tue, 24 Jul 2018 20:24:38 GMT
|
25
|
-
server:
|
26
|
-
- nginx
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
21
|
content-length:
|
30
|
-
- '
|
22
|
+
- '2138'
|
31
23
|
connection:
|
32
|
-
-
|
24
|
+
- close
|
25
|
+
date:
|
26
|
+
- Tue, 10 Nov 2020 22:54: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 27b097f1b9769d8459cc46b29d99a61b.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- 1VM27zreJGXS1mbySh4oiv2NQwBH5Bj8eu3dasTLBdxGJtCpv84sKA==
|
33
41
|
body:
|
34
|
-
encoding:
|
42
|
+
encoding: UTF-8
|
35
43
|
string: '{"courses":[{"id":"testing-golf-explained","version":0,"title":"Golf
|
36
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":
|
37
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
38
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
39
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
40
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
41
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
42
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
43
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
44
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
45
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
44
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":1,"updated":"2020-09-25T22:59:25.000Z"},{"id":"a-valid-course-url","version":0,"title":"Golf
|
45
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:33.000Z"},{"id":"testing-url-123","version":0,"title":"Golf
|
46
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:46.000Z"},{"id":"testing-pathname-123","version":0,"title":"Golf
|
47
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:52.000Z"},{"id":"a-previously-existing-course","version":0,"title":"Golf
|
48
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:59.000Z"},{"id":"paginated-course-0","version":0,"title":"Golf
|
49
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:19.000Z"},{"id":"paginated-course-1","version":0,"title":"Golf
|
50
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:25.000Z"},{"id":"paginated-course-2","version":0,"title":"Golf
|
51
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:31.000Z"},{"id":"paginated-course-3","version":0,"title":"Golf
|
52
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:37.000Z"},{"id":"paginated-course-4","version":0,"title":"Golf
|
53
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:43.000Z"}],"more":"/ScormEngineInterface/api/v1/scormenginegemtesting-default/courses?configuration=ScormEngineGemTesting-default&more=AAABdOX-63gAAAtO"}'
|
46
54
|
http_version:
|
47
|
-
recorded_at: Tue,
|
55
|
+
recorded_at: Tue, 10 Nov 2020 22:54:20 GMT
|
48
56
|
recorded_with: VCR 4.0.0
|
@@ -7,31 +7,41 @@ 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: 400
|
19
|
-
message:
|
17
|
+
message: Bad Request
|
20
18
|
headers:
|
21
19
|
content-type:
|
22
20
|
- application/json
|
23
|
-
date:
|
24
|
-
- Tue, 24 Jul 2018 20:23:23 GMT
|
25
|
-
server:
|
26
|
-
- nginx
|
27
21
|
content-length:
|
28
22
|
- '100'
|
29
23
|
connection:
|
30
|
-
-
|
24
|
+
- close
|
25
|
+
date:
|
26
|
+
- Tue, 10 Nov 2020 22:54:24 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 3a3c5f259ae7ff22c721cf2dd9f734af.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- jSoG9aHUMhw-0_4-m10R99R38xX0fF0Y-lWSlL3R0JcUlvBZ3rpKJg==
|
31
41
|
body:
|
32
42
|
encoding: UTF-8
|
33
43
|
string: '{"message":"''invalid'' is either not a timestamp or seems to be not
|
34
44
|
formatted according to ISO 8601"}'
|
35
45
|
http_version:
|
36
|
-
recorded_at: Tue,
|
46
|
+
recorded_at: Tue, 10 Nov 2020 22:54:24 GMT
|
37
47
|
recorded_with: VCR 4.0.0
|
data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_since_option/works.yml
CHANGED
@@ -7,37 +7,60 @@ 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
|
-
- Tue, 24 Jul 2018 20:23:22 GMT
|
25
|
-
server:
|
26
|
-
- nginx
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
21
|
content-length:
|
30
|
-
- '
|
22
|
+
- '3987'
|
31
23
|
connection:
|
32
|
-
-
|
24
|
+
- close
|
25
|
+
date:
|
26
|
+
- Tue, 10 Nov 2020 22:54:25 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 a2a145b915c6e207f03377a67fbebd5f.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- AUYVMRVwjTY-mU5PYamt-vTRcm2qMgO2_y8gW8N4Ax_QhUuctASh6g==
|
33
41
|
body:
|
34
|
-
encoding:
|
42
|
+
encoding: UTF-8
|
35
43
|
string: '{"courses":[{"id":"testing-golf-explained","version":0,"title":"Golf
|
36
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":
|
37
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
38
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
39
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
40
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
44
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":1,"updated":"2020-09-25T22:59:25.000Z"},{"id":"a-valid-course-url","version":0,"title":"Golf
|
45
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:33.000Z"},{"id":"testing-url-123","version":0,"title":"Golf
|
46
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:46.000Z"},{"id":"testing-pathname-123","version":0,"title":"Golf
|
47
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:52.000Z"},{"id":"a-previously-existing-course","version":0,"title":"Golf
|
48
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:59.000Z"},{"id":"paginated-course-0","version":0,"title":"Golf
|
49
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:19.000Z"},{"id":"paginated-course-1","version":0,"title":"Golf
|
50
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:25.000Z"},{"id":"paginated-course-2","version":0,"title":"Golf
|
51
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:31.000Z"},{"id":"paginated-course-3","version":0,"title":"Golf
|
52
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:37.000Z"},{"id":"paginated-course-4","version":0,"title":"Golf
|
53
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:43.000Z"},{"id":"paginated-course-5","version":0,"title":"Golf
|
54
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:49.000Z"},{"id":"paginated-course-6","version":0,"title":"Golf
|
55
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:55.000Z"},{"id":"paginated-course-7","version":0,"title":"Golf
|
56
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:09:01.000Z"},{"id":"paginated-course-8","version":0,"title":"Golf
|
57
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:09:07.000Z"},{"id":"paginated-course-9","version":0,"title":"Golf
|
58
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:09:13.000Z"},{"id":"paginated-course-10","version":0,"title":"Golf
|
59
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:09:19.000Z"},{"id":"testing-golf-explained-no-registrations","version":0,"title":"Golf
|
60
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:09:31.000Z"},{"id":"a-valid-course-url","version":1,"title":"Golf
|
61
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-02T16:54:50.000Z"},{"id":"testing-url-123","version":1,"title":"Golf
|
62
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-02T16:55:05.000Z"},{"id":"testing-pathname-123","version":1,"title":"Golf
|
63
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-02T16:55:11.000Z"}]}'
|
41
64
|
http_version:
|
42
|
-
recorded_at: Tue,
|
65
|
+
recorded_at: Tue, 10 Nov 2020 22:54:26 GMT
|
43
66
|
recorded_with: VCR 4.0.0
|
@@ -7,37 +7,50 @@ 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
|
-
- Tue, 24 Jul 2018 20:23:15 GMT
|
25
|
-
server:
|
26
|
-
- nginx
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
21
|
content-length:
|
30
|
-
- '
|
22
|
+
- '2138'
|
31
23
|
connection:
|
32
|
-
-
|
24
|
+
- close
|
25
|
+
date:
|
26
|
+
- Tue, 10 Nov 2020 22:54:16 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 a2a145b915c6e207f03377a67fbebd5f.cloudfront.net (CloudFront)
|
37
|
+
x-amz-cf-pop:
|
38
|
+
- SLC50-C1
|
39
|
+
x-amz-cf-id:
|
40
|
+
- x5TAi851nSGfcM88_Kjf-lrPguh-v-t_ObKyPt0cVaVVpWOzP4ECDA==
|
33
41
|
body:
|
34
|
-
encoding:
|
42
|
+
encoding: UTF-8
|
35
43
|
string: '{"courses":[{"id":"testing-golf-explained","version":0,"title":"Golf
|
36
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":
|
37
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
38
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
39
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
40
|
-
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"
|
44
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":1,"updated":"2020-09-25T22:59:25.000Z"},{"id":"a-valid-course-url","version":0,"title":"Golf
|
45
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:33.000Z"},{"id":"testing-url-123","version":0,"title":"Golf
|
46
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:46.000Z"},{"id":"testing-pathname-123","version":0,"title":"Golf
|
47
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:52.000Z"},{"id":"a-previously-existing-course","version":0,"title":"Golf
|
48
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:03:59.000Z"},{"id":"paginated-course-0","version":0,"title":"Golf
|
49
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:19.000Z"},{"id":"paginated-course-1","version":0,"title":"Golf
|
50
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:25.000Z"},{"id":"paginated-course-2","version":0,"title":"Golf
|
51
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:31.000Z"},{"id":"paginated-course-3","version":0,"title":"Golf
|
52
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:37.000Z"},{"id":"paginated-course-4","version":0,"title":"Golf
|
53
|
+
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2020-10-01T21:08:43.000Z"}],"more":"/ScormEngineInterface/api/v1/scormenginegemtesting-default/courses?configuration=ScormEngineGemTesting-default&more=AAABdOX-63gAAAtO"}'
|
41
54
|
http_version:
|
42
|
-
recorded_at: Tue,
|
55
|
+
recorded_at: Tue, 10 Nov 2020 22:54:18 GMT
|
43
56
|
recorded_with: VCR 4.0.0
|