triannon-client 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/.env_example +16 -2
  3. data/.rspec +1 -0
  4. data/README.md +49 -18
  5. data/Rakefile +15 -2
  6. data/lib/triannon-client.rb +12 -6
  7. data/lib/triannon-client/configuration.rb +26 -14
  8. data/lib/triannon-client/triannon_client.rb +139 -44
  9. data/spec/fixtures/vcr_cassettes/{TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml → CRUD/create_annotation.yml} +192 -132
  10. data/spec/fixtures/vcr_cassettes/TriannonClientAUTH/with_authentication/behaves_like_authenticate/-_authenticate_returns_true.yml +343 -0
  11. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/POST_401_response_retries_and_logs_RestClient_Exception_message.yml +170 -0
  12. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/POST_403_response_does_not_retry_and_logs_RestClient_Exception_message.yml +170 -0
  13. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/POST_500_response_does_not_retry_and_logs_RestClient_Exception_message.yml +170 -0
  14. data/spec/fixtures/vcr_cassettes/{TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml → TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml} +203 -319
  15. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/logs_RuntimeError_message.yml +170 -0
  16. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/returns_a_RestClient_Response_object.yml +170 -0
  17. data/spec/fixtures/vcr_cassettes/{TriannonClient/_post_annotation → TriannonClientCREATE/_post_annotation/without_authentication/behaves_like_create_annotations}/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +29 -27
  18. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/clear_annotations.yml +590 -0
  19. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/with_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_does_NOT_exist.yml +349 -0
  20. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/with_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_exists.yml +332 -0
  21. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/with_authentication/behaves_like_delete_annotations/validates_the_annotation_ID.yml +288 -0
  22. data/spec/fixtures/vcr_cassettes/{TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_does_NOT_exist.yml → TriannonClientDELETE/_delete_annotation/without_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_does_NOT_exist.yml} +13 -9
  23. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/without_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_exists.yml +127 -0
  24. data/spec/fixtures/vcr_cassettes/{TriannonClient/_delete_annotation → TriannonClientDELETE/_delete_annotation/without_authentication/behaves_like_delete_annotations}/validates_the_annotation_ID.yml +7 -5
  25. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/clear_annotations.yml +594 -0
  26. data/spec/fixtures/vcr_cassettes/{TriannonClient → TriannonClientREAD/GET}/_get_annotations/returns_an_RDF_Graph.yml +30 -23
  27. data/spec/fixtures/vcr_cassettes/{TriannonClient → TriannonClientREAD/GET}/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +30 -23
  28. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +302 -0
  29. data/spec/fixtures/vcr_cassettes/{TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml → TriannonClientREAD/GET/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml} +25 -78
  30. data/spec/fixtures/vcr_cassettes/{TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml → TriannonClientREAD/GET/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml} +25 -78
  31. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/_response2graph/accepts_a_RestClient_Response_instance.yml +2399 -0
  32. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/csvm_json_.yml +1231 -0
  33. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +1231 -0
  34. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +1231 -0
  35. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +1231 -0
  36. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +1231 -0
  37. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trig_.yml +1231 -0
  38. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trix_.yml +1231 -0
  39. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +1231 -0
  40. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +1231 -0
  41. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +1231 -0
  42. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/csv_.yml +1231 -0
  43. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/n3_.yml +1231 -0
  44. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/plain_.yml +1231 -0
  45. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +1231 -0
  46. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +1231 -0
  47. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/tab-separated-values_.yml +1231 -0
  48. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +1231 -0
  49. data/spec/fixtures/vcr_cassettes/{TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application → TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_application}/ld_json_.yml +25 -78
  50. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +68 -0
  51. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +69 -0
  52. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +69 -0
  53. data/spec/fixtures/vcr_cassettes/{TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type → TriannonClientREAD/GET/annotation_by_ID/using_default_content_type}/checks_the_annotation_ID.yml +25 -78
  54. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_default_content_type/returns_an_EMPTY_RDF_graph_with_a_valid_ID_for_NO_annotation_on_the_server.yml +186 -0
  55. data/spec/fixtures/vcr_cassettes/{TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml → TriannonClientREAD/GET/annotation_by_ID/using_default_content_type/returns_an_RDF_graph_with_a_valid_ID_for_an_annotation_on_the_server.yml} +25 -78
  56. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/clear_annotations.yml +648 -0
  57. data/spec/fixtures/vcr_cassettes/{TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml → TriannonClientREAD/create_annotation.yml} +192 -131
  58. data/spec/lib/triannon-client/configuration_spec.rb +83 -27
  59. data/spec/lib/triannon-client/triannon_client_auth_spec.rb +61 -0
  60. data/spec/lib/triannon-client/triannon_client_class_spec.rb +104 -0
  61. data/spec/lib/triannon-client/triannon_client_create_spec.rb +119 -0
  62. data/spec/lib/triannon-client/triannon_client_delete_spec.rb +117 -0
  63. data/spec/lib/triannon-client/triannon_client_read_spec.rb +342 -0
  64. data/spec/spec_helper.rb +140 -4
  65. data/triannon-client.gemspec +1 -1
  66. metadata +112 -153
  67. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +0 -3995
  68. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +0 -3995
  69. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +0 -3995
  70. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +0 -3995
  71. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trig_.yml +0 -3995
  72. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trix_.yml +0 -3995
  73. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +0 -3995
  74. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +0 -3995
  75. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +0 -3995
  76. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/n3_.yml +0 -3995
  77. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +0 -3995
  78. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +0 -3995
  79. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +0 -3995
  80. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/ld_json_.yml +0 -4946
  81. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +0 -2566
  82. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +0 -2502
  83. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +0 -2502
  84. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/trig_.yml +0 -2502
  85. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/trix_.yml +0 -2502
  86. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +0 -2502
  87. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +0 -2502
  88. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +0 -2502
  89. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +0 -2502
  90. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/n3_.yml +0 -2502
  91. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +0 -2502
  92. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +0 -2502
  93. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +0 -2502
  94. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +0 -2502
  95. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +0 -2502
  96. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_a_nil_ID.yml +0 -2502
  97. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_empty_string_ID.yml +0 -2502
  98. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_integer_ID.yml +0 -2502
  99. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/requests_an_open_annotation_by_ID_accepting_a_default_JSON-LD_content.yml +0 -2502
  100. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_EMPTY_RDF_graph_for_a_500_server_response.yml +0 -2502
  101. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_EMPTY_RDF_graph_with_a_valid_ID_for_NO_annotation_on_the_server.yml +0 -2561
  102. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_RDF_graph_with_a_valid_ID_for_an_annotation_on_the_server.yml +0 -4946
  103. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/requests_an_open_annotation_by_ID_using_a_IIIF_profile.yml +0 -2502
  104. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +0 -2746
  105. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml +0 -2502
  106. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +0 -4946
  107. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_404_responses_.yml +0 -64
  108. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_410_responses_.yml +0 -64
  109. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/logs_exceptions.yml +0 -64
  110. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_FALSE_for_a_500_response_to_a_DELETE_request.yml +0 -64
  111. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml +0 -64
  112. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml +0 -64
  113. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml +0 -64
  114. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml +0 -64
  115. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml +0 -64
  116. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_exists.yml +0 -2549
  117. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml +0 -5355
  118. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml +0 -5355
  119. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +0 -2502
  120. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml +0 -2502
  121. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +0 -2502
  122. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_RDF_URI_that_is_a_valid_URI.yml +0 -2551
  123. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_array_of_RDF_URI_from_an_RDF_Graph_of_an_annotation.yml +0 -2502
  124. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +0 -4898
  125. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +0 -2502
  126. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +0 -2502
  127. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +0 -2502
  128. data/spec/lib/triannon-client/triannon_client_spec.rb +0 -546
