|
|
|
@ -5,12 +5,18 @@
|
|
|
|
|
[dda.c4k-common.postgres :as cut]))
|
|
|
|
|
|
|
|
|
|
(deftest should-generate-config
|
|
|
|
|
(is (= {:postgresql.conf
|
|
|
|
|
(is (= {:postgres-db "postgres"
|
|
|
|
|
:postgresql.conf
|
|
|
|
|
"max_connections = 100\nwork_mem = 4MB\nshared_buffers = 512MB\n"}
|
|
|
|
|
(:data (cut/generate-config))))
|
|
|
|
|
(is (= {:postgresql.conf
|
|
|
|
|
(is (= {:postgres-db "postgres"
|
|
|
|
|
:postgresql.conf
|
|
|
|
|
"max_connections = 700\nwork_mem = 3MB\nshared_buffers = 2048MB\n"}
|
|
|
|
|
(:data (cut/generate-config :postgres-size :8gb))))
|
|
|
|
|
(is (= {:postgres-db "test"
|
|
|
|
|
:postgresql.conf
|
|
|
|
|
"max_connections = 100\nwork_mem = 4MB\nshared_buffers = 512MB\n"}
|
|
|
|
|
(:data (cut/generate-config :db-name "test"))))
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(deftest should-generate-persistent-volume
|
|
|
|
|