-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from quentingodeau/feature/spn
Feature/spn
- Loading branch information
Showing
3 changed files
with
137 additions
and
0 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
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,31 @@ | ||
# name: test/sql/azure_spn.test | ||
# description: test azure extension with service principal authentication | ||
# group: [azure] | ||
|
||
require azure | ||
|
||
require-env TENANT_ID | ||
|
||
require-env CLIENT_ID | ||
|
||
require-env CLIENT_SECRET | ||
|
||
require-env ACCOUNT_NAME | ||
|
||
statement ok | ||
CREATE SECRET s1 ( | ||
TYPE AZURE, | ||
PROVIDER SERVICE_PRINCIPAL, | ||
TENANT_ID '${TENANT_ID}', | ||
CLIENT_ID '${CLIENT_ID}', | ||
CLIENT_SECRET '${CLIENT_SECRET}', | ||
ACCOUNT_NAME '${ACCOUNT_NAME}' | ||
) | ||
|
||
query I | ||
SELECT count(*) FROM 'azure://testing-private/l.csv'; | ||
---- | ||
60175 | ||
|
||
statement ok | ||
DROP SECRET s1 |