Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Add support for the private space sydney #110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/heroku/kensa/manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -89,4 +89,3 @@ def generate_password(size=8)
end
end
end

10 changes: 10 additions & 0 deletions test/manifest_check_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down