-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c4aa08
commit 2dbf249
Showing
3 changed files
with
51 additions
and
1 deletion.
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
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,42 @@ | ||
# name: test/sql/cloud/access_token_auth.test | ||
# description: test access-token authentication | ||
# group: [azure] | ||
|
||
require azure | ||
|
||
require parquet | ||
|
||
require-env AZURE_ACCESS_TOKEN | ||
|
||
require-env AZURE_STORAGE_ACCOUNT | ||
|
||
statement ok | ||
set allow_persistent_secrets=false | ||
|
||
statement error | ||
SELECT count(*) FROM 'azure://testing-private/l.parquet'; | ||
---- | ||
Invalid Input Error: No valid Azure credentials found! | ||
|
||
statement ok | ||
CREATE SECRET az1 ( | ||
TYPE AZURE, | ||
PROVIDER ACCESS_TOKEN, | ||
ACCESS_TOKEN '${AZURE_ACCESS_TOKEN}', | ||
ACCOUNT_NAME '${AZURE_STORAGE_ACCOUNT}' | ||
) | ||
|
||
query I | ||
SELECT count(*) FROM 'azure://testing-private/l.parquet'; | ||
---- | ||
60175 | ||
|
||
query I | ||
SELECT count(*) FROM 'abfss://testing-private/l.parquet'; | ||
---- | ||
60175 | ||
|
||
query I | ||
FROM glob('az://testing-private/*.parquet'); | ||
---- | ||
az://testing-private/l.parquet |