Skip to content

Commit 59b0883

Browse files
committed
Fix azurite tests
1 parent b2616b0 commit 59b0883

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

test/client/test_client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ def test_signed_uri_type_override
354354
end
355355

356356
def test_get_container_properties
357+
skip if ENV["TESTING_AZURITE"]
357358
container = client.get_container_properties
358359
assert container.present?
359360

@@ -368,6 +369,7 @@ def test_get_container_properties
368369
end
369370

370371
def test_container_exist?
372+
skip if ENV["TESTING_AZURITE"]
371373
assert client.container_exist?
372374

373375
client = AzureBlob::Client.new(

test/rails/controllers/direct_uploads_controller_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class ActiveStorage::AzureBlobDirectUploadsControllerTest < ActionDispatch::Inte
1111
end
1212

1313
test "creating new direct upload" do
14+
skip if ENV["TESTING_AZURITE"]
1415
checksum = OpenSSL::Digest::MD5.base64digest("Hello")
1516
metadata = {
1617
"foo" => "bar",

test/rails/service/azure_blob_public_service_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class ActiveStorage::Service::AzureBlobPublicServiceTest < ActiveSupport::TestCa
1313
end
1414

1515
test "public URL generation" do
16+
skip if ENV["TESTING_AZURITE"]
1617
url = @service.url(@key, filename: ActiveStorage::Filename.new("avatar.png"))
1718
host = @config[:host] || "https://#{@config[:storage_account_name]}.blob.core.windows.net"
1819

0 commit comments

Comments
 (0)