From 8de99832c1936a43adedb8b4f52431f7f33948d1 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Tue, 16 Apr 2024 02:07:26 +0000 Subject: [PATCH] ssh-connection test: Adapt expected error msg Seen in https://buildkite.com/materialize/nightly/builds/7438 Caused by https://github.com/MaterializeInc/materialize/pull/26186 --- test/ssh-connection/validate-failures.td | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ssh-connection/validate-failures.td b/test/ssh-connection/validate-failures.td index 7cd5f7de85468..d4cac318769f9 100644 --- a/test/ssh-connection/validate-failures.td +++ b/test/ssh-connection/validate-failures.td @@ -12,14 +12,14 @@ USER 'mz', PORT 22 ) WITH (VALIDATE); -contains:failed to connect to the remote host: Could not resolve hostname +contains:failed to lookup address information ! CREATE CONNECTION IF NOT EXISTS invalid_port TO SSH TUNNEL ( HOST 'ssh-bastion-host', USER 'mz', PORT 23 ) WITH (VALIDATE); -contains:failed to connect to the remote host: connect to host ssh-bastion-host port 23: Connection refused +regex:failed to connect to the remote host: connect to host .* port 23: Connection refused > CREATE CONNECTION IF NOT EXISTS invalid_user TO SSH TUNNEL ( HOST 'ssh-bastion-host', @@ -28,9 +28,9 @@ contains:failed to connect to the remote host: connect to host ssh-bastion-host ); ! VALIDATE CONNECTION invalid_user; -contains:failed to connect to the remote host: invalid@ssh-bastion-host: Permission denied (publickey,keyboard-interactive). +regex:failed to connect to the remote host: invalid@.*: Permission denied \(publickey,keyboard-interactive\)\. > DROP CONNECTION invalid_user; ! VALIDATE CONNECTION thancred; -contains:failed to connect to the remote host: mz@ssh-bastion-host: Permission denied (publickey,keyboard-interactive). +regex:failed to connect to the remote host: mz@.*: Permission denied \(publickey,keyboard-interactive\)\.