Skip to content
Browse files

Fix the buckets list url in '/pools/:poolName' handler

Change-Id: Id52208d6a3655b64ad69cfcd69c3d8d58a553e91
Reviewed-on: http://review.couchbase.org/13062
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
1 parent cd6f0df commit 5dbe5cda777eb5bcdc6aab5cbef0b4a0fcdbffee @avsej avsej committed with ingenthr Feb 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/couchbase/mock/http/PoolsHandler.java
View
2 src/main/java/org/couchbase/mock/http/PoolsHandler.java
@@ -87,7 +87,7 @@ public void handle(HttpExchange exchange) throws IOException {
} else if (path.matches("^/pools/" + mock.getPoolName() + "$/?")) {
// GET /pools/:poolName
StringWriter sw = new StringWriter();
- sw.append("{\"buckets\":{\"uri\":\"/pools/" + mock.getPoolName() + "/buckets/default\"}}");
+ sw.append("{\"buckets\":{\"uri\":\"/pools/" + mock.getPoolName() + "/buckets\"}}");
payload = sw.toString().getBytes();
exchange.sendResponseHeaders(HttpURLConnection.HTTP_OK, payload.length);
body.write(payload);

0 comments on commit 5dbe5cd

Please sign in to comment.
Something went wrong with that request. Please try again.