@@ -0,0 +1,288 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: http://localhost:3000/annotations/bar/checking_anno_id
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/ld+json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/ld+json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 401
21
+ message: 'Unauthorized '
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ Content-Type:
30
+ - '["application/ld+json"]; charset=utf-8'
31
+ Cache-Control:
32
+ - no-cache
33
+ X-Request-Id:
34
+ - 0c9af7a1-1b86-4bed-be93-ab94a0e5dbbb
35
+ X-Runtime:
36
+ - '0.002900'
37
+ Server:
38
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
39
+ Date:
40
+ - Mon, 03 Aug 2015 22:12:00 GMT
41
+ Content-Length:
42
+ - '163'
43
+ Connection:
44
+ - Keep-Alive
45
+ Set-Cookie:
46
+ - request_method=DELETE; path=/
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"error":"invalidRequest","errorDescription":"Access token required","errorUri":"http://image-auth.iiif.io/api/image/2.1/authentication.html#access-token-service"}'
50
+ http_version:
51
+ recorded_at: Mon, 03 Aug 2015 22:12:00 GMT
52
+ - request:
53
+ method: post
54
+ uri: http://localhost:3000/auth/client_identity
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"clientId":"clientA","clientSecret":"secretA"}'
58
+ headers:
59
+ Accept:
60
+ - application/json
61
+ Accept-Encoding:
62
+ - gzip, deflate
63
+ Content-Type:
64
+ - application/json
65
+ Content-Length:
66
+ - '47'
67
+ User-Agent:
68
+ - Ruby
69
+ response:
70
+ status:
71
+ code: 200
72
+ message: 'OK '
73
+ headers:
74
+ X-Frame-Options:
75
+ - SAMEORIGIN
76
+ X-Xss-Protection:
77
+ - 1; mode=block
78
+ X-Content-Type-Options:
79
+ - nosniff
80
+ Content-Type:
81
+ - application/json; charset=utf-8
82
+ Etag:
83
+ - W/"cd3988b6c1f509600b38ebab42c1049c"
84
+ Cache-Control:
85
+ - max-age=0, private, must-revalidate
86
+ X-Request-Id:
87
+ - f649d10c-3e4b-42af-873f-709ea5e5a4bc
88
+ X-Runtime:
89
+ - '0.162069'
90
+ Server:
91
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
92
+ Date:
93
+ - Mon, 03 Aug 2015 22:12:01 GMT
94
+ Content-Length:
95
+ - '186'
96
+ Connection:
97
+ - Keep-Alive
98
+ Set-Cookie:
99
+ - _internal_session=TlcxYlBjbWFrV08zaktjREZQYjE3dk5mVkd3U1ZIQ0dORkZSYTVTSHhKNWF3YTY5bWNFM3p0akpULzRJRGdHS1ZCRUpnZDRjR3ZYYUZid1BIUWlsT1Y2M0kzREoyZ1ZYQ1NJdnROSDk1YldZQVVjUzNCMFk2bm0zK2JTVDMzYmFFSk84R2tUWHl2bDhBSERSK3RhSnI3RDRNOEFnaElDM2M2eXNPY09UKzBCTGhvS1NJU1JvR3p0cDhjZ0hOUDNjTWFUYWFwWVVpQ2x2Q1lBSS9iT3lxdEtnR1ZPbnRNdEhJSThNRHRvOVgrQVE1NHV5SGltMjBsbHRKeDB1bThEc2hxK3k5cVNoSjh6TWFLeWM4dTlHaGZXaUlEbUloVnVyQ1FpYTJ5S3BTamRuMlhvd1RGNXlzYXdJZWNrdldlN3lDMXhnRmljVmdpNFM4QlZ1YXJlWnNQMzJKWFJaQ3ZrOU5sVk8xVDF4STBlQ05Gb2dnR1pXNjMrZlgybWt5Zkp0RmJwTlgvWWZ3bEwybWFHN2ZUQ2ZnQmpUWjFmQnVLWDBpc1dPODZ2VG9XWlVNZG1VaFRsd2owZW1TVkcwRTVJZjhtTlZqY3cyR0pyT3JtMkZYSUlqMC9OS25FQ1luSGFJcy91RnR4cU1tL0E9LS00SS8vRUFXanlRdW41WWZsbDAxNXlnPT0%3D--c971a64617a3bee67502a7f39717634ac7cd22ef;
100
+ path=/; HttpOnly
101
+ - request_method=POST; path=/
102
+ body:
103
+ encoding: UTF-8
104
+ string: '{"authorizationCode":"MlNFV1ltcmx5N0pYbHJQZHlQUEI2V01vc2NXZXZlL3VZYkZKM3JXRnFFbzRtbkIvVjRDN2taUnd1a1d5QkZlbi0tS0RPcEFJRFdhaDJxU2tuUEM4c2xuQT09--3662d3002bbb08025370ba7927ca4572389935dd"}'
105
+ http_version:
106
+ recorded_at: Mon, 03 Aug 2015 22:12:01 GMT
107
+ - request:
108
+ method: post
109
+ uri: http://localhost:3000/auth/login?code=MlNFV1ltcmx5N0pYbHJQZHlQUEI2V01vc2NXZXZlL3VZYkZKM3JXRnFFbzRtbkIvVjRDN2taUnd1a1d5QkZlbi0tS0RPcEFJRFdhaDJxU2tuUEM4c2xuQT09--3662d3002bbb08025370ba7927ca4572389935dd
110
+ body:
111
+ encoding: UTF-8
112
+ string: '{"userId":"","workgroups":"org:wg-A, org:wg-B"}'
113
+ headers:
114
+ Accept:
115
+ - application/json
116
+ Accept-Encoding:
117
+ - gzip, deflate
118
+ Content-Type:
119
+ - application/json
120
+ Cookie:
121
+ - _internal_session=TlcxYlBjbWFrV08zaktjREZQYjE3dk5mVkd3U1ZIQ0dORkZSYTVTSHhKNWF3YTY5bWNFM3p0akpULzRJRGdHS1ZCRUpnZDRjR3ZYYUZid1BIUWlsT1Y2M0kzREoyZ1ZYQ1NJdnROSDk1YldZQVVjUzNCMFk2bm0zK2JTVDMzYmFFSk84R2tUWHl2bDhBSERSK3RhSnI3RDRNOEFnaElDM2M2eXNPY09UKzBCTGhvS1NJU1JvR3p0cDhjZ0hOUDNjTWFUYWFwWVVpQ2x2Q1lBSS9iT3lxdEtnR1ZPbnRNdEhJSThNRHRvOVgrQVE1NHV5SGltMjBsbHRKeDB1bThEc2hxK3k5cVNoSjh6TWFLeWM4dTlHaGZXaUlEbUloVnVyQ1FpYTJ5S3BTamRuMlhvd1RGNXlzYXdJZWNrdldlN3lDMXhnRmljVmdpNFM4QlZ1YXJlWnNQMzJKWFJaQ3ZrOU5sVk8xVDF4STBlQ05Gb2dnR1pXNjMrZlgybWt5Zkp0RmJwTlgvWWZ3bEwybWFHN2ZUQ2ZnQmpUWjFmQnVLWDBpc1dPODZ2VG9XWlVNZG1VaFRsd2owZW1TVkcwRTVJZjhtTlZqY3cyR0pyT3JtMkZYSUlqMC9OS25FQ1luSGFJcy91RnR4cU1tL0E9LS00SS8vRUFXanlRdW41WWZsbDAxNXlnPT0%3D--c971a64617a3bee67502a7f39717634ac7cd22ef;
122
+ request_method=POST
123
+ Content-Length:
124
+ - '47'
125
+ User-Agent:
126
+ - Ruby
127
+ response:
128
+ status:
129
+ code: 200
130
+ message: 'OK '
131
+ headers:
132
+ X-Frame-Options:
133
+ - SAMEORIGIN
134
+ X-Xss-Protection:
135
+ - 1; mode=block
136
+ X-Content-Type-Options:
137
+ - nosniff
138
+ Content-Type:
139
+ - text/plain; charset=utf-8
140
+ Cache-Control:
141
+ - no-cache
142
+ X-Request-Id:
143
+ - 47a9dabe-6300-403f-8b4a-c2069c9ae7c9
144
+ X-Runtime:
145
+ - '0.161548'
146
+ Server:
147
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
148
+ Date:
149
+ - Mon, 03 Aug 2015 22:12:01 GMT
150
+ Content-Length:
151
+ - '0'
152
+ Connection:
153
+ - Keep-Alive
154
+ Set-Cookie:
155
+ - _internal_session=TjNweDZodVphaUxRTG5sejg3OHlvMXlyRHkzbU5zOWhNR1FUWGlrUzNmOWxPaHpsTU80b0NmTWlVU2xXeTB6Rlp3b0x1Q2JHRDdrNDZjZG9hOUJ3UlpoK1hZV1p4NTBsVEoyemE4Z3BIRjBTOFBOYityV3haeVFkbDdsNDlPTVUwUlJldkdHQ1RaUDJZSGMvczkyNDdvNmtWc2hzbkpNT2hkbXdBZVVmR2JpbU1ibEhDODJ4VElKckh6VkJQUEhabHBWRjdTbjkzTFU3L3NkdGdoaG9ndnlsY0prSEFGS1Z5WFFncmRjUFc4cVh2cGtOOXNQS3AxdzJiRm9ZNS9RcGVwUVZCNHlVcE84bEVzQUc0WXo0S3NZWjMvMFZTekVoUTNBdXc3eTJkeWwvMzErS0lud1JpQnZLVUt2STVWV3AweGlHZ3d0YytDRi8vcEVjWThjYmNBYnBiSXM5KzJoRjAxSmFiY3dYTmlCb3FMeHpWUG1qQWZLSHlNVjR4YlVNUnZGcDRkUFZvekhBMHU2VEtLRUk3cGE0MGd6NndVMDY4UDBmMjZiOVBmV0xaNEg2bjlsS2RZVWxyRVVkSkdBSFJDeUg1QThUdmZqNVg2ZFpYU0FaVDY2bW53L3hDUHhaU1ZjaGpGY2NGb1k2NThpSXY4Tk16SnVuNnFhTGtDY29wZkZsWDN4VlpuV2FjR0lURittZlB5Q21tTWtKTElCclh3WFVBQ2paT25RQ0hhRGdJWGdJWUJkWEQreWhvVk9lLS1TbDRRNzdjQ0NOUEJpSGV2OWo3b3RBPT0%3D--240bb64c726a55606438350f57f060781af06674;
156
+ path=/; HttpOnly
157
+ - login_user=; path=/
158
+ body:
159
+ encoding: UTF-8
160
+ string: ''
161
+ http_version:
162
+ recorded_at: Mon, 03 Aug 2015 22:12:01 GMT
163
+ - request:
164
+ method: get
165
+ uri: http://localhost:3000/auth/access_token?code=MlNFV1ltcmx5N0pYbHJQZHlQUEI2V01vc2NXZXZlL3VZYkZKM3JXRnFFbzRtbkIvVjRDN2taUnd1a1d5QkZlbi0tS0RPcEFJRFdhaDJxU2tuUEM4c2xuQT09--3662d3002bbb08025370ba7927ca4572389935dd
166
+ body:
167
+ encoding: US-ASCII
168
+ string: ''
169
+ headers:
170
+ Accept:
171
+ - application/ld+json
172
+ Accept-Encoding:
173
+ - gzip, deflate
174
+ Content-Type:
175
+ - application/ld+json
176
+ Cookie:
177
+ - _internal_session=TjNweDZodVphaUxRTG5sejg3OHlvMXlyRHkzbU5zOWhNR1FUWGlrUzNmOWxPaHpsTU80b0NmTWlVU2xXeTB6Rlp3b0x1Q2JHRDdrNDZjZG9hOUJ3UlpoK1hZV1p4NTBsVEoyemE4Z3BIRjBTOFBOYityV3haeVFkbDdsNDlPTVUwUlJldkdHQ1RaUDJZSGMvczkyNDdvNmtWc2hzbkpNT2hkbXdBZVVmR2JpbU1ibEhDODJ4VElKckh6VkJQUEhabHBWRjdTbjkzTFU3L3NkdGdoaG9ndnlsY0prSEFGS1Z5WFFncmRjUFc4cVh2cGtOOXNQS3AxdzJiRm9ZNS9RcGVwUVZCNHlVcE84bEVzQUc0WXo0S3NZWjMvMFZTekVoUTNBdXc3eTJkeWwvMzErS0lud1JpQnZLVUt2STVWV3AweGlHZ3d0YytDRi8vcEVjWThjYmNBYnBiSXM5KzJoRjAxSmFiY3dYTmlCb3FMeHpWUG1qQWZLSHlNVjR4YlVNUnZGcDRkUFZvekhBMHU2VEtLRUk3cGE0MGd6NndVMDY4UDBmMjZiOVBmV0xaNEg2bjlsS2RZVWxyRVVkSkdBSFJDeUg1QThUdmZqNVg2ZFpYU0FaVDY2bW53L3hDUHhaU1ZjaGpGY2NGb1k2NThpSXY4Tk16SnVuNnFhTGtDY29wZkZsWDN4VlpuV2FjR0lURittZlB5Q21tTWtKTElCclh3WFVBQ2paT25RQ0hhRGdJWGdJWUJkWEQreWhvVk9lLS1TbDRRNzdjQ0NOUEJpSGV2OWo3b3RBPT0%3D--240bb64c726a55606438350f57f060781af06674;
178
+ login_user=
179
+ User-Agent:
180
+ - Ruby
181
+ response:
182
+ status:
183
+ code: 200
184
+ message: 'OK '
185
+ headers:
186
+ X-Frame-Options:
187
+ - SAMEORIGIN
188
+ X-Xss-Protection:
189
+ - 1; mode=block
190
+ X-Content-Type-Options:
191
+ - nosniff
192
+ Content-Type:
193
+ - '["application/ld+json"]; charset=utf-8'
194
+ Etag:
195
+ - W/"e2c229504d7ebda95de465a159f978db"
196
+ Cache-Control:
197
+ - max-age=0, private, must-revalidate
198
+ X-Request-Id:
199
+ - 06ea647a-06ee-4a0b-90c8-d59538158149
200
+ X-Runtime:
201
+ - '0.319420'
202
+ Server:
203
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
204
+ Date:
205
+ - Mon, 03 Aug 2015 22:12:01 GMT
206
+ Content-Length:
207
+ - '306'
208
+ Connection:
209
+ - Keep-Alive
210
+ Set-Cookie:
211
+ - _internal_session=WHRqSEJWTVRXUW5JMzdnQmVGWUpWd1dFbjFhbE9FQnRxLzJWWmZ3MktKREp5RkNHR01sREtTMlhsWVhBQTlDclh4VlFTcVNUU3pBQWNKa3Btd2lHVVdRWURDTFFKU3lVdGp6T3JNdnl0cHJ0MUJabnRmcnJPaVFDOUJ0NXJkSkozNmNwcHIyUjJoaURlY0hRd3BpSDlabzdodlNTU1g3K3prNnBCM1BxSWdMdFZOcVVoMndicWVrT3hnSmN0YS9pbE4vUlh6azFDYjN0THY4ckpjNzczczRNWkdpeHFLMHBzZnF6eGR1OEdOTnZDTERqTFVCbGgrd0xienZuVTFIaVVKUWR5M3lYRDRuaTJOODZwb1JRTy91Z05DMFlFVFoydTdZdE9ZRjd3d3ZITnNNL21OeTNIZDJzUkpJM0hkVlJJaS9nV2txbmwzR3ZUbjB3aTNJY2FnYnRaMWFjYWpLaHFhakNhdktuckREZFV1SzlzWXFPNk1adHVaZWsvRHBjZzMvQ1hWMndscy9HcG1OTFdZNFJFNExPeU5NNk5idDRZbGsvbnFYVCtaMFZCeFpqZVBwVXlLM0ZWWnNpb251b3NwRUFwdTNzNkpMMFloV2tWcEh1NDB5emhiYUpLQWhYZUJib3VWTFVBY3pic09NTWZXSmhxMnIwK0tGS2xtaU1SRjB5V21NajdHV3Fwd3p3TGJ5NGE5WjFsNHdhOCtqbDAxY1ZYTzJCRzNYbW1oK3o0eDMvUkVQNW5KKzdndmhZeEpZQmNkbnVxd3lYV2VhMUxyYVJBdDRJenFvbzNwbm9UVmdNd0wvUXN4YUwybUp1bzRFUGpQV1JVdWpKbncyWVY3cUswSkJyeUVYc251V3dPYzBobS9ocnpJcmdQQjlxdTlvS2VwVzZFeWVmd2FtUGVhUWVEdzB4TFc3d1AzUU9BYW5QWkNQbVlUU3B1bWxhanZFM3lYUUtTUDdWRExmWHUxWm56RUQ4NThxWXhVNjR5d2pkem1QS00reUMvODhhZll1dm1tMVYzNm1FdEpXRFFRcldvZ3h3ZGJtTWlJYk1Zakg0VUJRZjZXSHhkWCtXSHhJR3pZRS9VWVZLc2JiNWV3SnJaSFZGckd3YkdRdHkxc2Q4YU1aaG16NmxKUndBaks4UVBTdEI2c1JYelA0QS8rNDVQbndNVWhTbEloMWZrUVFYTlNpRFl6dEUzRFZSUDJnQ25HNEJvSW9QN0RtT1JnQW5mZytkUW9tdmdnbXYwcEN0aTdobERsMU02SnZ1a0dkNXkwUEpIVmVMMGxyN2xjOGx6RmFGVGVmanZpQTh5NFFDSHdKbytpQT0tLXYrUXBaOTR1U2ZYVmhGMm5zM2pOUHc9PQ%3D%3D--aae02efa6d75349033e93ab6001c5eefec157890;
212
+ path=/; HttpOnly
213
+ - login_user=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000
214
+ body:
215
+ encoding: UTF-8
216
+ string: '{"accessToken":"anNvMnRtRFpjQWJXM294dk5hck5LaGN1L1NhS2k2YlhFRjZXL1dmZjNRak4rbmNyNFFHbE9ETzdXS3NmVTNXajFPck5wY21ITHpGOW5Gbm9xQmMyaWRBK1hiWHBIUndhZ1dwa2dNVzcwWm5XWDNPblZBKzhGcWYwMXREUnFOdzYtLTZIQmZHK0hHVW5MYnp2QlpIejBhcVE9PQ==--471791d09de67d909c88e206149c42ff11c139b6","tokenType":"Bearer","expiresIn":3600}'
217
+ http_version:
218
+ recorded_at: Mon, 03 Aug 2015 22:12:01 GMT
219
+ - request:
220
+ method: delete
221
+ uri: http://localhost:3000/annotations/bar/checking_anno_id
222
+ body:
223
+ encoding: US-ASCII
224
+ string: ''
225
+ headers:
226
+ Accept:
227
+ - application/ld+json
228
+ Accept-Encoding:
229
+ - gzip, deflate
230
+ Content-Type:
231
+ - application/ld+json
232
+ Authorization:
233
+ - Bearer anNvMnRtRFpjQWJXM294dk5hck5LaGN1L1NhS2k2YlhFRjZXL1dmZjNRak4rbmNyNFFHbE9ETzdXS3NmVTNXajFPck5wY21ITHpGOW5Gbm9xQmMyaWRBK1hiWHBIUndhZ1dwa2dNVzcwWm5XWDNPblZBKzhGcWYwMXREUnFOdzYtLTZIQmZHK0hHVW5MYnp2QlpIejBhcVE9PQ==--471791d09de67d909c88e206149c42ff11c139b6
234
+ Cookie:
235
+ - _internal_session=WHRqSEJWTVRXUW5JMzdnQmVGWUpWd1dFbjFhbE9FQnRxLzJWWmZ3MktKREp5RkNHR01sREtTMlhsWVhBQTlDclh4VlFTcVNUU3pBQWNKa3Btd2lHVVdRWURDTFFKU3lVdGp6T3JNdnl0cHJ0MUJabnRmcnJPaVFDOUJ0NXJkSkozNmNwcHIyUjJoaURlY0hRd3BpSDlabzdodlNTU1g3K3prNnBCM1BxSWdMdFZOcVVoMndicWVrT3hnSmN0YS9pbE4vUlh6azFDYjN0THY4ckpjNzczczRNWkdpeHFLMHBzZnF6eGR1OEdOTnZDTERqTFVCbGgrd0xienZuVTFIaVVKUWR5M3lYRDRuaTJOODZwb1JRTy91Z05DMFlFVFoydTdZdE9ZRjd3d3ZITnNNL21OeTNIZDJzUkpJM0hkVlJJaS9nV2txbmwzR3ZUbjB3aTNJY2FnYnRaMWFjYWpLaHFhakNhdktuckREZFV1SzlzWXFPNk1adHVaZWsvRHBjZzMvQ1hWMndscy9HcG1OTFdZNFJFNExPeU5NNk5idDRZbGsvbnFYVCtaMFZCeFpqZVBwVXlLM0ZWWnNpb251b3NwRUFwdTNzNkpMMFloV2tWcEh1NDB5emhiYUpLQWhYZUJib3VWTFVBY3pic09NTWZXSmhxMnIwK0tGS2xtaU1SRjB5V21NajdHV3Fwd3p3TGJ5NGE5WjFsNHdhOCtqbDAxY1ZYTzJCRzNYbW1oK3o0eDMvUkVQNW5KKzdndmhZeEpZQmNkbnVxd3lYV2VhMUxyYVJBdDRJenFvbzNwbm9UVmdNd0wvUXN4YUwybUp1bzRFUGpQV1JVdWpKbncyWVY3cUswSkJyeUVYc251V3dPYzBobS9ocnpJcmdQQjlxdTlvS2VwVzZFeWVmd2FtUGVhUWVEdzB4TFc3d1AzUU9BYW5QWkNQbVlUU3B1bWxhanZFM3lYUUtTUDdWRExmWHUxWm56RUQ4NThxWXhVNjR5d2pkem1QS00reUMvODhhZll1dm1tMVYzNm1FdEpXRFFRcldvZ3h3ZGJtTWlJYk1Zakg0VUJRZjZXSHhkWCtXSHhJR3pZRS9VWVZLc2JiNWV3SnJaSFZGckd3YkdRdHkxc2Q4YU1aaG16NmxKUndBaks4UVBTdEI2c1JYelA0QS8rNDVQbndNVWhTbEloMWZrUVFYTlNpRFl6dEUzRFZSUDJnQ25HNEJvSW9QN0RtT1JnQW5mZytkUW9tdmdnbXYwcEN0aTdobERsMU02SnZ1a0dkNXkwUEpIVmVMMGxyN2xjOGx6RmFGVGVmanZpQTh5NFFDSHdKbytpQT0tLXYrUXBaOTR1U2ZYVmhGMm5zM2pOUHc9PQ%3D%3D--aae02efa6d75349033e93ab6001c5eefec157890
236
+ User-Agent:
237
+ - Ruby
238
+ response:
239
+ status:
240
+ code: 404
241
+ message: 'Not Found '
242
+ headers:
243
+ X-Frame-Options:
244
+ - SAMEORIGIN
245
+ X-Xss-Protection:
246
+ - 1; mode=block
247
+ X-Content-Type-Options:
248
+ - nosniff
249
+ Content-Type:
250
+ - text/html; charset=utf-8
251
+ Cache-Control:
252
+ - no-cache
253
+ X-Request-Id:
254
+ - 1638854b-781f-4eb6-a965-085fd84f3c66
255
+ X-Runtime:
256
+ - '0.178731'
257
+ Server:
258
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
259
+ Date:
260
+ - Mon, 03 Aug 2015 22:12:01 GMT
261
+ Content-Length:
262
+ - '1454'
263
+ Connection:
264
+ - Keep-Alive
265
+ Set-Cookie:
266
+ - _internal_session=NXdldXQrM1hZRFM4SEJIK2tCVXV6Rkc0UGtZdDFPbWFiK2NneTdIeTFWTVVadDVuKzE1TTUyT0VxVDBSTSthbWsrMnh2WDl3YWxrNkFoOVlYT2NyUUZoaytzbFVsOENxcU4xdUZrajhjZHEyRXdBM3Q5dldWWll5aC8yOFJsamQzcEoxY2FZRHA2cUs0SC9lMWo5dkdkMGcxSk1NSmRGTGVhT3hyQUF0YUQ2S3B1STJsbFlzemEraVBWQm9OUmNDMWFvZ2o0S0ZwS1FZbXRudlJXSzhNSWVXbFI5MmFHY1RVNm5xMDgwbStVVEMxRW9KTkxNUGlETFhubW03VHkzSGQ1VjIrRkVmRlAzd3hTZDNsazFVb0pYWW5YcXpqZ3V3MTZFeWZWUDNzTVNQdjFDQ3l1V2N0b2RjbkRFbVp4aWZ6WnhVT201bXNXai9PRk8xTS9zNTltVEZENjIwdFZBZzNDdDJxQjNwK2hRM3pXd09URVBqU3o3ZjdhSGNTYUw3dFZTeTNuYU8vMm51RzREc0xNT3A0RFNQZUpHc3lmZ1VKSUN0d0JVZCtVOUxNbDFvdjUrT25oRFI0T052WnhzUUtuaWdsYWp0aDJ1Qlp2eDlXWEJRRlFBMWtXYVJZUi9KYzkzS0NGL1BSRzRSd3grV1BNOHFrQlJBblZJTUJzRWppdGxZY28rUmhxTmJybE9sRTZtNXc5OUczV3M0ZVkyWDFhTU9tNXpTNGc1NUErQUNGUDM1ZDdUNW9NODU5aE12VTlXVjJoR3VmczgxbWREOTZGblhRRXhCMlNDZWNnRmlCV1hBZTZvU0d0SjNHbG1ZSnBvajZXVW1iZGhwQTN6R3BzNi92aU9SaFRxTDN4TFRxY3JQUEU2ZWcyazVIeWZkNTFjZmg3VkJ1MmpXaGRNN1NpR2s4RUNpKzlOMEw1RG1qelA2ZzdlQ1YzVEFodjR1NU5xcGhCcmNEUWxhQ3p0SWlxYVpoUS9RbXVra0NKZDFVSVc5T1Z4b00xd1ZTa1N5eHFOcy9FUlNwdEQwRnU5WGR2NnRyd252K2JzQzR3R1YxZXg0cXpjK2prWnJGWEgrVU9hUDJYQkY0NDhRdmN4c2E0U2s0MkhIb3ZDOUExM3IycGxmbUh4NlZIV3JFdSt2Z043QzBHbzVrWXhPM0FOcDMwNGkxSC9CeWpyOWZwZWplTndKbFlNditPdWxYL3RvWmlSWDJMK1dvS2pkOFhTT2FGaTJRNGZ6TG1JMHdwSktYb21ueEpiNEEyY2hKRS9tV1NMaGYxNFVZMlpMVVU5YUFtSTRZb2JFcjd2cFBlbHI1YUtIa0ZMNDE2RT0tLWwyVTBqSVNqL2pVbXRkV2VyVXlodkE9PQ%3D%3D--f621019f873bd79db6e709d8a879019c268e0b7a;
267
+ path=/; HttpOnly
268
+ - request_method=DELETE; path=/
269
+ body:
270
+ encoding: UTF-8
271
+ string: "<h2>error getting bar/checking_anno_id from LDP</h2><html>\n<head>\n<meta
272
+ http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
273
+ 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
274
+ accessing /fedora/rest/anno/bar/checking_anno_id. Reason:\n<pre> Not Found</pre></p><hr
275
+ /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
276
+ \ \n<br/> \n<br/>
277
+ \ \n<br/> \n<br/>
278
+ \ \n<br/> \n<br/>
279
+ \ \n<br/> \n<br/>
280
+ \ \n<br/> \n<br/>
281
+ \ \n<br/> \n<br/>
282
+ \ \n<br/> \n<br/>
283
+ \ \n<br/> \n<br/>
284
+ \ \n<br/> \n<br/>
285
+ \ \n\n</body>\n</html>\n"
286
+ http_version:
287
+ recorded_at: Mon, 03 Aug 2015 22:12:01 GMT
288
+ recorded_with: VCR 2.9.3
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - application/ld+json
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Content-Type:
15
+ - application/ld+json
14
16
  User-Agent:
