aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/azure_service_test.rb
diff options
context:
space:
mode:
authorDino Maric <dino.onex@gmail.com>2017-07-31 17:09:12 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-31 10:09:12 -0500
commit3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58 (patch)
treec0bbdc0f980bdb58f79f622642b387b3998af9da /test/service/azure_service_test.rb
parent6c68524b69e1bfb28f0d1aa5967fd602ed1b7ed7 (diff)
downloadrails-3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58.tar.gz
rails-3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58.tar.bz2
rails-3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58.zip
Azure Storage support (#36)
* Microsoft Azure storage support * Add support for Microsoft Azure Storage * Comply with the new headers implementation
Diffstat (limited to 'test/service/azure_service_test.rb')
-rw-r--r--test/service/azure_service_test.rb14
1 files changed, 14 insertions, 0 deletions
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