triannon-client 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/lib/triannon-client/triannon_client.rb +14 -3
  4. 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 +49 -61
  5. 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 +49 -61
  6. 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 +49 -61
  7. 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 +49 -61
  8. 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 +49 -61
  9. 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 +49 -61
  10. 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 +49 -61
  11. 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 +49 -61
  12. 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 +49 -61
  13. 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 +49 -61
  14. 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 +49 -61
  15. 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 +49 -61
  16. 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 +49 -61
  17. 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 +46 -46
  18. 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 +34 -34
  19. 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 +33 -33
  20. 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 +33 -33
  21. 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/ld_json_.yml +26 -26
  22. 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 +26 -26
  23. 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 +26 -26
  24. 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 +26 -26
  25. 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 +26 -26
  26. 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 +26 -26
  27. 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 +26 -26
  28. 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 +26 -26
  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/turtle_.yml +26 -26
  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/x-ld_json_.yml +26 -26
  31. 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 +26 -26
  32. 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 +26 -26
  33. 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 +26 -26
  34. 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 +26 -26
  35. 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 +26 -26
  36. 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 +26 -26
  37. 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 +26 -26
  38. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/checks_the_annotation_ID.yml +26 -26
  39. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +26 -26
  40. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_a_nil_ID.yml +26 -26
  41. 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 +26 -26
  42. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_integer_ID.yml +26 -26
  43. 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 +26 -26
  44. 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 +26 -26
  45. 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 +99 -40
  46. 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 +46 -46
  47. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/requests_an_open_annotation_by_ID_using_a_IIIF_profile.yml +26 -26
  48. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +40 -40
  49. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml +26 -26
  50. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +46 -46
  51. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{returns_true_for_a_204_response_to_a_DELETE_request.yml → does_not_log_exceptions_for_missing_annotations_404_responses_.yml} +10 -10
  52. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{returns_false_for_a_500_response_to_a_DELETE_request.yml → does_not_log_exceptions_for_missing_annotations_410_responses_.yml} +10 -10
  53. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{returns_true_for_a_202_response_to_a_DELETE_request.yml → logs_exceptions.yml} +9 -9
  54. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{returns_true_for_a_200_response_to_a_DELETE_request.yml → returns_FALSE_for_a_500_response_to_a_DELETE_request.yml} +11 -12
  55. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml +63 -0
  56. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml +63 -0
  57. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml +63 -0
  58. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml +63 -0
  59. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml +63 -0
  60. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{fails_to_delete_an_open_annotation_that_does_NOT_exist.yml → returns_TRUE_when_deleting_an_open_annotation_that_does_NOT_exist.yml} +8 -8
  61. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{deletes_an_open_annotation_that_exists.yml → returns_TRUE_when_deleting_an_open_annotation_that_exists.yml} +34 -34
  62. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml +8 -8
  63. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml +14 -14
  64. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +14 -14
  65. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +42 -42
  66. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +26 -26
  67. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml +5601 -0
  68. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml +5601 -0
  69. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +26 -26
  70. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml +26 -26
  71. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +26 -26
  72. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_RDF_URI_that_is_a_valid_URI.yml +34 -34
  73. 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 +26 -26
  74. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +38 -38
  75. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +26 -26
  76. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +26 -26
  77. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +26 -26
  78. data/spec/lib/triannon-client/triannon_client_spec.rb +67 -26
  79. data/triannon-client.gemspec +1 -1
  80. metadata +28 -14
@@ -139,51 +139,76 @@ describe TriannonClient, :vcr do
139
139
  end
140
140
 
141
141
  describe "#delete_annotation" do
142
- def test_delete_for_response_code(status, response)
142
+ def test_delete_for_response_code(anno_id, status, response)
143
143
  allow_any_instance_of(RestClient::Response).to receive(:code).and_return(status)
144
- expect(tc.delete_annotation('anything_here_is_OK')).to be response
144
+ expect(tc.delete_annotation(anno_id)).to be response
145
145
  end
146
- it "returns false for a 500 response to a DELETE request" do
147
- test_delete_for_response_code(500, false)
146
+ it "returns FALSE for a 500 response to a DELETE request" do
147
+ test_delete_for_response_code('500_is_false', 500, false)
148
148
  end
149
- it "returns true for a 200 response to a DELETE request" do
150
- test_delete_for_response_code(200, true)
149
+ it "returns TRUE for a 200 response to a DELETE request" do
150
+ test_delete_for_response_code('200_is_true', 200, true)
151
151
  end
