scorm_engine 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/lib/scorm_engine/faraday/request.rb +4 -2
  3. data/lib/scorm_engine/version.rb +1 -1
  4. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about/is_successful.yml +24 -15
  5. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about/knows_the_platform.yml +24 -15
  6. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about/knows_the_version.yml +24 -15
  7. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about_user_count/accepts_before_option.yml +23 -15
  8. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about_user_count/accepts_since_option.yml +23 -15
  9. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about_user_count/is_successful.yml +23 -15
  10. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about_user_count/tracks_combined_counts.yml +23 -15
  11. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_About/_get_about_user_count/tracks_per_tenantcounts.yml +23 -15
  12. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_get_app_configuration/is_successful.yml +10 -10
  13. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_get_app_configuration/returns_settings_and_values.yml +10 -10
  14. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_post_app_configuration/fails_when_settings_are_invalid.yml +7 -7
  15. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_post_app_configuration/is_successful.yml +7 -7
  16. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Configuration/_post_app_configuration/persists_the_settings.yml +34 -34
  17. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_delete_course/fails_when_id_is_invalid.yml +23 -15
  18. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_delete_course/works.yml +19 -9
  19. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_detail/fails_when_id_is_invalid.yml +23 -15
  20. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_detail/is_successful.yml +24 -16
  21. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_detail/results/sucessfully_creates_the_Course_attributes.yml +24 -16
  22. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_preview/fails_when_id_is_invalid.yml +23 -15
  23. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_preview/is_successful.yml +23 -15
  24. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_preview/results/returns_a_URL_string.yml +23 -15
  25. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_course_preview/results/returns_a_URL_string_containing_a_signed_jwt.yml +46 -0
  26. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_course_id_option/fetches_a_single_course_but_perhaps_multiple_versions.yml +23 -15
  27. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_course_id_option/returns_404_when_ID_is_invalid.yml +23 -15
  28. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_more_option_pagination_/returns_all_the_courses.yml +109 -44
  29. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_more_option_pagination_/returns_the_more_key_in_the_raw_response.yml +32 -24
  30. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_since_option/fails_when_passed_an_invalid_value.yml +20 -10
  31. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/_since_option/works.yml +39 -19
  32. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/is_successful.yml +32 -19
  33. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/results/is_an_enumerator_of_Course_models.yml +32 -19
  34. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses/_get_courses/results/sucessfully_creates_the_Course_attributes.yml +32 -19
  35. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration/fails_when_id_is_invalid.yml +23 -15
  36. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration/is_successful.yml +23 -15
  37. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration/results/makes_settings_available_as_key/value_pairs.yml +23 -15
  38. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration_setting/fails_when_course_id_is_invalid.yml +23 -15
  39. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration_setting/fails_when_setting_id_is_invalid.yml +20 -10
  40. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration_setting/is_successful.yml +41 -19
  41. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_get_course_configuration_setting/results/returns_the_value_as_a_string.yml +41 -19
  42. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_post_course_configuration/fails_when_id_is_invalid.yml +25 -15
  43. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_post_course_configuration/fails_when_settings_are_invalid.yml +24 -12
  44. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_post_course_configuration/is_successful.yml +21 -9
  45. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_post_course_configuration/persists_the_settings.yml +88 -48
  46. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_put_course_configuration_setting/fails_when_course_id_is_invalid.yml +25 -15
  47. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_put_course_configuration_setting/fails_when_setting_id_is_invalid.yml +20 -10
  48. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_put_course_configuration_setting/is_successful.yml +44 -22
  49. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Configuration/_put_course_configuration_setting/results/persists_the_changes.yml +66 -34
  50. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Import/_get_course_import/successful_imports/works.yml +102 -95
  51. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Import/_get_course_import/unsuccessful_imports/fails_to_import_given_an_invalid_url.yml +100 -278
  52. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Import/_post_course_import/unsuccessful_imports/fails_to_import_a_previously_existing_course.yml +21 -9
  53. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_delete_destination/returns_success_even_when_id_is_invalid.yml +19 -9
  54. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_delete_destination/works.yml +19 -9
  55. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination/fails_when_id_is_invalid.yml +22 -14
  56. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination/is_successful.yml +22 -14
  57. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination/results/sucessfully_creates_the_destination_attributes.yml +22 -14
  58. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination_dispatches_registration_count/fails_when_invalid.yml +22 -14
  59. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination_dispatches_registration_count/works.yml +20 -10
  60. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_more_option_pagination_/returns_all_the_destinations.yml +48 -31
  61. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_more_option_pagination_/returns_the_more_key_in_the_raw_response.yml +23 -15
  62. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_since_option/fails_when_passed_an_invalid_value.yml +22 -13
  63. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_since_option/works.yml +23 -15
  64. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/is_successful.yml +23 -15
  65. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/results/is_an_enumerator_of_Destination_models.yml +23 -15
  66. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/results/sucessfully_creates_the_Destination_attributes.yml +23 -15
  67. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination/is_successful.yml +40 -18
  68. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination/is_successful_even_if_the_destination_id_is_not_unique.yml +21 -9
  69. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_enabled/fails_when_invalid.yml +24 -12
  70. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_enabled/works_when_false.yml +21 -9
  71. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_enabled/works_when_true.yml +21 -9
  72. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_registration_instancing/fails_when_invalid.yml +24 -12
  73. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_registration_instancing/works_when_false.yml +21 -9
  74. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_registration_instancing/works_when_true.yml +21 -9
  75. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_put_destination/is_successful.yml +21 -9
  76. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_put_destination/results/sucessfully_creates_the_destination_attributes.yml +43 -23
  77. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch/returns_success_even_when_id_is_invalid.yml +19 -7
  78. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch/works.yml +19 -7
  79. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch_registration_count/is_successful.yml +19 -7
  80. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch_registration_count/succeeds_even_when_id_is_invalid.yml +19 -7
  81. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/fails_when_id_is_invalid.yml +22 -12
  82. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/is_successful.yml +23 -13
  83. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/results/sucessfully_creates_the_dispatch_attributes.yml +23 -13
  84. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_enabled/is_false_when_disabled.yml +39 -15
  85. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_enabled/is_true_when_enabled.yml +39 -15
  86. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_registration_count/fails_when_id_is_invalid.yml +41 -19
  87. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_registration_count/is_successful.yml +42 -20
  88. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_registration_count/results/sucessfully_creates_the_dispatch_attributes.yml +42 -20
  89. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/fails_given_an_invalid_id.yml +22 -12
  90. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/fails_given_an_invalid_type.yml +20 -8
  91. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works.yml +24 -12
  92. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_AICC.yml +24 -12
  93. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_SCORM12.yml +24 -12
  94. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_SCORM2004-3RD.yml +24 -12
  95. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_more_option_pagination_/returns_all_the_dispatches.yml +47 -27
  96. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_more_option_pagination_/returns_the_more_key_in_the_raw_response.yml +23 -13
  97. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_since_option/fails_when_passed_an_invalid_value.yml +20 -8
  98. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_since_option/works.yml +23 -13
  99. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/is_successful.yml +23 -13
  100. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/results/is_an_enumerator_of_dispatch_models.yml +23 -13
  101. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/results/sucessfully_creates_the_dispatch_attributes.yml +21 -44
  102. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_post_dispatch/is_successful.yml +38 -14
  103. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_post_dispatch/updates_if_same_dispatch_id.yml +65 -33
  104. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch/is_successful.yml +19 -7
  105. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch/results/sucessfully_creates_the_dispatch_attributes.yml +42 -20
  106. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/fails_when_invalid.yml +22 -10
  107. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/works_when_false.yml +19 -7
  108. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/works_when_true.yml +19 -7
  109. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Ping/_get_ping/is_successful.yml +23 -15
  110. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Ping/_get_ping/reports_the_api_is_up.yml +23 -15
  111. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Ping/_get_ping/with_invalid_password/is_unsuccessful.yml +25 -17
  112. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Ping/_get_ping/with_invalid_password/returns_status_403.yml +25 -17
  113. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_delete_registration/is_failure_when_registration_does_not_exist.yml +23 -13
  114. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_delete_registration/is_successful_when_registration_exists.yml +19 -7
  115. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_exists/is_false_when_registration_does_not_exist.yml +23 -13
  116. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_exists/is_true_when_registration_exists.yml +20 -8
  117. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_instances/includes_results_we_expect.yml +26 -14
  118. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_instances/is_successful.yml +26 -14
  119. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_instances/returns_an_array_of_registrations.yml +26 -14
  120. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_launch_link/fails_when_id_is_invalid.yml +23 -13
  121. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_launch_link/is_successful.yml +23 -13
  122. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_launch_link/results/returns_a_URL_string.yml +23 -13
  123. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_progress/detail/does_not_return_activity_details_by_default.yml +24 -14
  124. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_progress/detail/returns_activity_details_if_requested.yml +24 -14
  125. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_progress/fails_when_registration_does_not_exist.yml +23 -13
  126. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registration_progress/returns_a_registration_when_it_exists.yml +24 -14
  127. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/filtering_by_course_id/excludes_results.yml +22 -12
  128. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/filtering_by_course_id/includes_results.yml +26 -14
  129. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/filtering_by_learner_id/excludes_results.yml +22 -12
  130. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/filtering_by_learner_id/includes_results.yml +26 -14
  131. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/includes_results_we_expect.yml +26 -14
  132. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/is_successful.yml +26 -14
  133. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_get_registrations/returns_an_array_of_registrations.yml +26 -14
  134. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_post_registration/fails_if_course_id_is_invalid.yml +22 -10
  135. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_post_registration/fails_if_registration_id_already_exists.yml +20 -8
  136. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_post_registration/is_successful.yml +38 -14
  137. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_post_registration/is_successful_even_when_given_a_UTF8/slashed_username.yml +38 -14
  138. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration/fails_when_id_is_invalid.yml +23 -15
  139. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration/is_successful.yml +23 -15
  140. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration/results/makes_settings_available_as_key/value_pairs.yml +23 -15
  141. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration_setting/fails_when_registration_id_is_invalid.yml +23 -15
  142. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration_setting/fails_when_setting_id_is_invalid.yml +20 -10
  143. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration_setting/is_successful.yml +41 -19
  144. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_get_registration_configuration_setting/results/returns_the_value_as_a_string.yml +41 -19
  145. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_post_registration_configuration/fails_when_id_is_invalid.yml +25 -15
  146. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_post_registration_configuration/fails_when_settings_are_invalid.yml +24 -12
  147. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_post_registration_configuration/is_successful.yml +21 -9
  148. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_post_registration_configuration/persists_the_settings.yml +88 -48
  149. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_put_registration_configuration_setting/fails_when_registration_id_is_invalid.yml +25 -15
  150. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_put_registration_configuration_setting/fails_when_setting_id_is_invalid.yml +20 -10
  151. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_put_registration_configuration_setting/is_successful.yml +43 -21
  152. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_Configuration/_put_registration_configuration_setting/results/persists_the_changes.yml +64 -32
  153. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_LaunchHistory/_get_registration_launch_history/fails_when_registration_does_not_exist.yml +23 -15
  154. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_LaunchHistory/_get_registration_launch_history/is_successful.yml +23 -31
  155. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations_LaunchHistory/_get_registration_launch_history/returns_an_array_of_registration_launch_histories.yml +23 -31
  156. data/spec/scorm_engine/api/endpoints/about_spec.rb +1 -1
  157. data/spec/scorm_engine/api/endpoints/courses/configuration_spec.rb +5 -5
  158. data/spec/scorm_engine/api/endpoints/courses_spec.rb +8 -7
  159. data/spec/scorm_engine/api/endpoints/destinations_spec.rb +2 -2
  160. data/spec/scorm_engine/api/endpoints/dispatches_spec.rb +1 -1
  161. data/spec/scorm_engine/api/endpoints/registrations/configuration_spec.rb +5 -5
  162. data/spec/scorm_engine/api/endpoints/registrations_spec.rb +2 -2
  163. data/spec/scorm_engine/api/endpoints/tenants/configuration_spec.rb +1 -1
  164. metadata +3 -4
  165. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_delete_destination/raises_ArgumentError_when_destination_id_is_missing.yml +0 -32
  166. 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,23 +8,35 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - ScormEngine Ruby Gem 0.6.10
