1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Added ap-northeast-2 to the fog mocks. Also added mime-types to the gemfile because the specs for fog-aws won't actually run without it.

This commit is contained in:
Kirk Haines 2016-01-19 10:29:59 -07:00
parent eef87291d5
commit b9f068ca97
3 changed files with 5 additions and 1 deletions

View file

@ -5,5 +5,6 @@ gemspec
group :test, :default do
gem 'pry-nav'
gem 'mime-types'
end
gem "codeclimate-test-reporter", group: :test, require: nil

View file

@ -224,7 +224,7 @@ module Fog
end
def self.regions
@regions ||= ['ap-northeast-1', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1', 'cn-north-1', 'us-gov-west-1']
@regions ||= ['ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1', 'cn-north-1', 'us-gov-west-1']
end
def self.validate_region!(region, host=nil)

View file

@ -69,6 +69,9 @@ module Fog
{"messageSet" => [], "regionName" => "ap-northeast-1", "zoneName" => "ap-northeast-1a", "zoneState" => "available"},
{"messageSet" => [], "regionName" => "ap-northeast-1", "zoneName" => "ap-northeast-1b", "zoneState" => "available"},
{"messageSet" => [], "regionName" => "ap-northeast-2", "zoneName" => "ap-northeast-2a", "zoneState" => "available"},
{"messageSet" => [], "regionName" => "ap-northeast-2", "zoneName" => "ap-northeast-2b", "zoneState" => "available"},
{"messageSet" => [], "regionName" => "ap-southeast-1", "zoneName" => "ap-southeast-1a", "zoneState" => "available"},
{"messageSet" => [], "regionName" => "ap-southeast-1", "zoneName" => "ap-southeast-1b", "zoneState" => "available"},