about summary refs log tree commit diff
path: root/nixos/tests/postgresql.nix
diff options
context:
space:
mode:
authorJacek Galowicz <jacek.galowicz@cyberus-technology.de>2020-01-09 23:21:51 +0100
committerJacek Galowicz <jacek.galowicz@cyberus-technology.de>2020-01-09 23:21:51 +0100
commitabebf8cdb3cd01a4b8eca9f5943c145ad77431ee (patch)
treeb94be0761fe11f0f5b2698cdcd37f96b235bdce4 /nixos/tests/postgresql.nix
parentfff1c2867f848c7479873beefd29d7ce4b31a455 (diff)
nixosTests.initdb: Move code to existing postgres test
Diffstat (limited to 'nixos/tests/postgresql.nix')
-rw-r--r--nixos/tests/postgresql.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/postgresql.nix b/nixos/tests/postgresql.nix
index 5ba2d38773bb1..3201e22555eab 100644
--- a/nixos/tests/postgresql.nix
+++ b/nixos/tests/postgresql.nix
@@ -76,6 +76,9 @@ let
               "stat -c '%a' /var/backup/postgresql/${backupName}.sql.gz | grep 600",
           )
 
+      with subtest("Initdb works"):
+          machine.succeed("sudo -u postgres initdb -D /tmp/testpostgres2")
+
       machine.shutdown()
     '';