11
+ - ScormEngine Ruby Gem 0.8.1
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
- - Thu, 04 Oct 2018 21:22:02 GMT
22
+ - Fri, 25 Sep 2020 23:05:47 GMT
23
+ p3p:
24
+ - CP="NOI"
21
25
  server:
22
- - nginx
23
- connection:
24
- - Close
26
+ - Apache
27
+ x-xss-protection:
28
+ - 1; mode=block
29
+ x-cache:
30
+ - Miss from cloudfront
31
+ via:
32
+ - 1.1 fa20ae3068db1bd7f33b9b9f40a36436.cloudfront.net (CloudFront)
33
+ x-amz-cf-pop:
34
+ - SLC50-C1
35
+ x-amz-cf-id:
36
+ - Bn-m8fWbht9pUAKqDTKptRDenVMioEH2RKBo8ZaVxP75Sk7nx21PWw==
25
37
  body:
26
38
  encoding: UTF-8
27
39
  string: ''
28
40
  http_version:
29
- recorded_at: Thu, 04 Oct 2018 21:22:02 GMT
41
+ recorded_at: Fri, 25 Sep 2020 23:05:47 GMT
30
42
  recorded_with: VCR 4.0.0
@@ -8,23 +8,35 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - ScormEngine Ruby Gem 0.6.10
11
+ - ScormEngine Ruby Gem 0.8.1
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
- - Thu, 04 Oct 2018 21:22:04 GMT
22
+ - Fri, 25 Sep 2020 23:05:48 GMT
23
+ p3p:
24
+ - CP="NOI"
21
25
  server:
22
- - nginx
23
- connection:
24
- - Close
26
+ - Apache
27
+ x-xss-protection:
28
+ - 1; mode=block
29
+ x-cache:
30
+ - Miss from cloudfront
31
+ via:
32
+ - 1.1 dc1008da8748ae0c60c93323ff766e49.cloudfront.net (CloudFront)
33
+ x-amz-cf-pop:
34
+ - SLC50-C1
35
+ x-amz-cf-id:
36
+ - dmuH2lgR39vi0OsT4BSudZuPzUAgkJWswU1No5CK2jGrgG-B3Zh54g==
25
37
  body:
26
38
  encoding: UTF-8
27
39
  string: ''
28
40
  http_version:
29
- recorded_at: Thu, 04 Oct 2018 21:22:04 GMT
41
+ recorded_at: Fri, 25 Sep 2020 23:05:48 GMT
30
42
  recorded_with: VCR 4.0.0
@@ -8,23 +8,35 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - ScormEngine Ruby Gem 0.7.1
11
+ - ScormEngine Ruby Gem 0.8.1
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
- - Fri, 15 Feb 2019 22:00:32 GMT
22
+ - Fri, 25 Sep 2020 23:06:11 GMT
23
+ p3p:
24
+ - CP="NOI"
21
25
  server:
