test/requests/storage/test_get_blob.rb in gitlab-fog-azure-rm-1.5.0 vs test/requests/storage/test_get_blob.rb in gitlab-fog-azure-rm-1.6.0
- old
+ new
@@ -24,14 +24,29 @@
@blob_client.stub :get_blob, @blob_with_content do
assert_equal @blob_with_content, @service.get_blob('test_container', 'test_blob')
end
end
+ def test_get_object_success
+ @blob_client.stub :get_blob, @blob_with_content do
+ assert_equal @blob_with_content, @service.get_object('test_container', 'test_blob')
+ end
+ end
+
def test_get_blob_not_found
exception = ->(*) { raise StandardError.new('Not found(404). Not exist') }
@blob_client.stub :get_blob, exception do
assert_raises('NotFound') do
@service.get_blob('test_container', 'test_blob')
+ end
+ end
+ end
+
+ def test_get_object_not_found
+ exception = ->(*) { raise StandardError.new('Not found(404). Not exist') }
+ @blob_client.stub :get_blob, exception do
+ assert_raises('NotFound') do
+ @service.get_object('test_container', 'test_blob')
end
end
end
def test_get_blob_http_exception