aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/service
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-31 17:51:16 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-31 17:51:16 -0500
commita9cb1968b6a01572a472a3df3aa750ebc022e076 (patch)
tree67041c959cbc65b99995c453f845ee96fc61f311 /activestorage/test/service
parentba12811db22de23e935b43f39cac8da523fa0ded (diff)
downloadrails-a9cb1968b6a01572a472a3df3aa750ebc022e076.tar.gz
rails-a9cb1968b6a01572a472a3df3aa750ebc022e076.tar.bz2
rails-a9cb1968b6a01572a472a3df3aa750ebc022e076.zip
Setup travis to be able to run CI tests against S3
Diffstat (limited to 'activestorage/test/service')
-rw-r--r--activestorage/test/service/.gitignore1
-rw-r--r--activestorage/test/service/configurations-example.yml31
-rw-r--r--activestorage/test/service/configurations.yml30
3 files changed, 30 insertions, 32 deletions
diff --git a/activestorage/test/service/.gitignore b/activestorage/test/service/.gitignore
deleted file mode 100644
index c102131f3d..0000000000
--- a/activestorage/test/service/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-configurations.yml
diff --git a/activestorage/test/service/configurations-example.yml b/activestorage/test/service/configurations-example.yml
deleted file mode 100644
index 68f6ae4224..0000000000
--- a/activestorage/test/service/configurations-example.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copy this file to configurations.yml and edit the credentials to match your IAM test account and bucket
-s3:
- service: S3
- access_key_id:
- secret_access_key:
- region:
- bucket:
-
-gcs:
- service: GCS
- keyfile: {
- type: "service_account",
- project_id: "",
- private_key_id: "",
- private_key: "",
- client_email: "",
- client_id: "",
- auth_uri: "https://accounts.google.com/o/oauth2/auth",
- token_uri: "https://accounts.google.com/o/oauth2/token",
- auth_provider_x509_cert_url: "https://www.googleapis.com/oauth2/v1/certs",
- client_x509_cert_url: ""
- }
- project:
- bucket:
-
-azure:
- service: Azure
- path: ""
- storage_account_name: ""
- storage_access_key: ""
- container: ""
diff --git a/activestorage/test/service/configurations.yml b/activestorage/test/service/configurations.yml
new file mode 100644
index 0000000000..90b6baf0db
--- /dev/null
+++ b/activestorage/test/service/configurations.yml
@@ -0,0 +1,30 @@
+s3:
+ service: S3
+ access_key_id: <%= ENV["AWS_ACCESS_KEY_ID"] %>
+ secret_access_key: <%= ENV["AWS_SECRET_KEY"] %>
+ region: us-east-2
+ bucket: rails-ci-activestorage
+
+# gcs:
+# service: GCS
+# keyfile: {
+# type: "service_account",
+# project_id: "",
+# private_key_id: "",
+# private_key: "",
+# client_email: "",
+# client_id: "",
+# auth_uri: "https://accounts.google.com/o/oauth2/auth",
+# token_uri: "https://accounts.google.com/o/oauth2/token",
+# auth_provider_x509_cert_url: "https://www.googleapis.com/oauth2/v1/certs",
+# client_x509_cert_url: ""
+# }
+# project:
+# bucket:
+#
+# azure:
+# service: Azure
+# path: ""
+# storage_account_name: ""
+# storage_access_key: ""
+# container: ""