Skip to content

Commit adc1e3d

Browse files
authored
More complete unit tests for Azure Blob Storage backend (#1138)
* More complete unit tests for Azure Blob Storage backend Pull request #1109 introduced key prefix support for the Azure backend, with unit tests for `normalize_key()`, but those tests didn't test whether the Storage impl *actually* used `normalize_key()` when constructing an API request to Azure. This change makes the unit tests more complete, by testing the Storage impl directly through the use of a mock HTTP server as Azure API endpoint. * Split up Azure storage tests
1 parent d435d12 commit adc1e3d

File tree

4 files changed

+420
-48
lines changed

4 files changed

+420
-48
lines changed

Cargo.lock

Lines changed: 190 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ predicates = "=2.1.1"
9898
thirtyfour_sync = "0.27"
9999
once_cell = "1.9"
100100
serial_test = "0.5"
101+
wiremock = "0.4.9"
101102

102103
[target.'cfg(unix)'.dependencies]
103104
daemonize = "0.4"

0 commit comments

Comments
 (0)