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,349 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/annotations/bar/anno_does_not_exist
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
+ - 646dd33f-62ab-406b-8ac2-5a38d19c94ca
35
+ X-Runtime:
36
+ - '0.016084'
37
+ Server:
38
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
39
+ Date:
40
+ - Mon, 03 Aug 2015 22:12:02 GMT
41
+ Content-Length:
42
+ - '1460'
43
+ Connection:
44
+ - Keep-Alive
45
+ body:
46
+ encoding: UTF-8
47
+ string: "<h2>error getting bar/anno_does_not_exist from LDP</h2><html>\n<head>\n<meta
48
+ http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
49
+ 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
50
+ accessing /fedora/rest/anno/bar/anno_does_not_exist. Reason:\n<pre> Not
51
+ Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
52
+ \ \n<br/> \n<br/>
53
+ \ \n<br/> \n<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\n</body>\n</html>\n"
62
+ http_version:
63
+ recorded_at: Mon, 03 Aug 2015 22:12:02 GMT
64
+ - request:
65
+ method: delete
66
+ uri: http://localhost:3000/annotations/bar/anno_does_not_exist
67
+ body:
68
+ encoding: US-ASCII
69
+ string: ''
70
+ headers:
71
+ Accept:
72
+ - application/ld+json
73
+ Accept-Encoding:
74
+ - gzip, deflate
75
+ Content-Type:
76
+ - application/ld+json
77
+ User-Agent:
78
+ - Ruby
79
+ response:
80
+ status:
81
+ code: 401
82
+ message: 'Unauthorized '
83
+ headers:
84
+ X-Frame-Options:
85
+ - SAMEORIGIN
86
+ X-Xss-Protection:
87
+ - 1; mode=block
88
+ X-Content-Type-Options:
89
+ - nosniff
90
+ Content-Type:
91
+ - '["application/ld+json"]; charset=utf-8'
92
+ Cache-Control:
93
+ - no-cache
94
+ X-Request-Id:
95
+ - e17299af-3ade-414d-b663-9024c14c115f
96
+ X-Runtime:
97
+ - '0.004801'
98
+ Server:
99
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
100
+ Date:
101
+ - Mon, 03 Aug 2015 22:12:02 GMT
102
+ Content-Length:
103
+ - '163'
104
+ Connection:
105
+ - Keep-Alive
106
+ Set-Cookie:
107
+ - request_method=DELETE; path=/
108
+ body:
109
+ encoding: UTF-8
110
+ string: '{"error":"invalidRequest","errorDescription":"Access token required","errorUri":"http://image-auth.iiif.io/api/image/2.1/authentication.html#access-token-service"}'
111
+ http_version:
112
+ recorded_at: Mon, 03 Aug 2015 22:12:02 GMT
113
+ - request:
114
+ method: post
115
+ uri: http://localhost:3000/auth/client_identity
116
+ body:
117
+ encoding: UTF-8
118
+ string: '{"clientId":"clientA","clientSecret":"secretA"}'
119
+ headers:
120
+ Accept:
121
+ - application/json
122
+ Accept-Encoding:
123
+ - gzip, deflate
124
+ Content-Type:
125
+ - application/json
126
+ Content-Length:
127
+ - '47'
128
+ User-Agent:
129
+ - Ruby
130
+ response:
131
+ status:
132
+ code: 200
133
+ message: 'OK '
134
+ headers:
135
+ X-Frame-Options:
136
+ - SAMEORIGIN
137
+ X-Xss-Protection:
138
+ - 1; mode=block
139
+ X-Content-Type-Options:
140
+ - nosniff
141
+ Content-Type:
142
+ - application/json; charset=utf-8
143
+ Etag:
144
+ - W/"affcd560305325f87d6d786d73de954b"
145
+ Cache-Control:
146
+ - max-age=0, private, must-revalidate
147
+ X-Request-Id:
148
+ - a79346de-b89e-448e-97b2-1d0883e1ddca
149
+ X-Runtime:
150
+ - '0.164007'
151
+ Server:
152
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
153
+ Date:
154
+ - Mon, 03 Aug 2015 22:12:02 GMT
155
+ Content-Length:
156
+ - '186'
157
+ Connection:
158
+ - Keep-Alive
159
+ Set-Cookie:
160
+ - _internal_session=STg1ZHdVYlRGZHdvUDBUTzBxSVRCeFFNWm9CZE5UR0UyUGgyeGIxS25EalhpZXdpcnhaTjgzd2dvUGwxV202YnZQR3dTZVI0RFNHdjFpN0lGZjU3b3JiSUZPZDMxdnZtQXo1cEZRVE5aclNFZFpVbHVNU2daUUtEYnJaeXBpc3NWSXFNTG4vOVNPYmhob1FrZFNCMTl5NEFvLzV3d3FkbUdsY2NTL2lCb3hLR3U4elRkMm01V08wUDJPbHBRMldsbmpHRXVLSiswU202bTZEdzJWdGU3aCtRTStCNzB4d3puNjVwWitvazAvM1J5ZU1MUzJ6SmZnUE9YbTIydDNobGNacDgwS3JTNzFMTEphTnVydHI1SjBxc0NCbnlxc2RJb3R6dVRUU01Rc0pPWXFSVWw4b3AxcFFNaE5xb2pXbW1QbmozN0EyYW9EMWVXZStyak02K25oM3RaQ1hydWJHMDdLZi9WWXFTUE1hYVIxKzNyNVkvRmFvMk5XVFdXS2JIZEcrM3FnSlg3cWxUUkZ1UnFMTzJpd3VQSUtxeEZWcjdGQkRodnVJZjNFUjM1K3hReGdKNnY2R1hwenYyS1lxaTd0S1JEb1pjTndkWEdKSFdTc1BYeHRyWkEyUXYzS0JkejFhLzhmMEFyTnM9LS1rbmZoWGszOFdib1hrU3lzL25lT3VRPT0%3D--5e1b5f2840ea9d5a26b67f1dbb2b0d40819d7f81;
161
+ path=/; HttpOnly
162
+ - request_method=POST; path=/
163
+ body:
164
+ encoding: UTF-8
165
+ string: '{"authorizationCode":"NGJOZ3ZKUmVCcS9KY01IV2duUng0TTlGSklHOUZuOGUwK3J2U1VwWHNxSG9icmMvVGZhYVJodVJJUkpzc2JUdS0tazlKRzJMOHRXb2k5TC9wWlEvRmg5QT09--6d83767121d764f01c158ea6a3cc05fc1af80753"}'
166
+ http_version:
167
+ recorded_at: Mon, 03 Aug 2015 22:12:02 GMT
168
+ - request:
169
+ method: post
170
+ uri: http://localhost:3000/auth/login?code=NGJOZ3ZKUmVCcS9KY01IV2duUng0TTlGSklHOUZuOGUwK3J2U1VwWHNxSG9icmMvVGZhYVJodVJJUkpzc2JUdS0tazlKRzJMOHRXb2k5TC9wWlEvRmg5QT09--6d83767121d764f01c158ea6a3cc05fc1af80753
171
+ body:
172
+ encoding: UTF-8
173
+ string: '{"userId":"","workgroups":"org:wg-A, org:wg-B"}'
174
+ headers:
175
+ Accept:
176
+ - application/json
177
+ Accept-Encoding:
178
+ - gzip, deflate
179
+ Content-Type:
180
+ - application/json
181
+ Cookie:
182
+ - _internal_session=STg1ZHdVYlRGZHdvUDBUTzBxSVRCeFFNWm9CZE5UR0UyUGgyeGIxS25EalhpZXdpcnhaTjgzd2dvUGwxV202YnZQR3dTZVI0RFNHdjFpN0lGZjU3b3JiSUZPZDMxdnZtQXo1cEZRVE5aclNFZFpVbHVNU2daUUtEYnJaeXBpc3NWSXFNTG4vOVNPYmhob1FrZFNCMTl5NEFvLzV3d3FkbUdsY2NTL2lCb3hLR3U4elRkMm01V08wUDJPbHBRMldsbmpHRXVLSiswU202bTZEdzJWdGU3aCtRTStCNzB4d3puNjVwWitvazAvM1J5ZU1MUzJ6SmZnUE9YbTIydDNobGNacDgwS3JTNzFMTEphTnVydHI1SjBxc0NCbnlxc2RJb3R6dVRUU01Rc0pPWXFSVWw4b3AxcFFNaE5xb2pXbW1QbmozN0EyYW9EMWVXZStyak02K25oM3RaQ1hydWJHMDdLZi9WWXFTUE1hYVIxKzNyNVkvRmFvMk5XVFdXS2JIZEcrM3FnSlg3cWxUUkZ1UnFMTzJpd3VQSUtxeEZWcjdGQkRodnVJZjNFUjM1K3hReGdKNnY2R1hwenYyS1lxaTd0S1JEb1pjTndkWEdKSFdTc1BYeHRyWkEyUXYzS0JkejFhLzhmMEFyTnM9LS1rbmZoWGszOFdib1hrU3lzL25lT3VRPT0%3D--5e1b5f2840ea9d5a26b67f1dbb2b0d40819d7f81;
183
+ request_method=POST
184
+ Content-Length:
185
+ - '47'
186
+ User-Agent:
187
+ - Ruby
188
+ response:
189
+ status:
190
+ code: 200
191
+ message: 'OK '
192
+ headers:
193
+ X-Frame-Options:
194
+ - SAMEORIGIN
195
+ X-Xss-Protection:
196
+ - 1; mode=block
197
+ X-Content-Type-Options:
198
+ - nosniff
199
+ Content-Type:
200
+ - text/plain; charset=utf-8
201
+ Cache-Control:
202
+ - no-cache
203
+ X-Request-Id:
204
+ - 6d0471ec-aa51-402a-bc1b-dee55f5e21ac
205
+ X-Runtime:
206
+ - '0.159430'
207
+ Server:
208
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
209
+ Date:
210
+ - Mon, 03 Aug 2015 22:12:03 GMT
211
+ Content-Length:
212
+ - '0'
213
+ Connection:
214
+ - Keep-Alive
215
+ Set-Cookie:
216
+ - _internal_session=YS83Wnd0cVM1eTJvSmdRWlZXOWZJdXV6c1BJelNnWmFaUGIyY1R6ekNqbHI5VE5aV2hybU9SOU02NmxvRVFRWTNrR2VZYVg5UzdncDVzc0tnMEs3cWNYSDVIdnRQZjdBM1ZWOU9pUDdVdjBWdHAwcWxjdXM5eHdzdVA5K1F1Z0dDYVJQVXk5NitzUnhNUUhNTXVCa1A4OFRmbFFGRWpRdjZaUlhCUVdnMGhaNVJCV3R4Y0xCYTdaZjIvUTZGeTVkdG0wU1lpdDBERmN3ZDBZWldBdW8wQXFPUEZtVW5nUDZkM0U4dXlYVGdvVkI0bGFyeXpGbUt2NnNqU202blhIb2RjUmhzSHlxYUZSZjZ3Vnp3VTc2UXFCTSt2aUU2ZXlVekVTOTJtKzh0WTlxUmxINDhqSWJyenlwSEZ6QkV2UDB0bnZJY3NnUXZwR2F1REhDV1dDemJDR1R3dS9GM1F5ZnlHZjhCN1dvU1lmUDBrOVliSUZpZ0Z1TitpVGlkNE14WklPK3FIYXpWeWVRbS9Qbk83NjMrOEdKM3NzQkE4MEo5dTRGRHJDeE95bXBIbWsreWdDVTB2V3hucHpaN3dkVHpEL1pUOEo3bURiSWEybXFVRGlXSVpyQ2N4UjVvczRMQUJSSnFJZ3U2NnNCdGNUeVN6amQrcDdpd1NUZVBaT2lGcEVoVmE3MnpQNjNURnhDRTFQWTJDUHY0RjdIR0V1eG1SZWpTUkJubE10Q0VBSTVYbFEvWE12UGJWTFpSeWhqLS1UUkZRdTR5aFo3MFVhNjBkcWlpcWtnPT0%3D--830638134d22d0db55fb1e2e97ee7d999bdb19d9;
217
+ path=/; HttpOnly
218
+ - login_user=; path=/
219
+ body:
220
+ encoding: UTF-8
221
+ string: ''
222
+ http_version:
223
+ recorded_at: Mon, 03 Aug 2015 22:12:03 GMT
224
+ - request:
225
+ method: get
226
+ uri: http://localhost:3000/auth/access_token?code=NGJOZ3ZKUmVCcS9KY01IV2duUng0TTlGSklHOUZuOGUwK3J2U1VwWHNxSG9icmMvVGZhYVJodVJJUkpzc2JUdS0tazlKRzJMOHRXb2k5TC9wWlEvRmg5QT09--6d83767121d764f01c158ea6a3cc05fc1af80753
227
+ body:
228
+ encoding: US-ASCII
229
+ string: ''
230
+ headers:
231
+ Accept:
232
+ - application/ld+json
233
+ Accept-Encoding:
234
+ - gzip, deflate
235
+ Content-Type:
236
+ - application/ld+json
237
+ Cookie:
238
+ - _internal_session=YS83Wnd0cVM1eTJvSmdRWlZXOWZJdXV6c1BJelNnWmFaUGIyY1R6ekNqbHI5VE5aV2hybU9SOU02NmxvRVFRWTNrR2VZYVg5UzdncDVzc0tnMEs3cWNYSDVIdnRQZjdBM1ZWOU9pUDdVdjBWdHAwcWxjdXM5eHdzdVA5K1F1Z0dDYVJQVXk5NitzUnhNUUhNTXVCa1A4OFRmbFFGRWpRdjZaUlhCUVdnMGhaNVJCV3R4Y0xCYTdaZjIvUTZGeTVkdG0wU1lpdDBERmN3ZDBZWldBdW8wQXFPUEZtVW5nUDZkM0U4dXlYVGdvVkI0bGFyeXpGbUt2NnNqU202blhIb2RjUmhzSHlxYUZSZjZ3Vnp3VTc2UXFCTSt2aUU2ZXlVekVTOTJtKzh0WTlxUmxINDhqSWJyenlwSEZ6QkV2UDB0bnZJY3NnUXZwR2F1REhDV1dDemJDR1R3dS9GM1F5ZnlHZjhCN1dvU1lmUDBrOVliSUZpZ0Z1TitpVGlkNE14WklPK3FIYXpWeWVRbS9Qbk83NjMrOEdKM3NzQkE4MEo5dTRGRHJDeE95bXBIbWsreWdDVTB2V3hucHpaN3dkVHpEL1pUOEo3bURiSWEybXFVRGlXSVpyQ2N4UjVvczRMQUJSSnFJZ3U2NnNCdGNUeVN6amQrcDdpd1NUZVBaT2lGcEVoVmE3MnpQNjNURnhDRTFQWTJDUHY0RjdIR0V1eG1SZWpTUkJubE10Q0VBSTVYbFEvWE12UGJWTFpSeWhqLS1UUkZRdTR5aFo3MFVhNjBkcWlpcWtnPT0%3D--830638134d22d0db55fb1e2e97ee7d999bdb19d9;
239
+ login_user=
240
+ User-Agent:
241
+ - Ruby
242
+ response:
243
+ status:
244
+ code: 200
245
+ message: 'OK '
246
+ headers:
247
+ X-Frame-Options:
248
+ - SAMEORIGIN
249
+ X-Xss-Protection:
250
+ - 1; mode=block
251
+ X-Content-Type-Options:
252
+ - nosniff
253
+ Content-Type:
254
+ - '["application/ld+json"]; charset=utf-8'
255
+ Etag:
256
+ - W/"ebca90f0da992b8c946e081815d3d15f"
257
+ Cache-Control:
258
+ - max-age=0, private, must-revalidate
259
+ X-Request-Id:
260
+ - a6b17179-eb75-455c-96c3-2770032b00bc
261
+ X-Runtime:
262
+ - '0.326911'
263
+ Server:
264
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
265
+ Date:
266
+ - Mon, 03 Aug 2015 22:12:03 GMT
267
+ Content-Length:
268
+ - '306'
269
+ Connection:
270
+ - Keep-Alive
271
+ Set-Cookie:
272
+ - _internal_session=Q3cramdsR0xxWEdweTRta2Y5cHEzZkFIeFZHOGpWV0YzZ3lBOXUwUVpDSFdBSlRnZEhyN1F1UXFnaTJCdkRIb1YraTZzbklHTEdjbFBEMkt3NXQ1WG8rZXM2bXIwbXNWaldSSDZPR3hpbmk5WDhwN3J0K3c3c3lncXFhUWJZcDNVeVdUeWdpc2QvaUdXbnJQenFlNy9zZWt3MldtaFZWV0prS1ZoSDBtTmFQUHRGUTdvSE5sMzhkeEdld2dIN2F5ZkU0NTVzNFJvUERmMVRLcnFqMCtHdWIxdUF2amI1WUMvY1hnSUIvbDdDY1YxeURPQ2FsTHR3QXMwNE9FK2s4ZFhmL1dBRUloYmR5cTRDNHd6ei9JeHRnc2hmSjZiWVNXTDM3d0xMbzVQYlpneGhCL1RISzJuNFhnY0tEemJQbjFBbUJ6VktzNFVtaWlCT2pyRUpOZVlGdE94SG10VmdONnNkYlA0NEJpSXBkdFNzSGdxUGpCUldDWVEvbnd4dGRGY1BTUUdVUHRCZ2dQdXQ0R1NQcnhKUG9zdVlJdksvQ1kxbjRyZ1FHVkY5VndRbFBvdzA4QW1vMXl2SzNRYjJINEZUcDZHSTdUZUFNQmloRnA0NU9ReTJNTjZoeVJMS1VlVWczQ3ZCUy84ano0eFdKRUovZmtod0xhUHBJWnNRcm5TRVdteEcwMmJyRDRiRlRoazJKQUcvWkVNem1qYUs1eVdpQ245Yk1ocHJHQ2RtR0hIRGcwK2JXbzFmS3Ywc2g3YXN0QXgwNm1VekVnSFlVUkhaK0FDby9PdGJ4UG4ydEc4c1dPd25xK3ZZb3VjMVMzeGF0bTE5WXRwUDhhNjdOZ1IwMGZBeW5sSllSQUNHT05GZHpTOGVRUzZmYnlOeVNsZU9pUGo2TVp5QTFFUkZRQUZCVnVzT0dXNG9UTWR2WU0zVTZKZ3F0MWpNc3JaWDV5bUFQL3Y5VFdHVmlVaUg5UFJPL3kzMmMwQ1pjZUY2MExEbXgyczVpNmtuUmFlV2lWSW9jWVEwNTFpNmZ2RFpSZG5PM05jN2I4VWV1aWpDSkV2TUIyNk5ndmh2TndFaG5PQ0NVbXZFclllK1JPVkxUVm1wRVFxSDZmVlNyeEJZTXRUQklrdjJQZVFFd0c5L0FlSmpLQzhvY0UrNDNqaFVhZXE1dU11aHlFUHNpZDZIRWVaWUR3aHR4a1o1Zm5teHA0VEI5dXpZd29oYit0MFVreittOEwxNG5TU0ZwM0x1WFdFKzYyRjRaV2JoRUhhQ1h1MThOODVZNFFmYVRPYVBUbVIrbFdUR2kxb2hPZEVYZHpZOHpIMFZWOGRuQT0tLVpsNGhQY3kzaHJUcCs2QVNaV2JkUWc9PQ%3D%3D--104793b195260f806f3912cc896c5c13751334b3;
273
+ path=/; HttpOnly
274
+ - login_user=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000
275
+ body:
276
+ encoding: UTF-8
277
+ string: '{"accessToken":"aUR1RjM5RFhJWkx2S3ZUalNaeUxlZWtVK09McTc1Qk5QR3k4TE1IeUFGdmg1T1pHbGEwUjljckVjZGIzVTZVL1FERmRqY0lCMTQ4L1dscFVidkwxdGZZdklzSFc5QnFWMzUvUFZ2QzQ4YkZ6NTlKTVJzUGUxT0FWMUM1ZmFLbmItLTd1RkhZclNtQUtGdWpyVFZEYXBxTUE9PQ==--6cd4214631ca6f1d894d0a26330ed0b53ba159d9","tokenType":"Bearer","expiresIn":3600}'
278
+ http_version:
279
+ recorded_at: Mon, 03 Aug 2015 22:12:03 GMT
280
+ - request:
281
+ method: delete
282
+ uri: http://localhost:3000/annotations/bar/anno_does_not_exist
283
+ body:
284
+ encoding: US-ASCII
285
+ string: ''
286
+ headers:
287
+ Accept:
288
+ - application/ld+json
289
+ Accept-Encoding:
290
+ - gzip, deflate
291
+ Content-Type:
292
+ - application/ld+json
293
+ Authorization:
294
+ - Bearer aUR1RjM5RFhJWkx2S3ZUalNaeUxlZWtVK09McTc1Qk5QR3k4TE1IeUFGdmg1T1pHbGEwUjljckVjZGIzVTZVL1FERmRqY0lCMTQ4L1dscFVidkwxdGZZdklzSFc5QnFWMzUvUFZ2QzQ4YkZ6NTlKTVJzUGUxT0FWMUM1ZmFLbmItLTd1RkhZclNtQUtGdWpyVFZEYXBxTUE9PQ==--6cd4214631ca6f1d894d0a26330ed0b53ba159d9
295
+ Cookie:
296
+ - _internal_session=Q3cramdsR0xxWEdweTRta2Y5cHEzZkFIeFZHOGpWV0YzZ3lBOXUwUVpDSFdBSlRnZEhyN1F1UXFnaTJCdkRIb1YraTZzbklHTEdjbFBEMkt3NXQ1WG8rZXM2bXIwbXNWaldSSDZPR3hpbmk5WDhwN3J0K3c3c3lncXFhUWJZcDNVeVdUeWdpc2QvaUdXbnJQenFlNy9zZWt3MldtaFZWV0prS1ZoSDBtTmFQUHRGUTdvSE5sMzhkeEdld2dIN2F5ZkU0NTVzNFJvUERmMVRLcnFqMCtHdWIxdUF2amI1WUMvY1hnSUIvbDdDY1YxeURPQ2FsTHR3QXMwNE9FK2s4ZFhmL1dBRUloYmR5cTRDNHd6ei9JeHRnc2hmSjZiWVNXTDM3d0xMbzVQYlpneGhCL1RISzJuNFhnY0tEemJQbjFBbUJ6VktzNFVtaWlCT2pyRUpOZVlGdE94SG10VmdONnNkYlA0NEJpSXBkdFNzSGdxUGpCUldDWVEvbnd4dGRGY1BTUUdVUHRCZ2dQdXQ0R1NQcnhKUG9zdVlJdksvQ1kxbjRyZ1FHVkY5VndRbFBvdzA4QW1vMXl2SzNRYjJINEZUcDZHSTdUZUFNQmloRnA0NU9ReTJNTjZoeVJMS1VlVWczQ3ZCUy84ano0eFdKRUovZmtod0xhUHBJWnNRcm5TRVdteEcwMmJyRDRiRlRoazJKQUcvWkVNem1qYUs1eVdpQ245Yk1ocHJHQ2RtR0hIRGcwK2JXbzFmS3Ywc2g3YXN0QXgwNm1VekVnSFlVUkhaK0FDby9PdGJ4UG4ydEc4c1dPd25xK3ZZb3VjMVMzeGF0bTE5WXRwUDhhNjdOZ1IwMGZBeW5sSllSQUNHT05GZHpTOGVRUzZmYnlOeVNsZU9pUGo2TVp5QTFFUkZRQUZCVnVzT0dXNG9UTWR2WU0zVTZKZ3F0MWpNc3JaWDV5bUFQL3Y5VFdHVmlVaUg5UFJPL3kzMmMwQ1pjZUY2MExEbXgyczVpNmtuUmFlV2lWSW9jWVEwNTFpNmZ2RFpSZG5PM05jN2I4VWV1aWpDSkV2TUIyNk5ndmh2TndFaG5PQ0NVbXZFclllK1JPVkxUVm1wRVFxSDZmVlNyeEJZTXRUQklrdjJQZVFFd0c5L0FlSmpLQzhvY0UrNDNqaFVhZXE1dU11aHlFUHNpZDZIRWVaWUR3aHR4a1o1Zm5teHA0VEI5dXpZd29oYit0MFVreittOEwxNG5TU0ZwM0x1WFdFKzYyRjRaV2JoRUhhQ1h1MThOODVZNFFmYVRPYVBUbVIrbFdUR2kxb2hPZEVYZHpZOHpIMFZWOGRuQT0tLVpsNGhQY3kzaHJUcCs2QVNaV2JkUWc9PQ%3D%3D--104793b195260f806f3912cc896c5c13751334b3
297
+ User-Agent:
298
+ - Ruby
299
+ response:
300
+ status:
301
+ code: 404
302
+ message: 'Not Found '
303
+ headers:
304
+ X-Frame-Options:
305
+ - SAMEORIGIN
306
+ X-Xss-Protection:
307
+ - 1; mode=block
308
+ X-Content-Type-Options:
309
+ - nosniff
310
+ Content-Type:
311
+ - text/html; charset=utf-8
312
+ Cache-Control:
313
+ - no-cache
314
+ X-Request-Id:
315
+ - 22fa18b2-e3aa-458d-8d99-03a7014f6d67
316
+ X-Runtime:
317
+ - '0.180379'
318
+ Server:
319
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
320
+ Date:
321
+ - Mon, 03 Aug 2015 22:12:03 GMT
322
+ Content-Length:
323
+ - '1460'
324
+ Connection:
325
+ - Keep-Alive
326
+ Set-Cookie:
327
+ - _internal_session=TG5kNzdvcTNhM0REZk9PdWtwb1hJVzNuWTJhZ1crYzFGa2VjYkZzR2xYZHpjWk5rOE5qL1IyY24xQi9Ob2hFcmlVVitHVE1MWk5IRnZPc1lkTWJNWUZLQmJKM3FmS3F3aVJIMVAxVVhNSCtVSExla0tPY0NzQnJBRnpYYy9ldW5HemZSZzMvejNzdVBkUVcrN0xPYkN2bzV0V1FrV21CeGhxaEFuaGpneHdrTzJmOHZwOFdHVnlTUVQydVhCSTlmMU9TUXNJcndrMVM0bmxZVWVMMVBHLzJ2ZlE1aHVWRTUvYU04WTRKQ04vWjEzSllLUk1yMUpOQTNmcjFsZjlpVURubk0rbDA1aTJRanhveERIV0d6TXNhQmZneFlJaEF3ZVgwWlovci9JN050V09LQmlsaEFYQWtjU2lwa1lIRkVncDdpTnpZVlkvajR6SDVUMkZpTDE0bEh3R1h0WENPZG1jUTNERE5WTWxTbHFhL0Q0cmszTzlwRmxtSVFhWjFhUFVKaUx0NU9OSERxZXRiSzdGOURiUHFISzgwcmlZbHRSZlA4bXV6dTY2VjBIeW5YZ1RHUWVvVWFYaW9GRjFmZmVLRWVYTGNiWDdiT1pYMFM1bndFeHhhK282c2RjRHM3c1ZRazJZV0Uxa2xheGxEaWlYSzZJNkJCV3hDU3gzVjU2Y3AyNjBvM2FZVHFReTJwT3dsdjYxQUd4VWh6TndwUEdyOG5oR25FUURrNGNISE5Na09OSDdDdmdjdkJDSEdLbXpDb0NKaEdnNFlEK3NjQTQxcThkNTlncklxK2w2TWFkWUY1eldCa3JyenlQK1hNcWdseVVLbUpIVHpxR2E3OUNjazBMY0pvOU85VkhsWlM4NGdBZGxBeENHL3cxYkFFMm5PUEFBYkFXTW1Cek8yQ2piZ3oxaWszTmlPUnEwQzJweTAwbS9xc2lpNEFUTmRPUENHTEJRM2ExZDByYnNqOXNUeTZLMDhwRU1kUytKbjVKZ0JUdmF0OWZUNE9jaTlxVGlPVDErUXpSbzllZXJWWXFUL2VmRGJhRVh2R1RqaDVmZGEwNHFwMVBibVhxaW5jYk5RaHFHaUFNZE5IcENueVJCcjVVSmgwcDRYVjUrUXY4ZERnUU5Ta2oxTHRhdnhpM1FCREFQaGVRNXNVdnJwQ0J2NUtuYis0SHMrT3Azc3dZTDlkMVBGQWo4TGFIN1kxWExQd3AwZ29KTWhtTkVRWGd1eGpWNlRUd3hCWWRCR0ozcWpoc3ZGRkJxaExOSzI4VlFGL1p1VklXalpKZTZKWTBMdzN0cC9IVGNrZldQSlpMU0Rtb2thSEZpOD0tLVBJN3dMS3ZCbUxFSW4vK2Nnam1mcUE9PQ%3D%3D--ce9662866c7837b9dba9846d2b9830a240aeb232;
328
+ path=/; HttpOnly
329
+ - request_method=DELETE; path=/
330
+ body:
331
+ encoding: UTF-8
332
+ string: "<h2>error getting bar/anno_does_not_exist from LDP</h2><html>\n<head>\n<meta
333
+ http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
334
+ 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
335
+ accessing /fedora/rest/anno/bar/anno_does_not_exist. Reason:\n<pre> Not
336
+ Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
337
+ \ \n<br/> \n<br/>
338
+ \ \n<br/> \n<br/>
339
+ \ \n<br/> \n<br/>
340
+ \ \n<br/> \n<br/>
341
+ \ \n<br/> \n<br/>
342
+ \ \n<br/> \n<br/>
343
+ \ \n<br/> \n<br/>
344
+ \ \n<br/> \n<br/>
345
+ \ \n<br/> \n<br/>
346
+ \ \n\n</body>\n</html>\n"
347
+ http_version:
348
+ recorded_at: Mon, 03 Aug 2015 22:12:03 GMT
349
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,332 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: http://localhost:3000/annotations/bar/%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: 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
+ - 69334332-c0cc-42c5-b772-83bf888dbae1
35
+ X-Runtime:
36
+ - '0.003184'
37
+ Server:
38
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
39
+ Date:
40
+ - Mon, 03 Aug 2015 22:12:01 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:01 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/"ff275df6cb39a30d42d7403a7a677763"
84
+ Cache-Control:
85
+ - max-age=0, private, must-revalidate
86
+ X-Request-Id:
87
+ - 4bc7b5c1-a22c-49a8-b2c4-2d04a7670ab9
88
+ X-Runtime:
89
+ - '0.162240'
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=ZXo5R2ptZzdlajJYbEx4cjZDNHVtSStrazlvTEoyKzhNVHZqeW96SFRlRS9BM2tNTk4rK25xeU95dEEwYnhkRFNMVkdrVXNRMzJUTW1mVjZUZVdqSHpyT3pKdVNwc050ZWVqa1JDT0FOVksxUTMwblFRb1A2OVBKRlJQMXZ3bDdYUDRRd1FJalFvak9HcjZDZGZFWlhaOXU0UDVXQUQrS3VoZVJ3YlpoQzJlRWdVUjBTalA4UE02aDNheXd5TlJmMGtaVUF4VUxsZFZCRGNyZCs5Q0szTTF0Y0RYSTFVeUVsRm1SRVVtTnRrNVdCZjlNN1ZUN0tSa2ovRitDYjBGM2FuMHRBODhRQWRWYWJGYjZMUXpSK1RTUWsySjFWNkNVMSsvdHN3MW1BRFZGTDlsbDNJUTRpZjNCeFNYREpJbVNZTDQ5d2JLakYrWWMvUHlCWlZYRHZKZkJDSUdLMHAwNVFvNTNKU2FuN2hkYUVOUEVwQVU1a0huK3RpeklJY1JSUFViR2ltRy9qd2JobU8vRkZ4MmJMSmtrVmVZWTRYZlFFczhJRTU3Y29aZjVBaytlTkw3YWNFUmxlaUJGbHlRaDlHZTExKytTdk5PR0JKS0MxN3djMnNrUnNVQVBTdW1VNmlvdHdCVEFPOHc9LS1rcE1JQjZZUGFRemdydjB4eHFCV0RRPT0%3D--0e69d84c2c719530f20655ab7353638da504c93e;
100
+ path=/; HttpOnly
101
+ - request_method=POST; path=/
102
+ body:
103
+ encoding: UTF-8
104
+ string: '{"authorizationCode":"eHNQclRXRkFjajRiL2Jsa3dXWVcvaGk5YlpZSWEyZTY5WmpxcjQ0ZUNMQ3J0S2pEdjFielVYNkR1dDRHQkw5cy0tQjNucGRheURqd1JaQU5JWlliVFNXdz09--5fbef806db0f11a2e2e3774932d292c73bd0b12d"}'
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=eHNQclRXRkFjajRiL2Jsa3dXWVcvaGk5YlpZSWEyZTY5WmpxcjQ0ZUNMQ3J0S2pEdjFielVYNkR1dDRHQkw5cy0tQjNucGRheURqd1JaQU5JWlliVFNXdz09--5fbef806db0f11a2e2e3774932d292c73bd0b12d
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=ZXo5R2ptZzdlajJYbEx4cjZDNHVtSStrazlvTEoyKzhNVHZqeW96SFRlRS9BM2tNTk4rK25xeU95dEEwYnhkRFNMVkdrVXNRMzJUTW1mVjZUZVdqSHpyT3pKdVNwc050ZWVqa1JDT0FOVksxUTMwblFRb1A2OVBKRlJQMXZ3bDdYUDRRd1FJalFvak9HcjZDZGZFWlhaOXU0UDVXQUQrS3VoZVJ3YlpoQzJlRWdVUjBTalA4UE02aDNheXd5TlJmMGtaVUF4VUxsZFZCRGNyZCs5Q0szTTF0Y0RYSTFVeUVsRm1SRVVtTnRrNVdCZjlNN1ZUN0tSa2ovRitDYjBGM2FuMHRBODhRQWRWYWJGYjZMUXpSK1RTUWsySjFWNkNVMSsvdHN3MW1BRFZGTDlsbDNJUTRpZjNCeFNYREpJbVNZTDQ5d2JLakYrWWMvUHlCWlZYRHZKZkJDSUdLMHAwNVFvNTNKU2FuN2hkYUVOUEVwQVU1a0huK3RpeklJY1JSUFViR2ltRy9qd2JobU8vRkZ4MmJMSmtrVmVZWTRYZlFFczhJRTU3Y29aZjVBaytlTkw3YWNFUmxlaUJGbHlRaDlHZTExKytTdk5PR0JKS0MxN3djMnNrUnNVQVBTdW1VNmlvdHdCVEFPOHc9LS1rcE1JQjZZUGFRemdydjB4eHFCV0RRPT0%3D--0e69d84c2c719530f20655ab7353638da504c93e;
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
+ - 565f2826-e647-4727-9812-c45b9d00462f
144
+ X-Runtime:
145
+ - '0.165691'
146
+ Server:
147
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
148
+ Date:
149
+ - Mon, 03 Aug 2015 22:12:02 GMT
150
+ Content-Length:
151
+ - '0'
152
+ Connection:
153
+ - Keep-Alive
154
+ Set-Cookie:
155
+ - _internal_session=WWRtRkU5QUFtaDRBNWp3R1J3V3B4WkU4NlVieGRKUE1aZytqSU1qR25BUitBdk9FWlVTOWJRMDRrWVNZQytHMDMzN1N4L3J3d0xmMDF1M2FXY0dpRmNiQnBQVTN4YjYrajNqT21LdmszakFaVUVBL3prQThxOUFmZmxrbEIvelk3RnBBdmJHelcwWDFvazBMTmJ1a0t6bis2YlNhOFduUTZrSVlmUjdQSTFKSzA5ZFR5Ym51VXJQSk5ZQk1FK0dqdmJiK1FidkhCdlZ4UzVqS3NhZmo2ZE8zTEEyM2J5TmpOTHQ5NzdyVWVXK3MrTHZrVXFqYzdYY3Vack1rUXdqaW5QZzhpd0VKNXgyYUtwRkJvV2pIeVF1bXhOVWtxUHBYZ1crM3MyQXNXM0xpN1FKeFRwTU95SjhjcFhtUCtSNjlSOEl6SXJSSFlhSmFTQ2VOWm9pbnNPRTFMc2xYZ1pyTjNUNmJyVUZYUmNTYlJjeGphdFUxZEl6U3RSeXJKYUR6SWJYOGZnMXBZSlpyZU42dDRRUDhKRC8rSWlPdXpsL21XWGgwZ3U0OHYyRStTU1BoUlV4bVVvenlNcUI1SXVUSlA3WHI5NmNpMGhIYU0wZXE2SHR2NkpsNENkbVRDYlJZbC9vOEorOUV3YVU2OVk2TVZQUzZPTitoRkZ1eTJVaGRNTTZ5YXNIUXd6V0RsaXZkNk5SMldrL0FOZXVGY3drYUYyckd5VDEzT0ZsUzhlOU1ZeVR1Tng1bld3dHBtR3RiLS1aL0xBVngyU1JvK2s3cWVKOEdGZTZnPT0%3D--33b7f7159896da7058abc46a5d4d2ef23f35fb38;
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:02 GMT
163
+ - request:
164
+ method: get
165
+ uri: http://localhost:3000/auth/access_token?code=eHNQclRXRkFjajRiL2Jsa3dXWVcvaGk5YlpZSWEyZTY5WmpxcjQ0ZUNMQ3J0S2pEdjFielVYNkR1dDRHQkw5cy0tQjNucGRheURqd1JaQU5JWlliVFNXdz09--5fbef806db0f11a2e2e3774932d292c73bd0b12d
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=WWRtRkU5QUFtaDRBNWp3R1J3V3B4WkU4NlVieGRKUE1aZytqSU1qR25BUitBdk9FWlVTOWJRMDRrWVNZQytHMDMzN1N4L3J3d0xmMDF1M2FXY0dpRmNiQnBQVTN4YjYrajNqT21LdmszakFaVUVBL3prQThxOUFmZmxrbEIvelk3RnBBdmJHelcwWDFvazBMTmJ1a0t6bis2YlNhOFduUTZrSVlmUjdQSTFKSzA5ZFR5Ym51VXJQSk5ZQk1FK0dqdmJiK1FidkhCdlZ4UzVqS3NhZmo2ZE8zTEEyM2J5TmpOTHQ5NzdyVWVXK3MrTHZrVXFqYzdYY3Vack1rUXdqaW5QZzhpd0VKNXgyYUtwRkJvV2pIeVF1bXhOVWtxUHBYZ1crM3MyQXNXM0xpN1FKeFRwTU95SjhjcFhtUCtSNjlSOEl6SXJSSFlhSmFTQ2VOWm9pbnNPRTFMc2xYZ1pyTjNUNmJyVUZYUmNTYlJjeGphdFUxZEl6U3RSeXJKYUR6SWJYOGZnMXBZSlpyZU42dDRRUDhKRC8rSWlPdXpsL21XWGgwZ3U0OHYyRStTU1BoUlV4bVVvenlNcUI1SXVUSlA3WHI5NmNpMGhIYU0wZXE2SHR2NkpsNENkbVRDYlJZbC9vOEorOUV3YVU2OVk2TVZQUzZPTitoRkZ1eTJVaGRNTTZ5YXNIUXd6V0RsaXZkNk5SMldrL0FOZXVGY3drYUYyckd5VDEzT0ZsUzhlOU1ZeVR1Tng1bld3dHBtR3RiLS1aL0xBVngyU1JvK2s3cWVKOEdGZTZnPT0%3D--33b7f7159896da7058abc46a5d4d2ef23f35fb38;
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/"213556739bcdb0546ff1f7cf0181c80d"
196
+ Cache-Control:
197
+ - max-age=0, private, must-revalidate
198
+ X-Request-Id:
199
+ - 4fed078c-27b7-48c9-b517-2052bbcc25f9
200
+ X-Runtime:
201
+ - '0.332687'
202
+ Server:
203
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
204
+ Date:
205
+ - Mon, 03 Aug 2015 22:12:02 GMT
206
+ Content-Length:
207
+ - '306'
208
+ Connection:
209
+ - Keep-Alive
210
+ Set-Cookie:
211
+ - _internal_session=ZlRwRVpETnlRYTZjSGVEeVUzcStiTlV0aDZqaEJlQUNwMEh2VGwzN3pjcU1NMlZ1aXRlUTVGZFRyWS9rSWRCWVlESy9RZUZLUFBLUkgxcnlxYll0bGlBdTRpeXo1Z3NNYzdaMXpTK1BJSmZDbHVDeUxYREw3eCtESFdKcnpVYkdDNG1wU0JFVDZWdGxXeUhJdjNWWnpIWjJEZWdiM0tPV1RsRG9EeCtUeDk3b3lQQ0pWbGtBMnN4OTVVVnp2Y05aWEVzY1U1MWppUkVzd0tBS1BjZWpZekNVQXhqRytMR3NEclpRcDFZRk0wUWRMdE5CR2RWVmNwRkpMWHpzT2xsVFVocUJ5Z3dnSVYrZUpXMUppZjVqaWdkOTlhb0dZMHZVSFNORDBqL28xYytSVktRUWlWaVFrTFlWbFNjWEZac3N3eXBLMVVFWDVtR21JRWNrWUtFUGJjTUJCVnNvM0pNTG9tMzA2bzZpRm02NldjR3ZyYkhXQlBHL0RkN3NRMlpCRTZ5TzhCdmpMV2ttcW5LWVlWS2czQmg4c0pCUmplOEo4SEY0VWV4RVdhUUhBb1pDd3FyZERLOGxKNUhCa2UxVWZpUEFWK0F4STdvNXl5eGpnL0NxOUFHQzlWRm01ZlV1QzMrS2VSZiszMnRPVHNNZDlEUUFISkQ3M0dvOWxyUmhWTHNnUjk3dThvbFUxR2c4S2h5a2ZZOXV2TmZPTnhnL2FuYmxNMElxZEo0Z2JhUkpLNlFvbGVHZXU5NzFMZ0hHRHR6MWRnU2E0MHVlMTh5UzU5VlhxcTFVTnJSTkxKcGxSeGdCVVJHamYxaTJlbGRCK3ZBN3l1R3BWditXcFhPVHpPeGFraGZRMVVmRE9FRUZBMUNXdEg0c0x5MkhvWU52bk5MVk8xc0xzeFNDWVNpQVdtdVZkaVV1Y3pvdTQxTktYazNTV3paWTdvUjBWdmlMS1VsbkpocUVydlI1QnlMZkdvMUZFN05SeFNnUFNjRDRtSllLSC9ySG9ZMEs1eTVTRmMxMGJqVG9JRlFzSjkwVmk1aUhtalFLQUkyT0l5UW1sVkp4clBvUTZ3NHVyVCtLYWNyaCt0ZXdHczFXOWxnQkR0ejJQTFplRVlLcEJZb0RzMWJSVkdFWG5jUEJqNUNRdXoxeDRXTldTZDNORHpiYVJMaDVNd3N4U0NNcDZUNmJKZ0VyZzFqVThIYkNOTTF4bXlXcDFsdFlGbGpkZkZyL0REWUhwUXlFalJlejhpNUxmY3VpbHVFUkJGbnlONVhQeDRTZjRYMHVVU2xkZVJGNnUrKy85V2M3ekVxRWhJMndMMDh2K3lwcU9Obz0tLVNqOXpMOVBIL2dhTEhTb0dFdTBMNGc9PQ%3D%3D--c7674976693c678abe90908b5e1b82fb3c4f9677;
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":"RGhtRzE3c3dlZ0NSWUlQMDFIWXdyV0paSmZ0NGJvaTNkUm9RTlBpMzF5a1JEVFNndGN1alBEb1pNTy9LbkwyYjlRbTNrVnlkNzI0YXFSTHFLVmlBamJXK2d4NEZaWkdIUDdrMXNBcXlBam12OGlsK1NwR3ltUmRVREZLaUk0dHAtLTJlMzFJVVJZeEltK0h2NGlrQzh2VWc9PQ==--b23b94442e1edcc18345a082e443b602a426934f","tokenType":"Bearer","expiresIn":3600}'
217
+ http_version:
218
+ recorded_at: Mon, 03 Aug 2015 22:12:02 GMT
219
+ - request:
220
+ method: delete
221
+ uri: http://localhost:3000/annotations/bar/%2F44%2F88%2F5a%2F75%2F44885a75-6c5b-4da8-8871-bb60932e42f7
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 RGhtRzE3c3dlZ0NSWUlQMDFIWXdyV0paSmZ0NGJvaTNkUm9RTlBpMzF5a1JEVFNndGN1alBEb1pNTy9LbkwyYjlRbTNrVnlkNzI0YXFSTHFLVmlBamJXK2d4NEZaWkdIUDdrMXNBcXlBam12OGlsK1NwR3ltUmRVREZLaUk0dHAtLTJlMzFJVVJZeEltK0h2NGlrQzh2VWc9PQ==--b23b94442e1edcc18345a082e443b602a426934f
234
+ Cookie:
235
+ - _internal_session=ZlRwRVpETnlRYTZjSGVEeVUzcStiTlV0aDZqaEJlQUNwMEh2VGwzN3pjcU1NMlZ1aXRlUTVGZFRyWS9rSWRCWVlESy9RZUZLUFBLUkgxcnlxYll0bGlBdTRpeXo1Z3NNYzdaMXpTK1BJSmZDbHVDeUxYREw3eCtESFdKcnpVYkdDNG1wU0JFVDZWdGxXeUhJdjNWWnpIWjJEZWdiM0tPV1RsRG9EeCtUeDk3b3lQQ0pWbGtBMnN4OTVVVnp2Y05aWEVzY1U1MWppUkVzd0tBS1BjZWpZekNVQXhqRytMR3NEclpRcDFZRk0wUWRMdE5CR2RWVmNwRkpMWHpzT2xsVFVocUJ5Z3dnSVYrZUpXMUppZjVqaWdkOTlhb0dZMHZVSFNORDBqL28xYytSVktRUWlWaVFrTFlWbFNjWEZac3N3eXBLMVVFWDVtR21JRWNrWUtFUGJjTUJCVnNvM0pNTG9tMzA2bzZpRm02NldjR3ZyYkhXQlBHL0RkN3NRMlpCRTZ5TzhCdmpMV2ttcW5LWVlWS2czQmg4c0pCUmplOEo4SEY0VWV4RVdhUUhBb1pDd3FyZERLOGxKNUhCa2UxVWZpUEFWK0F4STdvNXl5eGpnL0NxOUFHQzlWRm01ZlV1QzMrS2VSZiszMnRPVHNNZDlEUUFISkQ3M0dvOWxyUmhWTHNnUjk3dThvbFUxR2c4S2h5a2ZZOXV2TmZPTnhnL2FuYmxNMElxZEo0Z2JhUkpLNlFvbGVHZXU5NzFMZ0hHRHR6MWRnU2E0MHVlMTh5UzU5VlhxcTFVTnJSTkxKcGxSeGdCVVJHamYxaTJlbGRCK3ZBN3l1R3BWditXcFhPVHpPeGFraGZRMVVmRE9FRUZBMUNXdEg0c0x5MkhvWU52bk5MVk8xc0xzeFNDWVNpQVdtdVZkaVV1Y3pvdTQxTktYazNTV3paWTdvUjBWdmlMS1VsbkpocUVydlI1QnlMZkdvMUZFN05SeFNnUFNjRDRtSllLSC9ySG9ZMEs1eTVTRmMxMGJqVG9JRlFzSjkwVmk1aUhtalFLQUkyT0l5UW1sVkp4clBvUTZ3NHVyVCtLYWNyaCt0ZXdHczFXOWxnQkR0ejJQTFplRVlLcEJZb0RzMWJSVkdFWG5jUEJqNUNRdXoxeDRXTldTZDNORHpiYVJMaDVNd3N4U0NNcDZUNmJKZ0VyZzFqVThIYkNOTTF4bXlXcDFsdFlGbGpkZkZyL0REWUhwUXlFalJlejhpNUxmY3VpbHVFUkJGbnlONVhQeDRTZjRYMHVVU2xkZVJGNnUrKy85V2M3ekVxRWhJMndMMDh2K3lwcU9Obz0tLVNqOXpMOVBIL2dhTEhTb0dFdTBMNGc9PQ%3D%3D--c7674976693c678abe90908b5e1b82fb3c4f9677
236
+ User-Agent:
237
+ - Ruby
238
+ response:
239
+ status:
240
+ code: 410
241
+ message: 'Gone '
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
+ - c5c0a980-11bc-460b-8f97-b9e150212457
255
+ X-Runtime:
256
+ - '0.184757'
257
+ Server:
258
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
259
+ Date:
260
+ - Mon, 03 Aug 2015 22:12:02 GMT
261
+ Content-Length:
262
+ - '281'
263
+ Connection:
264
+ - Keep-Alive
265
+ Set-Cookie:
266
+ - _internal_session=VGRMVmxiR3dscU45U1hqMS9IZFNoTmMybWszb0ViYnp1YTg5alh6WnBCZjJ1VnlScHhoN2U3Z1YxN1ZJVktZKzcyK25sSTFTM2VsV2xFK1NGTlZXY0UvN2ZyMnN3YndleDJUSlljVy80c29nVVRzaGZEK08xOUEzYlhLMHZ2U1NDSWVHeHE2cW9obUJRQWIvNnZPeHI4czdlQXlqK3VvQ1BiOFlLeG5kN3lXWE5iZ3hpdzdVWHVpTGJUN2VlQXdVa0pCbHlNZGhibjNDK0tROU9pbHNWa204SlpRZjBGL0JLR2x3VzdqSXJvNG15QUtBcFI5YkwyOU1vM3BncGo5NzJzWnlEU0JkUHVYbkFEMW9nM1U5eFJNTmp6NDFBZC9sUkdPYnMvdzBFYktnZ3J2aVQyWWMyWXo1Yy9xM2djZFBpT3p6REJMdHc0clJ0TmFsYzhaZkJJRUQzUUUzOXBybXBtcWtRU2M3dVFnc3A3TDlWSnhvZEdYaWlPQmhKdXFwUE9OVkU2Y1NlT1lJd0Z0dnVYOHRFNHZrVUY3UjdGeXVTSjRKQ0lmOVhsOEJkS1BGNjNSdy9BSkdxekVObDFEUDl3UHR5UmZCU3M0UXpnRlU3QUlLZ1Z5WXVuNkthUnRMcHE3TXM2d2ZxZXU5bkZKd0E5VmJtYzU3QVpYMnk2SmxLVEtFVnplTi9uZVBRVTRYYUZtaGdraERlL3k5bVlhUFBvUUdHcUdyUjlqbnNUTXhDTTRxNVBWM1V6YVR5d0hNQ0k5L0xHcWFlZVA3Zy9xRi81UnYxeXBGaEZndXRkb2Noa1hLRmdvcnYyb1dGZG8xNk1oSVVNbE1YVWZLOGczSGFYOFlOMlJPUEEwWkQwZVQ4dFlXMExONHFzNDJWNG9MREJWWUdtV05LZUVkSlFuY0xNalpJVEJCdHlIQmRML2hLQVBkY1UzclhJOEZBTW1hb2JhN2VLaFJLM29RZXJoODMyUndWdkpONC83R284cEZNVjdvV3RlNGxIOTRvRnlINGM2ZDZPdldhUjVTb3d2SGtFOWI3cnoxYzJ3MHpwL2FJbjJuYVV6L3dkclYxQnBPYWRYSEp4K005Ymh4OUVaa2kyZ1RCVVAvSHpiOWZvUWNvVGlEditKYng4blB6N2daSDErOWdESXlSUUR1NjhGSmlwQllucG4wZ3VRRVJzNFhTM3oyYWI1UmwwV1B6Vlh2VEorek5jQWV2UFMvUVg0UVJYYWo2OUk1OXZvM0Q3cG10Y3kyUkVzWEVrdWEzZ0N6ZHliVFpQR2hVUFR5bkx6REtQZmRwZ0QrdjVPZmhYUFV4VTFreGN0eWlOVT0tLUFjR3dyWGppMUdnOTRCc1lSKysyNHc9PQ%3D%3D--f9fe64503bb9901d977e3524cfb4d954413f4276;
267
+ path=/; HttpOnly
268
+ - request_method=DELETE; path=/
269
+ body:
270
+ encoding: UTF-8
271
+ string: "<h2>error getting bar//44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7
272
+ from LDP</h2>Discovered tombstone resource at /anno/bar/44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7
273
+ {jcr:createdBy=bypassAdmin, jcr:primaryType=fedora:Tombstone, jcr:created=2015-08-03T15:12:00.348-07:00}"
274
+ http_version:
275
+ recorded_at: Mon, 03 Aug 2015 22:12:02 GMT
276
+ - request:
277
+ method: get
278
+ uri: http://localhost:3000/annotations/bar/%2F44%2F88%2F5a%2F75%2F44885a75-6c5b-4da8-8871-bb60932e42f7
279
+ body:
280
+ encoding: US-ASCII
281
+ string: ''
282
+ headers:
283
+ Accept:
284
+ - application/ld+json
285
+ Accept-Encoding:
286
+ - gzip, deflate
287
+ Content-Type:
288
+ - application/ld+json
289
+ Authorization:
290
+ - Bearer RGhtRzE3c3dlZ0NSWUlQMDFIWXdyV0paSmZ0NGJvaTNkUm9RTlBpMzF5a1JEVFNndGN1alBEb1pNTy9LbkwyYjlRbTNrVnlkNzI0YXFSTHFLVmlBamJXK2d4NEZaWkdIUDdrMXNBcXlBam12OGlsK1NwR3ltUmRVREZLaUk0dHAtLTJlMzFJVVJZeEltK0h2NGlrQzh2VWc9PQ==--b23b94442e1edcc18345a082e443b602a426934f
291
+ Cookie:
292
+ - _internal_session=ZlRwRVpETnlRYTZjSGVEeVUzcStiTlV0aDZqaEJlQUNwMEh2VGwzN3pjcU1NMlZ1aXRlUTVGZFRyWS9rSWRCWVlESy9RZUZLUFBLUkgxcnlxYll0bGlBdTRpeXo1Z3NNYzdaMXpTK1BJSmZDbHVDeUxYREw3eCtESFdKcnpVYkdDNG1wU0JFVDZWdGxXeUhJdjNWWnpIWjJEZWdiM0tPV1RsRG9EeCtUeDk3b3lQQ0pWbGtBMnN4OTVVVnp2Y05aWEVzY1U1MWppUkVzd0tBS1BjZWpZekNVQXhqRytMR3NEclpRcDFZRk0wUWRMdE5CR2RWVmNwRkpMWHpzT2xsVFVocUJ5Z3dnSVYrZUpXMUppZjVqaWdkOTlhb0dZMHZVSFNORDBqL28xYytSVktRUWlWaVFrTFlWbFNjWEZac3N3eXBLMVVFWDVtR21JRWNrWUtFUGJjTUJCVnNvM0pNTG9tMzA2bzZpRm02NldjR3ZyYkhXQlBHL0RkN3NRMlpCRTZ5TzhCdmpMV2ttcW5LWVlWS2czQmg4c0pCUmplOEo4SEY0VWV4RVdhUUhBb1pDd3FyZERLOGxKNUhCa2UxVWZpUEFWK0F4STdvNXl5eGpnL0NxOUFHQzlWRm01ZlV1QzMrS2VSZiszMnRPVHNNZDlEUUFISkQ3M0dvOWxyUmhWTHNnUjk3dThvbFUxR2c4S2h5a2ZZOXV2TmZPTnhnL2FuYmxNMElxZEo0Z2JhUkpLNlFvbGVHZXU5NzFMZ0hHRHR6MWRnU2E0MHVlMTh5UzU5VlhxcTFVTnJSTkxKcGxSeGdCVVJHamYxaTJlbGRCK3ZBN3l1R3BWditXcFhPVHpPeGFraGZRMVVmRE9FRUZBMUNXdEg0c0x5MkhvWU52bk5MVk8xc0xzeFNDWVNpQVdtdVZkaVV1Y3pvdTQxTktYazNTV3paWTdvUjBWdmlMS1VsbkpocUVydlI1QnlMZkdvMUZFN05SeFNnUFNjRDRtSllLSC9ySG9ZMEs1eTVTRmMxMGJqVG9JRlFzSjkwVmk1aUhtalFLQUkyT0l5UW1sVkp4clBvUTZ3NHVyVCtLYWNyaCt0ZXdHczFXOWxnQkR0ejJQTFplRVlLcEJZb0RzMWJSVkdFWG5jUEJqNUNRdXoxeDRXTldTZDNORHpiYVJMaDVNd3N4U0NNcDZUNmJKZ0VyZzFqVThIYkNOTTF4bXlXcDFsdFlGbGpkZkZyL0REWUhwUXlFalJlejhpNUxmY3VpbHVFUkJGbnlONVhQeDRTZjRYMHVVU2xkZVJGNnUrKy85V2M3ekVxRWhJMndMMDh2K3lwcU9Obz0tLVNqOXpMOVBIL2dhTEhTb0dFdTBMNGc9PQ%3D%3D--c7674976693c678abe90908b5e1b82fb3c4f9677
293
+ User-Agent:
294
+ - Ruby
295
+ response:
296
+ status:
297
+ code: 410
298
+ message: 'Gone '
299
+ headers:
300
+ X-Frame-Options:
301
+ - SAMEORIGIN
302
+ X-Xss-Protection:
303
+ - 1; mode=block
304
+ X-Content-Type-Options:
305
+ - nosniff
306
+ Content-Type:
307
+ - text/html; charset=utf-8
308
+ Cache-Control:
309
+ - no-cache
310
+ X-Request-Id:
311
+ - f86dd228-0267-4dcc-ab74-71e3524af48c
312
+ X-Runtime:
313
+ - '0.019132'
314
+ Server:
315
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
316
+ Date:
317
+ - Mon, 03 Aug 2015 22:12:02 GMT
318
+ Content-Length:
319
+ - '281'
320
+ Connection:
321
+ - Keep-Alive
322
+ Set-Cookie:
323
+ - _internal_session=Wk1TQk5nU1dzTnZYZUY1amZkOE5GZ0ZSc091YXdabzBzQVRiVU1ncm92SUpLNzk3OGt2S2ZRZmwxZ3RqQ3lFQ0NrY0hKNHgxMzVWeERvbXZScWJPcHlkcVJsRHB5UFplZDY5K0pxZGtTQ0NKSW1HZW85K1htZGI0SmNHZXpWaGdLWEdTSE1pL0hPSldORWo0cU01Nmp2bDNjZitIM1lGVHRidWx2RjJTREFoWGFURi9rZjRzMzhLV21NREVhMjU3QWVWTmE1QnBQVDJJWTFBd3kyRDVqRGtBYzVIOTN4YzRkR1pab2JtWk80TCtDcTBjQkQ2UWdnSGhZQkNiQ2ZmZjQ5WDlXb3duL1BjZHNnTTMyU3dwaXo3ZTdCMWdzTzE5RTdMWkRad1FZU2VUV09OMTIyNEpQb21vNVNSd1RKMnVqbUJteUJ1L3ZIaEoyTVVmYVVnNVBmQ1VqMFJHT3daNmNGZmQyWDBJZzZPSlNGaU9ldi9vMS9GdHVzOWt4TDJwUnhrWnBqMHU0cDRvc0FtSm5Rb2wwUkRTUmVVMXFoTlFwUDlDOHZtalBFd2Fnc09hU0s3RzlQRnFBZDFzK2gybmhWbVZWZHhnSHUyT0NzdU00Z2FoT2lNbTIwK2RKcVh0a0Nhb1NqSFBPODI2RG5ocFVQN2ZiV2pyUnRpVUpKS2kwN2hoN01wK3Q2VmJ5U3Fnekxubk02dWdMek82WENDRkRhSHNQZmdjSm5VM2dWenl1aEh2VDk2RW5RSzFLeGxRbUN5K3Q4MGxnWG4vOTIvenhHdGpBRnRmYS9Fc2FBRFhQTWlxZzM1c3hNUDZZUHF6cC9GREtqK1Njc0h5VDJtcm40L2Irdm9WVmU5dkZ0ekRHOFdmOWpLS3owYkdkSzliZ1UrRHczZGl5Y3RBcWE2dVppOTJtSk92eTlONjFjL3grbWdhMDNGNE1GYkk4RFpVa3NKMjcvR1JRazlFVjM5RCtmU3h3SnJwOVhTazRySVVaRnVSQ0lhdFh4M0w1bnNjTVZoNTFxSS9iSGFBRmRQc01oUTYzQXh6eXp4ZE9LV0thNWtlWG5RU3FDdFFCSUVMWWwwSzdRWGRjNmRiVXA3SVZ0a3d4VC9LcUNBRitiVTdQTk5TNkN5cW11U1FhdkU5OWFDbXVrOXZ2NlNyYjBxbVpOSFNxZWNPMklJaU9NeUpXdE1HaWg2MFVDSjZMaXRBRWhKRGxJSUlZckQ2U1orcGtxZmFleDM0Y1U0NjN4bFNyOXhNck1YR25mL1RFM0E5L2hTZDc3ZXhXVk1rUEI0aTErRXpmMi9BT3d6OG5rWGxPbXlPeDdSWGdLTT0tLUFNTUtMQVZjbkZoRUFRRkkvTUMwOHc9PQ%3D%3D--e6c8f995808008e9231542309aca57842d00b001;
324
+ path=/; HttpOnly
325
+ body:
326
+ encoding: UTF-8
327
+ string: "<h2>error getting bar//44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7
328
+ from LDP</h2>Discovered tombstone resource at /anno/bar/44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7
329
+ {jcr:createdBy=bypassAdmin, jcr:primaryType=fedora:Tombstone, jcr:created=2015-08-03T15:12:00.348-07:00}"
330
+ http_version:
331
+ recorded_at: Mon, 03 Aug 2015 22:12:02 GMT
332
+ recorded_with: VCR 2.9.3