Skip to content

Commit

Permalink
Add tap tests on pgsodium objects schema (#67)
Browse files Browse the repository at this point in the history
* Add tap tests on pgsodium objects schema

* Update pgtap extension to 1.2.0 in tests

* Force empty search_path when check pgsodium schema

This fixes errors related to the object schema resolution.

* Fix the search_path again...

* Force pgsodium version during pgtap test generation

* Order privileges by names

This makes any change easier to spot

* add tap tests on types

* Add various checks on functions

Adding checks for: language, return type, volatility, strictiness,
security definer and function kind.

* Check the event trigger properties

* Add table indexes and constraints checks

* Forgot to update the number of checks
  • Loading branch information
ioguix authored Jan 30, 2023
1 parent 7915a82 commit 99d5f22
Show file tree
Hide file tree
Showing 4 changed files with 6,476 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN git clone --branch REL_${version}_STABLE https://github.com/postgres/postgre

RUN chown postgres:postgres /home/postgres

RUN curl -s -L https://github.com/theory/pgtap/archive/v1.1.0.tar.gz | tar zxvf - && cd pgtap-1.1.0 && make && make install
RUN curl -s -L https://github.com/theory/pgtap/archive/v1.2.0.tar.gz | tar zxvf - && cd pgtap-1.2.0 && make && make install
RUN curl -s -L https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz | tar zxvf - && cd libsodium-1.0.18 && ./configure && make check && make -j 4 install
RUN cpan App::cpanminus && cpan TAP::Parser::SourceHandler::pgTAP
RUN mkdir "/home/postgres/pgsodium"
Expand Down
Loading

0 comments on commit 99d5f22

Please sign in to comment.