Skip to content

Commit

Permalink
postgresql test: fix
Browse files Browse the repository at this point in the history
Commit NixOS#55097 didn't modify all usages of postgresql/default.nix.

Also, replaced "random" pg with pg11. Random pg was always pg10.
  • Loading branch information
danbst committed Feb 3, 2019
1 parent 9cd7762 commit df44d45
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions nixos/tests/postgresql.nix
Expand Up @@ -7,7 +7,7 @@ with import ../lib/testing.nix { inherit system pkgs; };
with pkgs.lib;

let
postgresql-versions = import ../../pkgs/servers/sql/postgresql pkgs pkgs;
postgresql-versions = import ../../pkgs/servers/sql/postgresql pkgs;
test-sql = pkgs.writeText "postgresql-test" ''
CREATE EXTENSION pgcrypto; -- just to check if lib loading works
CREATE TABLE sth (
Expand Down Expand Up @@ -67,12 +67,7 @@ let

};
in
(mapAttrs' (name: package: { inherit name; value=make-postgresql-test name package false;}) postgresql-versions) // (
# just pick one version for the dump all test
let
first = head (attrNames postgresql-versions);
name = "${first}-backup-all";
in {
${name} = make-postgresql-test name postgresql-versions.${first} true;
}
)
(mapAttrs' (name: package: { inherit name; value=make-postgresql-test name package false;}) postgresql-versions) // {
postgresql_11-backup-all = make-postgresql-test name postgresql-versions.postgresql_11 true;
}

0 comments on commit df44d45

Please sign in to comment.