Skip to content

Commit

Permalink
add pg_net tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice authored and darora committed Aug 22, 2024
1 parent 431fb73 commit e46f391
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nix/tests/expected/pg_net.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- This is a very basic test because you can't get the value returned
-- by a pg_net request in the same transaction that created it;
select
net.http_get (
'https://postman-echo.com/get?foo1=bar1&foo2=bar2'
) as request_id;
request_id
------------
1
(1 row)

7 changes: 7 additions & 0 deletions nix/tests/sql/pg_net.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- This is a very basic test because you can't get the value returned
-- by a pg_net request in the same transaction that created it;

select
net.http_get (
'https://postman-echo.com/get?foo1=bar1&foo2=bar2'
) as request_id;

0 comments on commit e46f391

Please sign in to comment.