152
- it "returns true for a 202 response to a DELETE request" do
153
- test_delete_for_response_code(202, true)
152
+ it "returns TRUE for a 202 response to a DELETE request" do
153
+ test_delete_for_response_code('202_is_true', 202, true)
154
154
  end
155
- it "returns true for a 204 response to a DELETE request" do
156
- test_delete_for_response_code(204, true)
155
+ it "returns TRUE for a 204 response to a DELETE request" do
156
+ test_delete_for_response_code('204_is_true', 204, true)
157
+ end
158
+ it "returns TRUE for a 404 response to a DELETE request" do
159
+ test_delete_for_response_code('404_is_true', 404, true)
160
+ end
161
+ it "returns TRUE for a 410 response to a DELETE request" do
162
+ test_delete_for_response_code('410_is_true', 410, true)
157
163
  end
158
164
  it 'validates the annotation ID' do
159
165
  expect(tc).to receive(:check_id)
160
- tc.delete_annotation('anything_here_is_OK')
166
+ tc.delete_annotation('checking_anno_id')
167
+ end
168
+ it 'quits after detecting an invalid annotation ID' do
169
+ expect_any_instance_of(RestClient::Resource).not_to receive(:delete)
170
+ tc.delete_annotation('') rescue nil
171
+ tc.delete_annotation(nil) rescue nil
172
+ end
173
+ it 'uses RestClient::Resource.delete to DELETE a valid annotation ID' do
174
+ expect_any_instance_of(RestClient::Resource).to receive(:delete)
175
+ tc.delete_annotation(SecureRandom.uuid)
161
176
  end
162
- it 'deletes an open annotation that exists' do
177
+ it 'returns TRUE when deleting an open annotation that exists' do
163
178
  anno = create_annotation
164
179
  expect( tc.delete_annotation(anno[:id]) ).to be true
165
180
  graph = tc.get_annotation(anno[:id])
166
181
  graph_is_empty(graph)
167
182
  end
168
- it 'fails to delete an open annotation that does NOT exist' do
183
+ it 'returns TRUE when deleting an open annotation that does NOT exist' do
169
184
  id = 'anno_does_not_exist'
170
185
  graph = tc.get_annotation(id)
171
186
  graph_is_empty(graph)
172
- expect( tc.delete_annotation(id) ).to be false
187
+ expect( tc.delete_annotation(id) ).to be true
173
188
  end
174
189
  it 'logs exceptions' do
175
- allow_any_instance_of(RestClient::Resource).to receive(:delete).and_raise('delete_exception')
176
- expect(TriannonClient.configuration.logger).to receive(:error).with(/delete_exception/)
177
- tc.delete_annotation('raise_delete_exception')
178
- end
179
- it 'quits after detecting an invalid annotation ID' do
180
- expect_any_instance_of(RestClient::Resource).not_to receive(:delete)
181
- tc.delete_annotation('') rescue nil
182
- tc.delete_annotation(nil) rescue nil
183
- end
184
- it 'uses RestClient::Resource.delete to DELETE a valid annotation ID' do
185
- expect_any_instance_of(RestClient::Resource).to receive(:delete)
186
- tc.delete_annotation(SecureRandom.uuid)
190
+ exception_response = double()
191
+ allow(exception_response).to receive(:code).and_return(450)
192
+ allow(exception_response).to receive(:body).and_return('delete_logs_exceptions')
193
+ allow_any_instance_of(RestClient::Exception).to receive(:response).and_return(exception_response)
194
+ expect(TriannonClient.configuration.logger).to receive(:error).with(/delete_logs_exceptions/)
195
+ tc.delete_annotation('delete_logs_exceptions')
196
+ end
197
+ it 'does not log exceptions for missing annotations (404 responses)' do
198
+ exception_response = double()
199
+ allow(exception_response).to receive(:code).and_return(404)
200
+ allow(exception_response).to receive(:body).and_return('delete_does_not_log_404_exceptions')
201
+ allow_any_instance_of(RestClient::Exception).to receive(:response).and_return(exception_response)
202
+ expect(TriannonClient.configuration.logger).not_to receive(:error)
203
+ tc.delete_annotation('delete_does_not_log_404_exceptions')
204
+ end
205
+ it 'does not log exceptions for missing annotations (410 responses)' do
206
+ exception_response = double()
207
+ allow(exception_response).to receive(:code).and_return(410)
208
+ allow(exception_response).to receive(:body).and_return('delete_does_not_log_410_exceptions')
209
+ allow_any_instance_of(RestClient::Exception).to receive(:response).and_return(exception_response)
210
+ expect(TriannonClient.configuration.logger).not_to receive(:error)
211
+ tc.delete_annotation('delete_does_not_log_410_exceptions')
187
212
  end
