diff --git a/README.md b/README.md index 8d4f99a..792fb98 100644 --- a/README.md +++ b/README.md @@ -8,26 +8,45 @@ There are many integration tests provided by upstream that cannot be run during To run those tests manually, follow these steps: 1. Install additional dependencies for building rust and built-in postgres extensions: - ```sh - # dnf --setopt=install_weak_deps=False install rustfmt wget diffutils postgresql16-server-devel postgresql16-contrib postgresql16-anonymizer + + ``` + $ dnf --setopt=install_weak_deps=False install rustfmt wget diffutils postgresql16-server-devel postgresql16-contrib postgresql16-anonymizer ``` 2. Install and initialize pgrx: - ```sh + + ``` $ cargo install cargo-pgrx --version 0.14.3 --locked + ``` + + ``` $ cargo pgrx init --pg16 /usr/bin/pg_config ``` 3. Download and extract the source tarball and patch test files (replace `{version}` with the current version of the software): - ```sh + + ``` $ wget https://gitlab.com/dalibo/postgresql_anonymizer/-/archive/{version}/postgresql_anonymizer-{version}.tar.bz2 + ``` + + ``` $ tar -xvf postgresql_anonymizer-{version}.tar.bz2 + ``` + + ``` $ cd postgresql_anonymizer-{version} + ``` + + ``` $ sed -i "s/^CONNECTION 'host=localhost/CONNECTION 'host=localhost port=28816/" tests/sql/test_replica_masking.sql + ``` + + ``` $ sed -i "s/^CONNECTION 'host=localhost/CONNECTION 'host=localhost port=28816/" tests/expected/test_replica_masking.out ``` 4. Run the tests - ```sh + + ``` $ make installcheck PG_CONFIG=/usr/bin/pg_config PGVER=pg16 ``` diff --git a/postgresql16-anonymizer.spec b/postgresql16-anonymizer.spec index 6a3f387..e16608a 100644 --- a/postgresql16-anonymizer.spec +++ b/postgresql16-anonymizer.spec @@ -3,11 +3,11 @@ %global shortname anonymizer %global extension postgresql_%{shortname} %global pgversion 16 -%global pgrx_version 0.16.0 +%global pgrx_version 0.16.1 %global pg_config %{_bindir}/pg_config Name: postgresql%{pgversion}-%{shortname} -Version: 2.4.1 +Version: 2.5.1 Release: %autorelease Summary: Mask or replace personally identifiable information (PII) or sensitive data diff --git a/sources b/sources index 80ae920..2ee75d6 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (postgresql_anonymizer-2.4.1.tar.bz2) = b043e9cbaa647fbed477128277dae5fe2a97f8db33cb204fa81a09e972b158b4ce9e18e0d2fdd7be85513ddba9a0cb7199bdffd541b491b5da87aff42c9cba12 -SHA512 (postgresql_anonymizer-2.4.1-vendored.tar.xz) = ca6cec1b64054cb7dfabf17a92453786323dca647f6d27912a6dd9fa6d95b4f5ce9e7eba6ce721b21be0b1d84becc8556c8d6654319648143b4555c00539dc00 +SHA512 (postgresql_anonymizer-2.5.1.tar.bz2) = f0f9c24f748f277833adad1982c00c04d0546e3aa227b9d280e68b8efa47620ee1a3f496dbad31c4d7de940f762b659953d3d49abb4eacf3378ab33f58e3d62c +SHA512 (postgresql_anonymizer-2.5.1-vendored.tar.xz) = f93002bc486141da7eec88c5414f0a8857237927e6e42df998b76702a14d6d820312d07541b984401b6f8e46ffcadf09433da8749e95396d92cc8fab256a5988