Merge pull request #2801 from jrhe/s3_govcloud_support
Adds govcloud region to s3 region list
This commit is contained in:
commit
96660b58fa
|
@ -14,10 +14,11 @@ class S3RegionSiteSetting < EnumSiteSetting
|
||||||
'us-east-1',
|
'us-east-1',
|
||||||
'us-west-1',
|
'us-west-1',
|
||||||
'us-west-2',
|
'us-west-2',
|
||||||
|
'us-gov-west-1',
|
||||||
'eu-west-1',
|
'eu-west-1',
|
||||||
'ap-southeast-1',
|
'ap-southeast-1',
|
||||||
'ap-southeast-2',
|
'ap-southeast-2',
|
||||||
'ap-northeast-1',
|
'ap-northeast-1',
|
||||||
'sa-east-1' ]
|
'sa-east-1']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -14,7 +14,7 @@ describe S3RegionSiteSetting do
|
||||||
|
|
||||||
describe 'values' do
|
describe 'values' do
|
||||||
it 'returns all the S3 regions and blank' do
|
it 'returns all the S3 regions and blank' do
|
||||||
expect(S3RegionSiteSetting.values.map {|x| x[:value]}.sort).to eq(['', 'us-east-1', 'us-west-1', 'us-west-2', 'eu-west-1', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'sa-east-1'].sort)
|
expect(S3RegionSiteSetting.values.map {|x| x[:value]}.sort).to eq(['', 'us-east-1', 'us-west-1', 'us-west-2', 'us-gov-west-1', 'eu-west-1', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'sa-east-1'].sort)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue