aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/service/azure_service_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/test/service/azure_service_test.rb')
-rw-r--r--activestorage/test/service/azure_service_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/activestorage/test/service/azure_service_test.rb b/activestorage/test/service/azure_service_test.rb
new file mode 100644
index 0000000000..0ddbac83e7
--- /dev/null
+++ b/activestorage/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