Skip to content

Commit

Permalink
Update test runner for pg 16 and add pgsodium.seclabel view easily se…
Browse files Browse the repository at this point in the history
…e labled columns. (#93)

Co-authored-by: Michel Pelletier <[email protected]>
  • Loading branch information
michelp and Michel Pelletier authored Nov 1, 2023
1 parent 91d7e90 commit 21c2eea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG DEBIAN_FRONTEND=noninteractive
# install base dependences
RUN apt-get update && \
apt-get install -y make cmake git curl build-essential m4 sudo gdbserver \
gdb libreadline-dev bison flex zlib1g-dev tmux zile zip vim gawk wget
gdb libreadline-dev bison flex zlib1g-dev tmux zile zip vim gawk wget libicu-dev pkg-config

# add postgres user and make data dir
RUN groupadd -r postgres && useradd --no-log-init -r -m -s /bin/bash -g postgres -G sudo postgres
Expand Down
2 changes: 1 addition & 1 deletion sql/pgsodium--3.1.8--3.1.9.sql
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ BEGIN
END IF;
END LOOP;

raise notice 'about to masking role % %', source_name, rule.view_name;
RAISE NOTICE 'Masking role % %', source_name, rule.view_name;
PERFORM pgsodium.mask_role(oid::regrole, source_name, rule.view_name)
FROM pg_roles WHERE pgsodium.has_mask(oid::regrole, source_name);

Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

versions=${1:-13 14 15}
versions=${1:-13 14 15 16}

for version in $versions
do
Expand Down
2 changes: 1 addition & 1 deletion test/pgsodium_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ SELECT function_privs_are('pgsodium'::name, proname, proargtypes::regtype[]::tex
AND oidvectortypes(proargtypes) = 'oid, boolean';

SELECT unnest(ARRAY[
is(md5(prosrc), '2b415aec3b2a3421dd4b9c876abe620e',
is(md5(prosrc), 'b034b801e006293fa2d4de77db4b1829',
format('Function pgsodium.%s(%s) body should match checksum',
proname, pg_get_function_identity_arguments(oid))
),
Expand Down

0 comments on commit 21c2eea

Please sign in to comment.