22
- - nginx
23
- connection:
24
- - Close
26
+ - Apache
27
+ x-xss-protection:
28
+ - 1; mode=block
29
+ x-cache:
30
+ - Miss from cloudfront
31
+ via:
32
+ - 1.1 b165299644482a8ffbc85462a8b9e7f1.cloudfront.net (CloudFront)
33
+ x-amz-cf-pop:
34
+ - SLC50-C1
35
+ x-amz-cf-id:
36
+ - NieypZK8kwpn5jescJ8m7Fu9ixp9LdjWFBPSBHnmcuJ6TgZ_FyWJfw==
25
37
  body:
26
38
  encoding: UTF-8
27
39
  string: ''
28
40
  http_version:
29
- recorded_at: Fri, 15 Feb 2019 22:00:32 GMT
41
+ recorded_at: Fri, 25 Sep 2020 23:06:11 GMT
30
42
  recorded_with: VCR 4.0.0
@@ -8,23 +8,35 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - ScormEngine Ruby Gem 0.7.1
11
+ - ScormEngine Ruby Gem 0.8.1
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
- - Fri, 15 Feb 2019 22:00:32 GMT
22
+ - Fri, 25 Sep 2020 23:06:12 GMT
23
+ p3p:
24
+ - CP="NOI"
21
25
  server:
22
- - nginx
23
- connection:
24
- - Close
26
+ - Apache
27
+ x-xss-protection:
28
+ - 1; mode=block
29
+ x-cache:
30
+ - Miss from cloudfront
31
+ via:
32
+ - 1.1 6499018181503258b63542f68301cbb1.cloudfront.net (CloudFront)
33
+ x-amz-cf-pop:
34
+ - SLC50-C1
35
+ x-amz-cf-id:
36
+ - Z2IZa0CjKIZ3CGOskykBq0rw9Vrylq5FDV1jQqHgPcENX-wnfyUVbA==
25
37
  body:
26
38
  encoding: UTF-8
27
39
  string: ''
28
40
  http_version:
29
- recorded_at: Fri, 15 Feb 2019 22:00:32 GMT
41
+ recorded_at: Fri, 25 Sep 2020 23:06:12 GMT
30
42
  recorded_with: VCR 4.0.0
@@ -8,29 +8,39 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - ScormEngine Ruby Gem 0.6.10
11
+ - ScormEngine Ruby Gem 0.8.1
12
12
  Authorization:
13
13
  - Basic <BASIC_AUTH>
14
14
  response:
15
15
  status:
16
16
  code: 404
17
- message: ''
17
+ message: Not Found
18
18
  headers:
19
19
  content-type:
20
20
  - application/json
21
- date:
22
- - Thu, 04 Oct 2018 21:22:21 GMT
23
- server:
24
- - nginx
25
- vary:
26
- - Accept-Encoding
27
21
  content-length:
28
- - '77'
22
+ - '63'
29
23
  connection:
30
- - Close
24
+ - close
25
+ date:
26
+ - Fri, 25 Sep 2020 23:05:56 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 df0a4ea7de0fa05190904df4271e5d1e.cloudfront.net (CloudFront)
37
+ x-amz-cf-pop:
38
+ - SLC50-C1
39
+ x-amz-cf-id:
40
+ - qgsMC_FDegtlZzbkifLvlmNFhOPw_fxmWL4MINIuKREtn614JGJYeQ==
31
41
  body:
32
- encoding: ASCII-8BIT
42
+ encoding: UTF-8
33
43
  string: '{"message":"No dispatches found with ID: nonexistent-dispatch"}'
34
44
  http_version:
35
- recorded_at: Thu, 04 Oct 2018 21:22:21 GMT
45
+ recorded_at: Fri, 25 Sep 2020 23:05:56 GMT
36
46
  recorded_with: VCR 4.0.0
@@ -8,29 +8,39 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - ScormEngine Ruby Gem 0.6.10
11
+ - ScormEngine Ruby Gem 0.8.1
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:19 GMT
23
- server:
24
- - nginx
25
- vary:
26
- - Accept-Encoding
27
21
  content-length:
28
- - '196'
22
+ - '324'
29
23
  connection:
30
- - Close
24
+ - close
25
+ date:
26
+ - Fri, 25 Sep 2020 23:05:55 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 8bb5b74069e9505becb1d7e84c9b94e8.cloudfront.net (CloudFront)
37
+ x-amz-cf-pop:
38
+ - SLC50-C1
39
+ x-amz-cf-id:
40
+ - BoUpwmFD6YrQgjDM9uo6Lbf-z8MobcqSYTdt6QgERQgZLrTWnOlBSg==
31
41
  body:
32
- encoding: ASCII-8BIT
33
- string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00Z","externalConfig":"scormenginegemtesting-default","enabled":false,"registrationCount":0,"registrationResetDate":"none"}'
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":true,"registrationCount":0,"registrationResetDate":"2020-09-25T23:05:54.000Z"}'
34
44
  http_version:
35
- recorded_at: Thu, 04 Oct 2018 21:22:19 GMT
45
+ recorded_at: Fri, 25 Sep 2020 23:05:55 GMT
36
46
  recorded_with: VCR 4.0.0
@@ -8,29 +8,39 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - ScormEngine Ruby Gem 0.6.10
11
+ - ScormEngine Ruby Gem 0.8.1
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:24:05 GMT
23
- server:
24
- - nginx
25
- vary:
26
- - Accept-Encoding
27
21
  content-length:
28
- - '199'
22
+ - '324'
29
23
  connection:
30
- - Close
24
+ - close
25
+ date:
26
+ - Fri, 25 Sep 2020 23:05:56 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 c28e90c09fe72af9ef5e45a1bf85f0fc.cloudfront.net (CloudFront)
37
+ x-amz-cf-pop:
38
+ - SLC50-C1
39
+ x-amz-cf-id:
40
+ - 8W2Nt3xr4pkAewX_sHmV5o1M5_760spHkM5MzPOAEU9Eyow1cAX8cQ==
31
41
  body:
32
- encoding: ASCII-8BIT
33
- string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}'
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":true,"registrationCount":0,"registrationResetDate":"2020-09-25T23:05:54.000Z"}'
34
44
  http_version:
35
- recorded_at: Thu, 04 Oct 2018 21:24:05 GMT
45
+ recorded_at: Fri, 25 Sep 2020 23:05:56 GMT
36
46
  recorded_with: VCR 4.0.0
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: 'false'
9
9
  headers:
10
10
  User-Agent:
11
- - ScormEngine Ruby Gem 0.6.10
11
+ - ScormEngine Ruby Gem 0.8.1
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
- - Thu, 04 Oct 2018 21:22:25 GMT
24
+ - Fri, 25 Sep 2020 23:05:45 GMT
25
+ p3p:
26
+ - CP="NOI"
23
27
  server:
