Skip to content

Commit 2bd19d9

Browse files
phjordansissel
authored andcommitted
allow to specify a region the integration testing
Fixes #1
1 parent fb4b284 commit 2bd19d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ If you want to run the integration test against a real bucket you need to pass
1111
your aws credentials to the test runner or declare it in your environment.
1212

1313
```
14-
AWS_ACCESS_KEY_ID=123 AWS_SECRET_ACCESS_KEY=secret AWS_LOGSTASH_TEST_BUCKET=mytest bundle exec rspec spec/integration/s3_spec.rb --tag integration
14+
AWS_REGION=us-east-1 AWS_ACCESS_KEY_ID=123 AWS_SECRET_ACCESS_KEY=secret AWS_LOGSTASH_TEST_BUCKET=mytest bundle exec rspec spec/integration/s3_spec.rb --tag integration
1515
```

spec/integration/s3_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
let!(:minimal_settings) { { "access_key_id" => ENV['AWS_ACCESS_KEY_ID'],
1515
"secret_access_key" => ENV['AWS_SECRET_ACCESS_KEY'],
16-
"bucket" => ENV['AWS_LOGSTASH_TEST_BUCKET'],
16+
"bucket" => ENV['AWS_LOGSTASH_TEST_BUCKET'],
17+
"region" => ENV["AWS_REGION"] || "us-east-1",
1718
"temporary_directory" => Stud::Temporary.pathname('temporary_directory') }}
1819

1920
let!(:s3_object) do

0 commit comments

Comments
 (0)