Skip to content

Commit

Permalink
Add CREATE USER MAPPING to regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jimjonesbr committed Mar 18, 2024
1 parent ce0f15a commit c2f2c26
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions expected/blazegraph-wikidata.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ CREATE SERVER wikidata
FOREIGN DATA WRAPPER rdf_fdw
OPTIONS (
endpoint 'https://query.wikidata.org/sparql');
/*
* this USER MAPPING must be ignored, as the triplestore does not require user authentication
*/
CREATE USER MAPPING FOR postgres SERVER wikidata OPTIONS (user 'foo', password 'bar');
CREATE FOREIGN TABLE atms_munich (
atmid text OPTIONS (variable '?atm'),
atmwkt text OPTIONS (variable '?geometry', literaltype 'geo:wktLiteral'),
Expand Down Expand Up @@ -415,7 +419,8 @@ LIMIT 15
(0 rows)

DROP SERVER wikidata CASCADE;
NOTICE: drop cascades to 3 other objects
DETAIL: drop cascades to foreign table atms_munich
NOTICE: drop cascades to 4 other objects
DETAIL: drop cascades to user mapping for postgres on server wikidata
drop cascades to foreign table atms_munich
drop cascades to foreign table places_below_sea_level
drop cascades to foreign table european_countries
4 changes: 4 additions & 0 deletions sql/blazegraph-wikidata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ FOREIGN DATA WRAPPER rdf_fdw
OPTIONS (
endpoint 'https://query.wikidata.org/sparql');

/*
* this USER MAPPING must be ignored, as the triplestore does not require user authentication
*/
CREATE USER MAPPING FOR postgres SERVER wikidata OPTIONS (user 'foo', password 'bar');

CREATE FOREIGN TABLE atms_munich (
atmid text OPTIONS (variable '?atm'),
Expand Down

0 comments on commit c2f2c26

Please sign in to comment.