show_clusters.slt 918 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. # Test for `SHOW CLUSTERS`.
  10. mode standard
  11. # Start from a pristine state
  12. reset-server
  13. simple conn=mz_system,user=mz_system
  14. ALTER SYSTEM SET unsafe_enable_unorchestrated_cluster_replicas = on;
  15. ----
  16. COMPLETE 0
  17. statement ok
  18. CREATE CLUSTER foo REPLICAS ()
  19. statement ok
  20. CREATE CLUSTER bar REPLICAS (r1 (SIZE '1'), r2 (SIZE '1'))
  21. query TT rowsort
  22. SELECT name, replicas FROM (SHOW CLUSTERS) WHERE name != 'quickstart'
  23. ----
  24. bar
  25. r1 (1), r2 (1)
  26. foo
  27. NULL
  28. mz_analytics
  29. NULL
  30. mz_catalog_server
  31. r1 (2)
  32. mz_probe
  33. r1 (2)
  34. mz_support
  35. NULL
  36. mz_system
  37. r1 (2)