validate-failures.td 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. ! CREATE CONNECTION IF NOT EXISTS invalid_host TO SSH TUNNEL (
  10. HOST 'invalid-ssh-bastion-host',
  11. USER 'mz',
  12. PORT 22
  13. ) WITH (VALIDATE);
  14. contains:failed to lookup address information
  15. ! CREATE CONNECTION IF NOT EXISTS invalid_port TO SSH TUNNEL (
  16. HOST 'ssh-bastion-host',
  17. USER 'mz',
  18. PORT 23
  19. ) WITH (VALIDATE);
  20. regex:failed to connect to the remote host: connect to host .* port 23: Connection refused
  21. > CREATE CONNECTION IF NOT EXISTS invalid_user TO SSH TUNNEL (
  22. HOST 'ssh-bastion-host',
  23. USER 'invalid',
  24. PORT 22
  25. );
  26. ! VALIDATE CONNECTION invalid_user;
  27. regex:failed to connect to the remote host: invalid@.*: Permission denied \(publickey,keyboard-interactive\)\.
  28. > DROP CONNECTION invalid_user;
  29. ! VALIDATE CONNECTION thancred;
  30. regex:failed to connect to the remote host: mz@.*: Permission denied \(publickey,keyboard-interactive\)\.