-
Notifications
You must be signed in to change notification settings - Fork 11
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
41cc2ff
commit 6eb754b
Showing
2 changed files
with
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,21 @@ class AzureAbfsBucketTest extends AbstractBucketTest { | |
assert(thrown.getMessage().startsWith("E-CSE-20")) | ||
assert(thrown.getMessage().contains(s"path '$path' scheme is not valid.")) | ||
} | ||
// https://github.com/MicrosoftDocs/fabric-docs/blob/main/docs/onelake/onelake-access-api.md | ||
// "abfss://[email protected]/data/" | ||
// The account name is always onelake | ||
// The container name is your workspace name. | ||
// | ||
// From the docs | ||
// -> abfs[s]://<workspace>@onelake.dfs.fabric.microsoft.com/<item>.<itemtype>/<path>/<fileName> | ||
test("apply throws if Azure OneLake path does not return valid Bucket") { | ||
val path = "abfss://[email protected]/item.itemtype/path/filename" | ||
val exaMetadata = mockConnectionInfo("", "AZURE_SECRET_KEY=secret") | ||
properties = defaultProperties ++ Map(PATH -> path, "CONNECTION_NAME" -> "connection_info") | ||
|
||
val bucket = getBucket(properties, exaMetadata) | ||
assert(bucket.isInstanceOf[AzureAbfsBucket]) | ||
} | ||
|
||
test("apply throws if no connection name is provided") { | ||
properties = defaultProperties | ||
|