scorm_engine 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/lib/scorm_engine/api/endpoints.rb +12 -2
  3. data/lib/scorm_engine/api/endpoints/destinations.rb +225 -0
  4. data/lib/scorm_engine/api/endpoints/dispatches.rb +301 -0
  5. data/lib/scorm_engine/faraday/connection.rb +0 -1
  6. data/lib/scorm_engine/models.rb +3 -0
  7. data/lib/scorm_engine/models/destination.rb +27 -0
  8. data/lib/scorm_engine/models/dispatch.rb +51 -0
  9. data/lib/scorm_engine/models/dispatch_zip.rb +18 -0
  10. data/lib/scorm_engine/version.rb +1 -1
  11. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_delete_destination/raises_ArgumentError_when_destination_id_is_missing.yml +32 -0
  12. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_delete_destination/returns_success_even_when_id_is_invalid.yml +32 -0
  13. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_delete_destination/works.yml +32 -0
  14. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination/fails_when_id_is_invalid.yml +38 -0
  15. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination/is_successful.yml +38 -0
  16. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination/results/sucessfully_creates_the_destination_attributes.yml +38 -0
  17. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination_dispatches_registration_count/fails_when_invalid.yml +38 -0
  18. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destination_dispatches_registration_count/works.yml +36 -0
  19. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_more_option_pagination_/returns_all_the_destinations.yml +73 -0
  20. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_more_option_pagination_/returns_the_more_key_in_the_raw_response.yml +38 -0
  21. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_since_option/fails_when_passed_an_invalid_value.yml +37 -0
  22. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/_since_option/works.yml +38 -0
  23. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/is_successful.yml +38 -0
  24. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/results/is_an_enumerator_of_Destination_models.yml +38 -0
  25. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_get_destinations/results/sucessfully_creates_the_Destination_attributes.yml +38 -0
  26. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination/is_successful.yml +61 -0
  27. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination/is_successful_even_if_the_destination_id_is_not_unique.yml +32 -0
  28. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_enabled/fails_when_invalid.yml +38 -0
  29. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_enabled/works_when_false.yml +32 -0
  30. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_enabled/works_when_true.yml +32 -0
  31. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_registration_instancing/fails_when_invalid.yml +38 -0
  32. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_registration_instancing/works_when_false.yml +32 -0
  33. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_post_destination_dispatches_registration_instancing/works_when_true.yml +32 -0
  34. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_put_destination/is_successful.yml +32 -0
  35. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Destinations/_put_destination/results/sucessfully_creates_the_destination_attributes.yml +67 -0
  36. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch/returns_success_even_when_id_is_invalid.yml +30 -0
  37. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch/works.yml +30 -0
  38. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/fails_when_id_is_invalid.yml +36 -0
  39. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/is_successful.yml +36 -0
  40. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/results/sucessfully_creates_the_dispatch_attributes.yml +36 -0
  41. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_enabled/is_false_when_disabled.yml +63 -0
  42. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_enabled/is_true_when_enabled.yml +63 -0
  43. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/fails_given_an_invalid_id.yml +36 -0
  44. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/fails_given_an_invalid_type.yml +34 -0
  45. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works.yml +37 -0
  46. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_AICC.yml +37 -0
  47. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_SCORM12.yml +37 -0
  48. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_SCORM20043RDEDITION.yml +35 -0
  49. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_more_option_pagination_/returns_all_the_dispatches.yml +69 -0
  50. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_more_option_pagination_/returns_the_more_key_in_the_raw_response.yml +36 -0
  51. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_since_option/fails_when_passed_an_invalid_value.yml +35 -0
  52. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_since_option/works.yml +36 -0
  53. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/is_successful.yml +36 -0
  54. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/results/is_an_enumerator_of_dispatch_models.yml +36 -0
  55. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/results/sucessfully_creates_the_dispatch_attributes.yml +69 -0
  56. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_post_dispatch/is_successful.yml +59 -0
  57. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch/is_successful.yml +32 -0
  58. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch/results/sucessfully_creates_the_dispatch_attributes.yml +65 -0
  59. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/fails_when_invalid.yml +38 -0
  60. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/works_when_false.yml +32 -0
  61. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/works_when_true.yml +32 -0
  62. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Registrations/_post_registration/is_successful_even_when_given_a_UTF8/slashed_username.yml +97 -0
  63. data/spec/scorm_engine/api/endpoints/destinations_spec.rb +215 -0
  64. data/spec/scorm_engine/api/endpoints/dispatches_spec.rb +286 -0
  65. data/spec/scorm_engine/api/endpoints/registrations_spec.rb +12 -0
  66. data/spec/scorm_engine/models/destination_spec.rb +21 -0
  67. data/spec/scorm_engine/models/dispatch_spec.rb +85 -0
  68. data/spec/scorm_engine/models/dispatch_zip_spec.rb +18 -0
  69. data/spec/support/scorm_engine.rb +21 -0
  70. metadata +78 -2
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: ''
20
+ headers:
21
+ content-type:
22
+ - application/json
23
+ date:
24
+ - Mon, 20 Aug 2018 21:19:25 GMT
25
+ server:
26
+ - nginx
27
+ vary:
28
+ - Accept-Encoding
29
+ content-length:
30
+ - '287'
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: ASCII-8BIT
35
+ string: '{"destinations":[{"id":"testing-golf-club","data":{"name":"Golf Club"}},{"id":"destination-to-be-deleted","data":{"name":"destination-to-be-deleted"}},{"id":"paginated-destination-0","data":{"name":"paginated-destination-0"}},{"id":"paginated-destination-1","data":{"name":"paginated-destination-1"}},{"id":"paginated-destination-2","data":{"name":"paginated-destination-2"}},{"id":"paginated-destination-3","data":{"name":"paginated-destination-3"}},{"id":"paginated-destination-4","data":{"name":"paginated-destination-4"}},{"id":"paginated-destination-5","data":{"name":"paginated-destination-5"}},{"id":"paginated-destination-6","data":{"name":"paginated-destination-6"}},{"id":"paginated-destination-7","data":{"name":"paginated-destination-7"}}],"more":"https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/scormenginegemtesting-default/destinations?configuration=ScormEngineGemTesting-default&more=AAABZVk035AAAAEA"}'
36
+ http_version:
37
+ recorded_at: Mon, 20 Aug 2018 21:19:25 GMT
38
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,37 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations?since=invalid
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 400
19
+ message: ''
20
+ headers:
21
+ content-type:
22
+ - application/json
23
+ date:
24
+ - Mon, 20 Aug 2018 21:19:32 GMT
25
+ server:
26
+ - nginx
27
+ content-length:
28
+ - '100'
29
+ connection:
30
+ - Close
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"message":"''invalid'' is either not a timestamp or seems to be not
34
+ formatted according to ISO 8601"}'
35
+ http_version:
36
+ recorded_at: Mon, 20 Aug 2018 21:19:32 GMT
37
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations?since=2000-01-01T00%3A00%3A00Z
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: ''
20
+ headers:
21
+ content-type:
22
+ - application/json
23
+ date:
24
+ - Mon, 20 Aug 2018 21:19:32 GMT
25
+ server:
26
+ - nginx
27
+ vary:
28
+ - Accept-Encoding
29
+ content-length:
30
+ - '185'
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: ASCII-8BIT
35
+ string: '{"destinations":[{"id":"testing-golf-club","data":{"name":"Golf Club"}},{"id":"destination-to-be-deleted","data":{"name":"destination-to-be-deleted"}},{"id":"paginated-destination-0","data":{"name":"paginated-destination-0"}},{"id":"paginated-destination-1","data":{"name":"paginated-destination-1"}},{"id":"paginated-destination-2","data":{"name":"paginated-destination-2"}},{"id":"paginated-destination-3","data":{"name":"paginated-destination-3"}},{"id":"paginated-destination-4","data":{"name":"paginated-destination-4"}},{"id":"paginated-destination-5","data":{"name":"paginated-destination-5"}},{"id":"paginated-destination-6","data":{"name":"paginated-destination-6"}},{"id":"paginated-destination-7","data":{"name":"paginated-destination-7"}},{"id":"paginated-destination-8","data":{"name":"paginated-destination-8"}},{"id":"paginated-destination-9","data":{"name":"paginated-destination-9"}},{"id":"paginated-destination-10","data":{"name":"paginated-destination-10"}}]}'
36
+ http_version:
37
+ recorded_at: Mon, 20 Aug 2018 21:19:32 GMT
38
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: ''
20
+ headers:
21
+ content-type:
22
+ - application/json
23
+ date:
24
+ - Mon, 20 Aug 2018 21:19:15 GMT
25
+ server:
26
+ - nginx
27
+ vary:
28
+ - Accept-Encoding
29
+ content-length:
30
+ - '111'
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: ASCII-8BIT
35
+ string: '{"destinations":[{"id":"testing-golf-club","data":{"name":"Golf Club"}},{"id":"destination-to-be-deleted","data":{"name":"destination-to-be-deleted"}}]}'
36
+ http_version:
37
+ recorded_at: Mon, 20 Aug 2018 21:19:15 GMT
38
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: ''
20
+ headers:
21
+ content-type:
22
+ - application/json
23
+ date:
24
+ - Mon, 20 Aug 2018 21:19:34 GMT
25
+ server:
26
+ - nginx
27
+ vary:
28
+ - Accept-Encoding
29
+ content-length:
30
+ - '287'
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: ASCII-8BIT
35
+ string: '{"destinations":[{"id":"testing-golf-club","data":{"name":"Golf Club"}},{"id":"destination-to-be-deleted","data":{"name":"destination-to-be-deleted"}},{"id":"paginated-destination-0","data":{"name":"paginated-destination-0"}},{"id":"paginated-destination-1","data":{"name":"paginated-destination-1"}},{"id":"paginated-destination-2","data":{"name":"paginated-destination-2"}},{"id":"paginated-destination-3","data":{"name":"paginated-destination-3"}},{"id":"paginated-destination-4","data":{"name":"paginated-destination-4"}},{"id":"paginated-destination-5","data":{"name":"paginated-destination-5"}},{"id":"paginated-destination-6","data":{"name":"paginated-destination-6"}},{"id":"paginated-destination-7","data":{"name":"paginated-destination-7"}}],"more":"https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/scormenginegemtesting-default/destinations?configuration=ScormEngineGemTesting-default&more=AAABZVk035AAAAEA"}'
36
+ http_version:
37
+ recorded_at: Mon, 20 Aug 2018 21:19:34 GMT
38
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: ''
20
+ headers:
21
+ content-type:
22
+ - application/json
23
+ date:
24
+ - Mon, 20 Aug 2018 21:19:33 GMT
25
+ server:
26
+ - nginx
27
+ vary:
28
+ - Accept-Encoding
29
+ content-length:
30
+ - '287'
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: ASCII-8BIT
35
+ string: '{"destinations":[{"id":"testing-golf-club","data":{"name":"Golf Club"}},{"id":"destination-to-be-deleted","data":{"name":"destination-to-be-deleted"}},{"id":"paginated-destination-0","data":{"name":"paginated-destination-0"}},{"id":"paginated-destination-1","data":{"name":"paginated-destination-1"}},{"id":"paginated-destination-2","data":{"name":"paginated-destination-2"}},{"id":"paginated-destination-3","data":{"name":"paginated-destination-3"}},{"id":"paginated-destination-4","data":{"name":"paginated-destination-4"}},{"id":"paginated-destination-5","data":{"name":"paginated-destination-5"}},{"id":"paginated-destination-6","data":{"name":"paginated-destination-6"}},{"id":"paginated-destination-7","data":{"name":"paginated-destination-7"}}],"more":"https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/scormenginegemtesting-default/destinations?configuration=ScormEngineGemTesting-default&more=AAABZVk035AAAAEA"}'
36
+ http_version:
37
+ recorded_at: Mon, 20 Aug 2018 21:19:33 GMT
38
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations/testing-golf-club
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 204
19
+ message: ''
20
+ headers:
21
+ date:
22
+ - Mon, 20 Aug 2018 21:19:09 GMT
23
+ server:
24
+ - nginx
25
+ connection:
26
+ - Close
27
+ body:
28
+ encoding: UTF-8
29
+ string: ''
30
+ http_version:
31
+ recorded_at: Mon, 20 Aug 2018 21:19:09 GMT
32
+ - request:
33
+ method: post
34
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations
35
+ body:
36
+ encoding: UTF-8
37
+ string: '{"destinations":[{"id":"testing-golf-club","data":{"name":"Golf Club"}}]}'
38
+ headers:
39
+ Content-Type:
40
+ - application/json
41
+ User-Agent:
42
+ - ScormEngine Ruby Gem 0.3.0
43
+ Authorization:
44
+ - Basic <BASIC_AUTH>
45
+ response:
46
+ status:
47
+ code: 204
48
+ message: ''
49
+ headers:
50
+ date:
51
+ - Mon, 20 Aug 2018 21:19:09 GMT
52
+ server:
53
+ - nginx
54
+ connection:
55
+ - Close
56
+ body:
57
+ encoding: UTF-8
58
+ string: ''
59
+ http_version:
60
+ recorded_at: Mon, 20 Aug 2018 21:19:09 GMT
61
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"destinations":[{"id":"testing-golf-club","data":{"name":"Golf Club"}}]}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 204
19
+ message: ''
20
+ headers:
21
+ date:
22
+ - Mon, 20 Aug 2018 21:19:10 GMT
23
+ server:
24
+ - nginx
25
+ connection:
26
+ - Close
27
+ body:
28
+ encoding: UTF-8
29
+ string: ''
30
+ http_version:
31
+ recorded_at: Mon, 20 Aug 2018 21:19:10 GMT
32
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations/testing-golf-club/dispatches/enabled
6
+ body:
7
+ encoding: UTF-8
8
+ string: oops
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 400
19
+ message: ''
20
+ headers:
21
+ content-type:
22
+ - text/plain
23
+ date:
24
+ - Mon, 20 Aug 2018 21:19:07 GMT
25
+ server:
26
+ - nginx
27
+ content-length:
28
+ - '197'
29
+ connection:
30
+ - Close
31
+ body:
32
+ encoding: UTF-8
33
+ string: |-
34
+ Unrecognized token 'oops': was expecting ('true', 'false' or 'null')
35
+ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@c3f7440; line: 1, column: 9]
36
+ http_version:
37
+ recorded_at: Mon, 20 Aug 2018 21:19:07 GMT
38
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations/testing-golf-club/dispatches/enabled
6
+ body:
7
+ encoding: US-ASCII
8
+ string: 'false'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 204
19
+ message: ''
20
+ headers:
21
+ date:
22
+ - Mon, 20 Aug 2018 21:19:06 GMT
23
+ server:
24
+ - nginx
25
+ connection:
26
+ - Close
27
+ body:
28
+ encoding: UTF-8
29
+ string: ''
30
+ http_version:
31
+ recorded_at: Mon, 20 Aug 2018 21:19:06 GMT
32
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations/testing-golf-club/dispatches/enabled
6
+ body:
7
+ encoding: US-ASCII
8
+ string: 'true'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 204
19
+ message: ''
20
+ headers:
21
+ date:
22
+ - Mon, 20 Aug 2018 21:19:08 GMT
23
+ server:
24
+ - nginx
25
+ connection:
26
+ - Close
27
+ body:
28
+ encoding: UTF-8
29
+ string: ''
30
+ http_version:
31
+ recorded_at: Mon, 20 Aug 2018 21:19:08 GMT
32
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/destinations/testing-golf-club/dispatches/registrationInstancing
6
+ body:
7
+ encoding: UTF-8
8
+ string: oops
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ScormEngine Ruby Gem 0.3.0
14
+ Authorization:
15
+ - Basic <BASIC_AUTH>
16
+ response:
17
+ status:
18
+ code: 400
19
+ message: ''
20
+ headers:
21
+ content-type:
22
+ - text/plain
23
+ date:
24
+ - Mon, 20 Aug 2018 21:19:05 GMT
25
+ server:
26
+ - nginx
27
+ content-length:
28
+ - '198'
29
+ connection:
30
+ - Close
31
+ body:
32
+ encoding: UTF-8
33
+ string: |-
34
+ Unrecognized token 'oops': was expecting ('true', 'false' or 'null')
35
+ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@6f73cd8b; line: 1, column: 9]
36
+ http_version:
37
+ recorded_at: Mon, 20 Aug 2018 21:19:05 GMT
38
+ recorded_with: VCR 4.0.0