-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for WASBS to native Azure file system implementation
- Loading branch information
Showing
3 changed files
with
12 additions
and
8 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 |
---|---|---|
|
@@ -29,6 +29,7 @@ void test() | |
assertValid("abfs://[email protected]/some/path/file", "account", "container", "some/path/file", "abfs", "core.windows.net"); | ||
assertValid("abfss://[email protected]/some/path/file", "account", "container", "some/path/file", "abfss", "core.windows.net"); | ||
assertValid("wasb://[email protected]/some/path/file", "account", "container", "some/path/file", "wasb", "core.windows.net"); | ||
assertValid("wasbs://[email protected]/some/path/file", "account", "container", "some/path/file", "wasbs", "core.windows.net"); | ||
|
||
assertValid("abfs://[email protected]/some/path/file", "account", "container-stuff", "some/path/file", "abfs", "core.windows.net"); | ||
assertValid("abfs://[email protected]/some/path/file", "account", "container2", "some/path/file", "abfs", "core.windows.net"); | ||
|
@@ -41,16 +42,18 @@ void test() | |
assertValid("abfs://[email protected]/some/path/file", "account", "container", "some/path/file", "abfs", "core.usgovcloudapi.net"); | ||
assertValid("abfss://[email protected]/some/path/file", "account", "container", "some/path/file", "abfss", "core.usgovcloudapi.net"); | ||
assertValid("wasb://[email protected]/some/path/file", "account", "container", "some/path/file", "wasb", "core.usgovcloudapi.net"); | ||
assertValid("wasbs://[email protected]/some/path/file", "account", "container", "some/path/file", "wasbs", "core.usgovcloudapi.net"); | ||
|
||
// abfs[s] host must contain ".dfs.", and wasb host must contain ".blob." before endpoint | ||
// abfs[s] host must contain ".dfs.", and wasb[s] host must contain ".blob." before endpoint | ||
assertInvalid("abfs://[email protected]/some/path/file"); | ||
assertInvalid("abfss://[email protected]/some/path/file"); | ||
assertInvalid("wasb://[email protected]/some/path/file"); | ||
assertInvalid("abfs://[email protected]/some/path/file"); | ||
assertInvalid("abfss://[email protected]/some/path/file"); | ||
assertInvalid("wasb://[email protected]/some/path/file"); | ||
assertInvalid("wasbs://[email protected]/some/path/file"); | ||
|
||
// only abfs, abfss, and wasb schemes allowed | ||
// only abfs, abfss, wasb, wasbs schemes allowed | ||
assertInvalid("https://[email protected]/some/path/file"); | ||
|
||
// host must have at least to labels | ||
|
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