Skip to content

Commit b29a0db

Browse files
dazumaquartzmo
authored andcommitted
Allow overriding storage bucket in acceptance tests (#2531)
1 parent d911fde commit b29a0db

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

google-cloud-storage/acceptance/storage/file_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
big: { path: "acceptance/data/three-mb-file.tif" } }
3030
end
3131

32-
let(:bucket_public_test_name) { "storage-library-test-bucket" }
32+
let(:bucket_public_test_name) {
33+
ENV["GCLOUD_TEST_STORAGE_BUCKET"] || "storage-library-test-bucket"
34+
}
3335
let(:file_public_test_gzip_name) { "gzipped-text.txt" } # content is "hello world"
3436

3537
before do

google-cloud-storage/acceptance/storage/filename_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
require "storage_helper"
1616

1717
describe Google::Cloud::Storage::File, :storage do
18-
let(:bucket_name) { "storage-library-test-bucket" }
18+
let(:bucket_name) {
19+
ENV["GCLOUD_TEST_STORAGE_BUCKET"] || "storage-library-test-bucket"
20+
}
1921
let :bucket do
2022
storage.bucket(bucket_name)
2123
end

0 commit comments

Comments
 (0)