From 3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58 Mon Sep 17 00:00:00 2001 From: Dino Maric Date: Mon, 31 Jul 2017 17:09:12 +0200 Subject: Azure Storage support (#36) * Microsoft Azure storage support * Add support for Microsoft Azure Storage * Comply with the new headers implementation --- test/service/azure_service_test.rb | 14 ++++++++++++++ test/service/configurations-example.yml | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 test/service/azure_service_test.rb (limited to 'test/service') diff --git a/test/service/azure_service_test.rb b/test/service/azure_service_test.rb new file mode 100644 index 0000000000..0ddbac83e7 --- /dev/null +++ b/test/service/azure_service_test.rb @@ -0,0 +1,14 @@ +require "service/shared_service_tests" +require "httparty" +require "uri" + +if SERVICE_CONFIGURATIONS[:azure] + class ActiveStorage::Service::AzureServiceTest < ActiveSupport::TestCase + SERVICE = ActiveStorage::Service.configure(:azure, SERVICE_CONFIGURATIONS) + + include ActiveStorage::Service::SharedServiceTests + end + +else + puts "Skipping Azure Storage Service tests because no Azure configuration was supplied" +end diff --git a/test/service/configurations-example.yml b/test/service/configurations-example.yml index 8bcc57f05a..68f6ae4224 100644 --- a/test/service/configurations-example.yml +++ b/test/service/configurations-example.yml @@ -22,3 +22,10 @@ gcs: } project: bucket: + +azure: + service: Azure + path: "" + storage_account_name: "" + storage_access_key: "" + container: "" -- cgit v1.2.3