188
213
  end
189
214
 
@@ -453,6 +478,22 @@ describe TriannonClient, :vcr do
453
478
  expect(r).to respond_to(:headers)
454
479
  delete_annotation(anno[:id]) # cleanup after create_annotation
455
480
  end
481
+ it 'logs exceptions for RestClient::Exception' do
482
+ exception_response = double()
483
+ allow(exception_response).to receive(:code).and_return(500)
484
+ allow(exception_response).to receive(:body).and_return('post_logs_exceptions')
485
+ allow_any_instance_of(RestClient::Exception).to receive(:response).and_return(exception_response)
486
+ expect(TriannonClient.configuration.logger).to receive(:error).with(/post_logs_exceptions/)
487
+ tc.post_annotation('post_logs_exceptions')
488
+ end
489
+ it 'logs exceptions' do
490
+ exception_response = double()
491
+ allow(exception_response).to receive(:code).and_return(500)
492
+ allow(exception_response).to receive(:body).and_return('post_logs_exceptions')
493
+ allow_any_instance_of(RestClient::Exception).to receive(:response).and_return(exception_response)
494
+ expect(TriannonClient.configuration.logger).to receive(:error).with(/post_logs_exceptions/)
495
+ tc.post_annotation('post_logs_exceptions')
496
+ end
456
497
  end
457
498
 
458
499
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'triannon-client'
5
- s.version = '0.3.0'
5
+ s.version = '0.4.0'
6
6
  s.licenses = ['Apache-2.0']
7
7
  s.platform = Gem::Platform::RUBY
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triannon-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Weber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-13 00:00:00.000000000 Z
11
+ date: 2015-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -252,17 +252,24 @@ files:
252
252
  - spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml
253
253
  - spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml
254
254
  - spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml
255
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/deletes_an_open_annotation_that_exists.yml
256
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/fails_to_delete_an_open_annotation_that_does_NOT_exist.yml
257
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_false_for_a_500_response_to_a_DELETE_request.yml
258
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_200_response_to_a_DELETE_request.yml
259
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_202_response_to_a_DELETE_request.yml
260
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_204_response_to_a_DELETE_request.yml
255
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_404_responses_.yml
256
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_410_responses_.yml
257
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/logs_exceptions.yml
258
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_FALSE_for_a_500_response_to_a_DELETE_request.yml
259
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml
260
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml
261
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml
262
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml
263
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml
264
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_does_NOT_exist.yml
265
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_exists.yml
261
266
  - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml
262
267
  - spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml
263
268
  - spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml
264
269
  - spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml
265
270
  - spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml
271
+ - spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml
272
+ - spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml
266
273
  - spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml
267
274
  - spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml
268
275
  - spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml
@@ -349,17 +356,24 @@ test_files:
349
356
  - spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml
350
357
  - spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml
351
358
  - spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml
352
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/deletes_an_open_annotation_that_exists.yml
353
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/fails_to_delete_an_open_annotation_that_does_NOT_exist.yml
354
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_false_for_a_500_response_to_a_DELETE_request.yml
355
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_200_response_to_a_DELETE_request.yml
356
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_202_response_to_a_DELETE_request.yml
357
- - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_204_response_to_a_DELETE_request.yml
359
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_404_responses_.yml
360
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_410_responses_.yml
361
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/logs_exceptions.yml
362
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_FALSE_for_a_500_response_to_a_DELETE_request.yml
363
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml
364
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml
365
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml
366
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml
367
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml
368
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_does_NOT_exist.yml
369
+ - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_exists.yml
358
370
  - spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml
359
371
  - spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml
360
372
  - spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml
361
373
  - spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml
362
374
  - spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml
375
+ - spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml
376
+ - spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml
363
377
  - spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml
364
378
  - spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml
365
379
  - spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml