From f4870b547c20c3636b0a5fa6ef1d07544f988603 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Thu, 25 Nov 2010 15:18:16 +0100 Subject: [PATCH] bad method mapping for count-blobs --- blobstore/src/main/clojure/org/jclouds/blobstore.clj | 2 +- blobstore/src/test/clojure/org/jclouds/blobstore_test.clj | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blobstore/src/main/clojure/org/jclouds/blobstore.clj b/blobstore/src/main/clojure/org/jclouds/blobstore.clj index 3807697c1a..3081e91ace 100644 --- a/blobstore/src/main/clojure/org/jclouds/blobstore.clj +++ b/blobstore/src/main/clojure/org/jclouds/blobstore.clj @@ -299,7 +299,7 @@ Options can also be specified for extension modules ([container-name] (count-blobs container-name *blobstore*)) ([container-name blobstore] - (.countBlob blobstore container-name))) + (.countBlobs blobstore container-name))) (defn blobs "List the blobs in a container: diff --git a/blobstore/src/test/clojure/org/jclouds/blobstore_test.clj b/blobstore/src/test/clojure/org/jclouds/blobstore_test.clj index d75fa91c7e..2b1ec948f9 100644 --- a/blobstore/src/test/clojure/org/jclouds/blobstore_test.clj +++ b/blobstore/src/test/clojure/org/jclouds/blobstore_test.clj @@ -70,6 +70,7 @@ (is (= 1 (count (list-container "container" :max-results 1)))) (create-directory "container" "dir") (is (upload-blob "container" "dir/blob2" "blob2")) + (is (= 3 (count-blobs "container"))) (is (= 3 (count (list-container "container")))) (is (= 4 (count (list-container "container" :recursive true)))) (is (= 3 (count (list-container "container" :with-details true))))