-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix endpoints not being set correctly
- Loading branch information
1 parent
043890c
commit 43f23a3
Showing
3 changed files
with
112 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# name: test/sql/aws_secret_gcs.test | ||
# description: test aws extension with gcs secret | ||
# group: [aws] | ||
|
||
require aws | ||
|
||
require httpfs | ||
|
||
# Note this test is not very intelligent since we dont assume any profiles to be available | ||
|
||
statement ok | ||
SET allow_persistent_secrets=false | ||
|
||
statement ok | ||
CREATE SECRET s1 ( | ||
TYPE GCS, | ||
PROVIDER credential_chain | ||
); | ||
|
||
query I | ||
SELECT which_secret('gcs://haha/hoehoe.parkoe', 'gcs') | ||
---- | ||
s1 | ||
|
||
statement error | ||
from "gcs://a/b.csv" | ||
---- | ||
https://storage.googleapis.com/a/b.csv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# name: test/sql/aws_secret_r2.test | ||
# description: test aws extension with r2 secret | ||
# group: [aws] | ||
|
||
require aws | ||
|
||
require httpfs | ||
|
||
# Note this test is not very intelligent since we dont assume any profiles to be available | ||
|
||
statement ok | ||
SET allow_persistent_secrets=false | ||
|
||
statement ok | ||
CREATE SECRET s1 ( | ||
TYPE R2, | ||
PROVIDER credential_chain, | ||
ACCOUNT_ID "<account>" | ||
); | ||
|
||
query I | ||
SELECT which_secret('r2://haha/hoehoe.parkoe', 'r2') | ||
---- | ||
s1 | ||
|
||
statement error | ||
from "r2://blabla/file.csv" | ||
---- | ||
https://<account>.r2.cloudflarestorage.com/blabla/file.csv' |