diff --git a/lib/heroku/kensa/manifest.rb b/lib/heroku/kensa/manifest.rb index 3b45bcf..02f282f 100644 --- a/lib/heroku/kensa/manifest.rb +++ b/lib/heroku/kensa/manifest.rb @@ -3,7 +3,7 @@ module Heroku module Kensa class Manifest - REGIONS = %w(us eu frankfurt oregon tokyo virginia *) + REGIONS = %w(us eu frankfurt oregon tokyo virginia sydney dublin *) def initialize(options = {}) @method = options.fetch(:method, 'post').to_sym @@ -89,4 +89,3 @@ def generate_password(size=8) end end end - diff --git a/test/manifest_check_test.rb b/test/manifest_check_test.rb index 4c5507a..b7d2bf1 100644 --- a/test/manifest_check_test.rb +++ b/test/manifest_check_test.rb @@ -50,6 +50,16 @@ def check ; ManifestCheck ; end assert_invalid end + test "api allows sydney" do + @data["api"]["regions"] = ["us", "sydney"] + assert_valid + end + + test "api allows dublin" do + @data["api"]["regions"] = ["us", "dublin"] + assert_valid + end + test "api allows just wildcard region name" do @data["api"]["regions"] = ["*"] assert_valid