Merge pull request #620 from mlitwiniuk/allow_custom_ports_for_ssh

Allow custom user and port for builder host
This commit is contained in:
Donal McBreen
2024-05-21 11:49:06 +01:00
committed by GitHub
3 changed files with 58 additions and 2 deletions

View File

@@ -131,6 +131,14 @@ class CliBuildTest < CliTestCase
end
end
test "create remote with custom ports" do
run_command("create", fixture: :with_remote_builder_and_custom_ports).tap do |output|
assert_match "Running /usr/bin/env true on 1.1.1.5", output
assert_match "docker context create kamal-app-native-remote-amd64 --description 'kamal-app-native-remote amd64 native host' --docker 'host=ssh://app@1.1.1.5:2122'", output
assert_match "docker buildx create --name kamal-app-native-remote kamal-app-native-remote-amd64 --platform linux/amd64", output
end
end
test "create with error" do
stub_setup
SSHKit::Backend::Abstract.any_instance.stubs(:execute)