setup.td 1.0 KB

1234567891011121314151617181920212223242526272829
  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. #
  10. # Basic connection setup for most workflows.
  11. # Done here instead of in the workflow to ensure the state is reset.
  12. $ postgres-execute connection=postgres://mz_system:materialize@${testdrive.materialize-internal-sql-addr}
  13. ALTER SYSTEM SET unsafe_enable_unorchestrated_cluster_replicas = true
  14. ALTER SYSTEM SET enable_connection_validation_syntax = true
  15. > CREATE CONNECTION IF NOT EXISTS thancred TO SSH TUNNEL (
  16. HOST 'ssh-bastion-host',
  17. USER 'mz',
  18. PORT 22
  19. );
  20. # We don't authorize this connection's keys, so we
  21. # can test error handling.
  22. > CREATE CONNECTION IF NOT EXISTS keyless TO SSH TUNNEL (
  23. HOST 'ssh-bastion-host',
  24. USER 'mz',
  25. PORT 22
  26. );