Skip to content

Commit 1ca2b4d

Browse files
author
David Heinemeier Hansson
committed
Test with multiple host matches across roles
1 parent 9aac51b commit 1ca2b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/configuration/accessory_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ConfigurationAccessoryTest < ActiveSupport::TestCase
88
registry: { "username" => "dhh", "password" => "secret" },
99
servers: {
1010
"web" => [ { "1.1.1.1" => "writer" }, { "1.1.1.2" => "reader" } ],
11-
"workers" => [ "1.1.1.3", "1.1.1.4" ]
11+
"workers" => [ { "1.1.1.3" => "writer" }, "1.1.1.4" ]
1212
},
1313
builder: { "arch" => "amd64" },
1414
env: { "REDIS_URL" => "redis://x/y" },
@@ -111,7 +111,7 @@ class ConfigurationAccessoryTest < ActiveSupport::TestCase
111111
assert_equal [ "1.1.1.5" ], @config.accessory(:mysql).hosts
112112
assert_equal [ "1.1.1.6", "1.1.1.7" ], @config.accessory(:redis).hosts
113113
assert_equal [ "1.1.1.1", "1.1.1.2" ], @config.accessory(:monitoring).hosts
114-
assert_equal [ "1.1.1.1" ], @config.accessory(:proxy).hosts
114+
assert_equal [ "1.1.1.1", "1.1.1.3" ], @config.accessory(:proxy).hosts
115115
end
116116

117117
test "missing host" do

0 commit comments

Comments
 (0)