15
17
  - Ruby
16
18
  response:
@@ -29,13 +31,13 @@ http_interactions:
29
31
  Cache-Control:
30
32
  - no-cache
31
33
  X-Request-Id:
32
- - fa024174-24ef-408a-a170-f172beea9cb1
34
+ - f80347fe-0620-4178-9cca-3f5c47ff4e52
33
35
  X-Runtime:
34
- - '0.021353'
36
+ - '0.018336'
35
37
  Server:
36
38
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
39
  Date:
38
- - Fri, 19 Jun 2015 18:37:45 GMT
40
+ - Mon, 03 Aug 2015 22:12:00 GMT
39
41
  Content-Length:
40
42
  - '1460'
41
43
  Connection:
@@ -58,7 +60,7 @@ http_interactions:
58
60
  \ \n<br/> \n<br/>
59
61
  \ \n\n</body>\n</html>\n"
60
62
  http_version:
61
- recorded_at: Fri, 19 Jun 2015 18:37:45 GMT
63
+ recorded_at: Mon, 03 Aug 2015 22:12:00 GMT
62
64
  - request:
63
65
  method: delete
64
66
  uri: http://localhost:3000/annotations/foo/anno_does_not_exist
@@ -67,9 +69,11 @@ http_interactions:
67
69
  string: ''
68
70
  headers:
69
71
  Accept:
70
- - "*/*; q=0.5, application/xml"
72
+ - application/ld+json
71
73
  Accept-Encoding:
72
74
  - gzip, deflate
75
+ Content-Type:
76
+ - application/ld+json
73
77
  User-Agent:
74
78
  - Ruby
75
79
  response:
@@ -88,13 +92,13 @@ http_interactions:
88
92
  Cache-Control:
89
93
  - no-cache
90
94
  X-Request-Id:
91
- - b2924f3b-8192-4cc3-85ff-29b1f47cc961
95
+ - b2b6dda7-fa6e-42f3-88c8-bb062f3389d5
92
96
  X-Runtime:
93
- - '0.026076'
97
+ - '0.014923'
94
98
  Server:
95
99
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
96
100
  Date:
97
- - Fri, 19 Jun 2015 18:37:45 GMT
101
+ - Mon, 03 Aug 2015 22:12:00 GMT
98
102
  Content-Length:
99
103
  - '1460'
100
104
  Connection:
@@ -119,5 +123,5 @@ http_interactions:
119
123
  \ \n<br/> \n<br/>
120
124
  \ \n\n</body>\n</html>\n"
121
125
  http_version:
122
- recorded_at: Fri, 19 Jun 2015 18:37:45 GMT
126
+ recorded_at: Mon, 03 Aug 2015 22:12:00 GMT
123
127
  recorded_with: VCR 2.9.3
@@ -0,0 +1,127 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: http://localhost:3000/annotations/foo/%2F44%2F88%2F5a%2F75%2F44885a75-6c5b-4da8-8871-bb60932e42f7
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/ld+json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/ld+json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 404
21
+ message: 'Not Found '
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ Content-Type:
30
+ - text/html; charset=utf-8
31
+ Cache-Control:
32
+ - no-cache
33
+ X-Request-Id:
34
+ - 2aa1d1ad-b0b8-4b1c-bf91-09c7fb7e80b9
35
+ X-Runtime:
36
+ - '0.014821'
37
+ Server:
38
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
39
+ Date:
40
+ - Mon, 03 Aug 2015 22:12:00 GMT
41
+ Content-Length:
42
+ - '1519'
43
+ Connection:
44
+ - Keep-Alive
45
+ Set-Cookie:
46
+ - request_method=DELETE; path=/
47
+ body:
48
+ encoding: UTF-8
49
+ string: "<h2>error getting foo//44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7
50
+ from LDP</h2><html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;
51
+ charset=ISO-8859-1\"/>\n<title>Error 404 Not Found</title>\n</head>\n<body><h2>HTTP
52
+ ERROR 404</h2>\n<p>Problem accessing /fedora/rest/anno/foo/44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7.
53
+ Reason:\n<pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
54
+ \ \n<br/> \n<br/>
55
+ \ \n<br/> \n<br/>
56
+ \ \n<br/> \n<br/>
57
+ \ \n<br/> \n<br/>
58
+ \ \n<br/> \n<br/>
59
+ \ \n<br/> \n<br/>
60
+ \ \n<br/> \n<br/>
61
+ \ \n<br/> \n<br/>
62
+ \ \n<br/> \n<br/>
63
+ \ \n<br/> \n\n</body>\n</html>\n"
64
+ http_version:
65
+ recorded_at: Mon, 03 Aug 2015 22:12:00 GMT
66
+ - request:
67
+ method: get
68
+ uri: http://localhost:3000/annotations/foo/%2F44%2F88%2F5a%2F75%2F44885a75-6c5b-4da8-8871-bb60932e42f7
69
+ body:
70
+ encoding: US-ASCII
71
+ string: ''
72
+ headers:
73
+ Accept:
74
+ - application/ld+json
75
+ Accept-Encoding:
76
+ - gzip, deflate
77
+ Content-Type:
78
+ - application/ld+json
79
+ User-Agent:
80
+ - Ruby
81
+ response:
82
+ status:
83
+ code: 404
84
+ message: 'Not Found '
85
+ headers:
86
+ X-Frame-Options:
87
+ - SAMEORIGIN
88
+ X-Xss-Protection:
89
+ - 1; mode=block
90
+ X-Content-Type-Options:
91
+ - nosniff
92
+ Content-Type:
93
+ - text/html; charset=utf-8
94
+ Cache-Control:
95
+ - no-cache
96
+ X-Request-Id:
97
+ - f05e8bc2-838f-4017-a4d6-3eb17ceef8e6
98
+ X-Runtime:
99
+ - '0.015688'
100
+ Server:
101
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
102
+ Date:
103
+ - Mon, 03 Aug 2015 22:12:00 GMT
104
+ Content-Length:
105
+ - '1519'
106
+ Connection:
107
+ - Keep-Alive
108
+ body:
109
+ encoding: UTF-8
110
+ string: "<h2>error getting foo//44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7
111
+ from LDP</h2><html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;
112
+ charset=ISO-8859-1\"/>\n<title>Error 404 Not Found</title>\n</head>\n<body><h2>HTTP
113
+ ERROR 404</h2>\n<p>Problem accessing /fedora/rest/anno/foo/44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7.
114
+ Reason:\n<pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
115
+ \ \n<br/> \n<br/>
116
+ \ \n<br/> \n<br/>
117
+ \ \n<br/> \n<br/>
118
+ \ \n<br/> \n<br/>
119
+ \ \n<br/> \n<br/>
120
+ \ \n<br/> \n<br/>
121
+ \ \n<br/> \n<br/>
122
+ \ \n<br/> \n<br/>
123
+ \ \n<br/> \n<br/>
124
+ \ \n<br/> \n\n</body>\n</html>\n"
125
+ http_version:
126
+ recorded_at: Mon, 03 Aug 2015 22:12:00 GMT
127
+ recorded_with: VCR 2.9.3