mirror of https://github.com/apache/jclouds.git
added large container list test in clj
This commit is contained in:
parent
99ac814d51
commit
c0a261334b
|
@ -77,6 +77,18 @@
|
|||
(is (= 3 (count (list-container "container" :with-details true))))
|
||||
(is (= 1 (count (list-container "container" :in-directory "dir")))))
|
||||
|
||||
(deftest large-container-list-test
|
||||
(let [container-name "test"
|
||||
total-blobs 10000]
|
||||
|
||||
;; create a container full of blobs
|
||||
(create-container container-name)
|
||||
(dotimes [i total-blobs] (upload-blob container-name (str i) (str i)))
|
||||
|
||||
;; verify
|
||||
(is (= total-blobs (count-blobs container-name)))))
|
||||
|
||||
|
||||
(deftest get-blob-test
|
||||
(is (create-container "blob"))
|
||||
(is (upload-blob "blob" "blob1" "blob1"))
|
||||
|
|
Loading…
Reference in New Issue