aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorArthur Rand <arand@ucsc.edu>2018-04-18 10:47:13 -0700
committerGitHub <noreply@github.com>2018-04-18 10:47:13 -0700
commit6e13eb85a862bf8c8a20bc547f7eee9a85641c5c (patch)
treeb94719b5a2b53a6059e487e167c334089955e885 /src/test
parent979d16d518b05c9f702bb526388bd278b9c51cee (diff)
downloaddriver-core-6e13eb85a862bf8c8a20bc547f7eee9a85641c5c.tar.gz
driver-core-6e13eb85a862bf8c8a20bc547f7eee9a85641c5c.tar.bz2
driver-core-6e13eb85a862bf8c8a20bc547f7eee9a85641c5c.zip
[API-1498] add url method to blobStorage (#157)v1.8.24
* add url method to blobStorage * typo * typo * address comments * address comments * remove * scalafmt
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/xyz/driver/core/BlobStorageTest.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/scala/xyz/driver/core/BlobStorageTest.scala b/src/test/scala/xyz/driver/core/BlobStorageTest.scala
index 65f9cbc..637f9e0 100644
--- a/src/test/scala/xyz/driver/core/BlobStorageTest.scala
+++ b/src/test/scala/xyz/driver/core/BlobStorageTest.scala
@@ -80,6 +80,11 @@ class BlobStorageTest extends FlatSpec with ScalaFutures {
assert(storage.list("a").futureValue === Set("a/a.txt", "a/b"))
assert(storage.list("c").futureValue === Set("c/d"))
}
+ it should "get valid URL" in {
+ assert(storage.exists(key).futureValue === true)
+ val fooUrl = storage.url(key).futureValue
+ assert(fooUrl.isDefined)
+ }
}
"File system storage" should behave like storageBehaviour(