Skip to content

Commit

Permalink
Merge pull request #66 from ChevronETC/backend
Browse files Browse the repository at this point in the history
add backend method
  • Loading branch information
samtkaplan authored Feb 20, 2024
2 parents e88bd3b + 78377a8 commit 31e6a8e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
XML = "72c71f33-b9b6-44de-8c94-c961784809e2"

[compat]
AbstractStorage = "^1.1"
AbstractStorage = "^1.2"
AzSessions = "2"
AzStorage_jll = "0.9"
HTTP = "1"
Expand Down
2 changes: 2 additions & 0 deletions src/AzStorage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,8 @@ end

AbstractStorage.minimaldict(c::AzContainer) = Dict("storageaccount"=>c.storageaccount, "containername"=>c.containername, "prefix"=>c.prefix)

AbstractStorage.backend(_::AzContainer) = "azureblob"

"""
isfile(container, "blobname")
Expand Down
8 changes: 8 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,14 @@ end
rm(c)
end

@testset "backend" begin
r = uuid4()
x = rand(UInt8, 500_000)
c = AzContainer("foo-$r-o", storageaccount=storageaccount, session=session, nthreads=2, nretry=10)

@test backend(c) == "azureblob"
end

if !Sys.iswindows()
@testset "C token refresh, write" begin
r = uuid4()
Expand Down

0 comments on commit 31e6a8e

Please sign in to comment.