24
- - nginx
25
- connection:
26
- - Close
28
+ - Apache
29
+ x-xss-protection:
30
+ - 1; mode=block
31
+ x-cache:
32
+ - Miss from cloudfront
33
+ via:
34
+ - 1.1 ed42e29cddf5cc10b8ba8ca7b99004ce.cloudfront.net (CloudFront)
35
+ x-amz-cf-pop:
36
+ - SLC50-C1
37
+ x-amz-cf-id:
38
+ - 4HasoHYyuLlz2GY1cHch2GQb97svI0911hnTy3BTZhYRnZ2raa_HVg==
27
39
  body:
28
40
  encoding: UTF-8
29
41
  string: ''
30
42
  http_version:
31
- recorded_at: Thu, 04 Oct 2018 21:22:25 GMT
43
+ recorded_at: Fri, 25 Sep 2020 23:05:45 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/enabled
@@ -37,27 +49,39 @@ http_interactions:
37
49
  string: ''
38
50
  headers:
39
51
  User-Agent:
40
- - ScormEngine Ruby Gem 0.6.10
52
+ - ScormEngine Ruby Gem 0.8.1
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:22:26 GMT
52
- server:
53
- - nginx
54
62
  content-length:
55
63
  - '5'
56
64
  connection:
57
- - Close
65
+ - close
66
+ date:
67
+ - Fri, 25 Sep 2020 23:05:45 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 9e19f7f2387eead34610d87abf26d1cd.cloudfront.net (CloudFront)
78
+ x-amz-cf-pop:
79
+ - SLC50-C1
80
+ x-amz-cf-id:
81
+ - zTbt4SZorVr8l65rktrH8XVieJQXX5Tb_OjuAUpUVXgEAHLRYb6dVA==
58
82
  body:
59
83
  encoding: UTF-8
60
84
  string: 'false'
61
85
  http_version:
62
- recorded_at: Thu, 04 Oct 2018 21:22:26 GMT
86
+ recorded_at: Fri, 25 Sep 2020 23:05:45 GMT
63
87
  recorded_with: VCR 4.0.0
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: 'true'
9
9
  headers:
10
10
  User-Agent:
11
- - ScormEngine Ruby Gem 0.6.10
11
+ - ScormEngine Ruby Gem 0.8.1
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
- - Thu, 04 Oct 2018 21:22:28 GMT
24
+ - Fri, 25 Sep 2020 23:05:46 GMT
25
+ p3p:
26
+ - CP="NOI"
23
27
  server:
24
- - nginx
25
- connection:
26
- - Close
28
+ - Apache
29
+ x-xss-protection:
30
+ - 1; mode=block
31
+ x-cache:
32
+ - Miss from cloudfront
33
+ via:
34
+ - 1.1 794a3d3af21f401cf5ddf53187ea3030.cloudfront.net (CloudFront)
35
+ x-amz-cf-pop:
36
+ - SLC50-C1
37
+ x-amz-cf-id:
38
+ - Z9hlZLMZkt_UWL_ezaUE0YnxHxzQj4FwO9YCAI6JVkyLD0yZKsM0yg==
27
39
  body:
28
40
  encoding: UTF-8
29
41
  string: ''
30
42
  http_version:
31
- recorded_at: Thu, 04 Oct 2018 21:22:28 GMT
43
+ recorded_at: Fri, 25 Sep 2020 23:05:46 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/enabled
@@ -37,27 +49,39 @@ http_interactions:
37
49
  string: ''
38
50
  headers:
39
51
  User-Agent:
40
- - ScormEngine Ruby Gem 0.6.10
52
+ - ScormEngine Ruby Gem 0.8.1
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:22:28 GMT
52
- server:
53
- - nginx
54
62
  content-length:
55
63
  - '4'
56
64
  connection:
57
- - Close
65
+ - close
66
+ date:
67
+ - Fri, 25 Sep 2020 23:05:46 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 bd6dc6ff7ea2e7a0c6202fdae4d38e80.cloudfront.net (CloudFront)
78
+ x-amz-cf-pop:
79
+ - SLC50-C1
80
+ x-amz-cf-id:
81
+ - PLSm67peuNcqLRjJIAWdreyPM8E9vPMXjh3mlRSby7nAK1wvMQpOIg==
58
82
  body:
59
83
  encoding: UTF-8
60
84
  string: 'true'
61
85
  http_version:
62
- recorded_at: Thu, 04 Oct 2018 21:22:28 GMT
86
+ recorded_at: Fri, 25 Sep 2020 23:05:46 GMT
63
87
  recorded_with: VCR 4.0.0