Use new deploy config so as not to update all other tests
This commit is contained in:
@@ -154,7 +154,7 @@ class CommanderTest < ActiveSupport::TestCase
|
|||||||
configure_with(:deploy_with_single_accessory)
|
configure_with(:deploy_with_single_accessory)
|
||||||
assert_equal [ "1.1.1.5" ], @kamal.accessory_hosts
|
assert_equal [ "1.1.1.5" ], @kamal.accessory_hosts
|
||||||
|
|
||||||
configure_with(:deploy_with_accessories)
|
configure_with(:deploy_with_accessories_on_independent_server)
|
||||||
assert_equal [ "1.1.1.5", "1.1.1.1", "1.1.1.2" ], @kamal.accessory_hosts
|
assert_equal [ "1.1.1.5", "1.1.1.1", "1.1.1.2" ], @kamal.accessory_hosts
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -163,7 +163,7 @@ class CommanderTest < ActiveSupport::TestCase
|
|||||||
@kamal.specific_roles = [ "web" ]
|
@kamal.specific_roles = [ "web" ]
|
||||||
assert_equal [], @kamal.accessory_hosts
|
assert_equal [], @kamal.accessory_hosts
|
||||||
|
|
||||||
configure_with(:deploy_with_accessories)
|
configure_with(:deploy_with_accessories_on_independent_server)
|
||||||
@kamal.specific_roles = [ "web" ]
|
@kamal.specific_roles = [ "web" ]
|
||||||
assert_equal [ "1.1.1.1", "1.1.1.2" ], @kamal.accessory_hosts
|
assert_equal [ "1.1.1.1", "1.1.1.2" ], @kamal.accessory_hosts
|
||||||
|
|
||||||
|
|||||||
2
test/fixtures/deploy_with_accessories.yml
vendored
2
test/fixtures/deploy_with_accessories.yml
vendored
@@ -16,7 +16,7 @@ builder:
|
|||||||
accessories:
|
accessories:
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
host: 1.1.1.5
|
host: 1.1.1.3
|
||||||
port: 3306
|
port: 3306
|
||||||
env:
|
env:
|
||||||
clear:
|
clear:
|
||||||
|
|||||||
38
test/fixtures/deploy_with_accessories_on_independent_server.yml
vendored
Normal file
38
test/fixtures/deploy_with_accessories_on_independent_server.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
service: app
|
||||||
|
image: dhh/app
|
||||||
|
servers:
|
||||||
|
web:
|
||||||
|
- "1.1.1.1"
|
||||||
|
- "1.1.1.2"
|
||||||
|
workers:
|
||||||
|
- "1.1.1.3"
|
||||||
|
- "1.1.1.4"
|
||||||
|
registry:
|
||||||
|
username: user
|
||||||
|
password: pw
|
||||||
|
builder:
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
accessories:
|
||||||
|
mysql:
|
||||||
|
image: mysql:5.7
|
||||||
|
host: 1.1.1.5
|
||||||
|
port: 3306
|
||||||
|
env:
|
||||||
|
clear:
|
||||||
|
MYSQL_ROOT_HOST: '%'
|
||||||
|
secret:
|
||||||
|
- MYSQL_ROOT_PASSWORD
|
||||||
|
files:
|
||||||
|
- test/fixtures/files/my.cnf:/etc/mysql/my.cnf
|
||||||
|
directories:
|
||||||
|
- data:/var/lib/mysql
|
||||||
|
redis:
|
||||||
|
image: redis:latest
|
||||||
|
roles:
|
||||||
|
- web
|
||||||
|
port: 6379
|
||||||
|
directories:
|
||||||
|
- data:/data
|
||||||
|
|
||||||
|
readiness_delay: 0
|
||||||
Reference in New Issue
Block a user