Skip to content

Commit

Permalink
Add test to verify search works in readonly mode with context extensi…
Browse files Browse the repository at this point in the history
…on enabled (#297)
  • Loading branch information
drnextgis authored Aug 26, 2024
1 parent b73d570 commit 5b9580e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pgstac/tests/pgtap/001_core.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,15 @@ SELECT lives_ok(
$$ SELECT search('{}'); $$,
'Search works with readonly mode set to on in readonly mode.'
);

SET pgstac.context TO 'on';
SELECT lives_ok(
$$ SELECT search('{}'); $$,
'Search works with readonly mode set to on in readonly mode and the context extension enabled.'
);
RESET transaction_read_only;
RESET pgstac.readonly;
RESET pgstac.context;
SELECT is_definer('update_partition_stats');
SELECT is_definer('partition_after_triggerfunc');
SELECT is_definer('drop_table_constraints');
Expand Down

0 comments on commit 5b9580e

Please sign in to comment.