Permalink
Commits on Oct 23, 2012
  1. MB-6977: Don't overwrite server set to empty one

    bcui6611 authored and steveyen committed Oct 22, 2012
    When sample data is selected in setup wizard, server may not be
    ready to serve request 'http://localhost:8091/poolsStreaming/default'
    and/or server has empty nodes information. We need to make sure the
    default server list won't be overwritten by the empty node list.
    
    Change-Id: I467e7e886f0abef345903b375fad87f0e4f06c37
    Reviewed-on: http://review.couchbase.org/21858
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Bin Cui <bin.cui@gmail.com>
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
Commits on Oct 2, 2012
  1. MB-6757: CAPI header needs authorization info

    bcui6611 authored and Farshid Ghods committed Sep 27, 2012
    Contrary to 1.8, 2.0 couchbase server requires authorization
    information for CAPI headers when dealing with sasl bucket
    
    Change-Id: I6469eadd462ff4a9ec98fbc7fa878878d9ee058d
    Reviewed-on: http://review.couchbase.org/21178
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Reviewed-by: Farshid Ghods <farshid@couchbase.com>
    Tested-by: Farshid Ghods <farshid@couchbase.com>
Commits on Jul 18, 2012
  1. MB-5851: Need to create dist target for tarball

    bcui6611 committed Jul 17, 2012
    Change-Id: I25a25bf2263ff50463fc60346bfac74e51e6ba2f
    Reviewed-on: http://review.couchbase.org/18437
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Tested-by: Bin Cui <bin.cui@gmail.com>
  2. MB-5903: fix missing couchApiBase before cluster setup

    pavel-paulau authored and bcui6611 committed Jul 16, 2012
    It's required by cbdocloader
    
    Change-Id: I9f546e04f075e5eee3e27d2fd5a58cb9941c8ddd
    Reviewed-on: http://review.couchbase.org/18391
    Reviewed-by: Bin Cui <bin.cui@gmail.com>
    Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
Commits on Jul 6, 2012
  1. MB-5609: fixed obsolete method

    pavel-paulau authored and Benjamin Young committed Jun 22, 2012
    Change-Id: I6e919acedc792bdfd91b8d58dc9939d0e6a4031a
    Reviewed-on: http://review.couchbase.org/17933
    Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
    Reviewed-by: Benjamin Young <benjamin@couchbase.com>
  2. MB-5607: fixed string formatting

    pavel-paulau authored and Benjamin Young committed Jul 5, 2012
    Now it's compatible with Python 2.4
    
    Change-Id: I86f7a2e818516a1a310a3e5d11a512dc80183703
    Reviewed-on: http://review.couchbase.org/17934
    Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
    Reviewed-by: Benjamin Young <benjamin@couchbase.com>
Commits on Jun 26, 2012
  1. MB-5699: Specify same number of arguments as overwritten function

    bcui6611 authored and kkumar86 committed Jun 26, 2012
    When overwriting function prompt_user_passwd in urllib.FancyURLopener,
    we need to specify two parameters as it does in original function.
    
    Change-Id: Ib685a60bb2ad24aad00e1ff8ee5abd3b8555a57a
    Reviewed-on: http://review.couchbase.org/17661
    Reviewed-by: Karan Kumar <karan@couchbase.com>
    Tested-by: Karan Kumar <karan@couchbase.com>
  2. MB-5699: Specify same number of arguments as overwritten function

    bcui6611 committed Jun 26, 2012
    When overwriting function prompt_user_passwd in urllib.FancyURLopener,
    we need to specify two parameters as it does in original function.
    
    Change-Id: I37618d191e1ccd75b1ea3c7db6b7a4b60664151c
    Reviewed-on: http://review.couchbase.org/17648
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Bin Cui <bin.cui@gmail.com>
Commits on Jun 15, 2012
  1. MB-5581: Revert "removed strange header magic for username = default"

    bcui6611 authored and Benjamin Young committed Jun 14, 2012
    This reverts commit 415b8f4.
    Since default bucket has no password, we don't need to do sasl
    authentication. It is the special case we need to keep it as is.
    
    Change-Id: Ic2cf0499c251f24c9cb57fb16588be035f6b9a3f
    Reviewed-on: http://review.couchbase.org/17290
    Tested-by: Bin Cui <bin.cui@gmail.com>
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Commits on Jun 12, 2012
  1. MB-5413 Don't check password for default bucket

    bcui6611 committed Jun 8, 2012
    We need to handle bucket scenarios that is with and without password.
    For default bucket, password is set as None and we should ignore it.
    
    Change-Id: Ia565602da08498240e4720d7f40340fcb84bcca4
    Reviewed-on: http://review.couchbase.org/16990
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Reviewed-by: Bin Cui <bin.cui@gmail.com>
    Tested-by: Bin Cui <bin.cui@gmail.com>
  2. test_client now uses bucket name from test.ini

    BigBlueHat authored and Benjamin Young committed Jun 7, 2012
    Change-Id: Ibd4c71208d785ff357551b0c5f430d4152b8ef25
    Reviewed-on: http://review.couchbase.org/16996
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  3. removing logging disabling

    BigBlueHat authored and Benjamin Young committed Jun 8, 2012
    Change-Id: I49b969c98907725902e6cc0b4d5e8c478bdf9a94
    Reviewed-on: http://review.couchbase.org/17039
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  4. removed strange header magic for username = default

    BigBlueHat authored and Benjamin Young committed Jun 6, 2012
    Change-Id: Ic36e1715c035e0b2230c5a553b150eee23f35458
    Reviewed-on: http://review.couchbase.org/16872
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  5. pep8 tweaks in rest_client.py

    BigBlueHat authored and Benjamin Young committed Jun 6, 2012
    Change-Id: Iee946d69438e5286b5a7f68def161dca598333b3
    Reviewed-on: http://review.couchbase.org/16871
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
Commits on Jun 8, 2012
  1. fixed README reference in setup.py

    BigBlueHat authored and Benjamin Young committed Jun 7, 2012
    Change-Id: Ibb8c114e4fc953477797187944a2baf132dd66ca
    Reviewed-on: http://review.couchbase.org/16953
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
Commits on Jun 7, 2012
  1. made couchApiBase optional; we can look it up

    BigBlueHat authored and Benjamin Young committed Jun 6, 2012
    Change-Id: I9f0af05a0b451e16f372e855db01ca5304c097c8
    Reviewed-on: http://review.couchbase.org/16846
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  2. added RestConnection create_design_doc

    BigBlueHat authored and Benjamin Young committed Jun 6, 2012
    Test passes fine, but highlights a serious API issue:
    developer has to know what the couchApiBase is when
    using RestConnection.
    
    That is not something (of course) we want them to have
    to know, and it was likely just overlooked when added
    earlier.
    
    Forthcoming commit(s) will fix that.
    
    Change-Id: I5cd34d61ea0fabf8a391ec347fd4fe273efdeac1
    Reviewed-on: http://review.couchbase.org/16845
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  3. added setup_rest_connection to consolidate

    BigBlueHat authored and Benjamin Young committed Jun 5, 2012
    Prepping for many more tests. Woot!
    
    Change-Id: I5a53986210c1a4bd4172cd220ffc2e60ba3ff62f
    Reviewed-on: http://review.couchbase.org/16844
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  4. switched placement of Rest classes

    BigBlueHat authored and Benjamin Young committed Jun 5, 2012
    Matches the restclient.py organization more closely
    
    Change-Id: I74ddefd460e2da817d6ca1c857600848c1047bfd
    Reviewed-on: http://review.couchbase.org/16843
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  5. renamed RestClientTest to RestConnectionTest

    BigBlueHat authored and Benjamin Young committed Jun 5, 2012
    So it matches the actual class names >_<
    
    Change-Id: If3cddd02dec1d967a4515ee8767d52d5bf9260b8
    Reviewed-on: http://review.couchbase.org/16842
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  6. test RestHelper all_nodes_replicated

    BigBlueHat authored and Benjamin Young committed Jun 5, 2012
    Change-Id: Ica48f33b095829ff14de0d16948f47f3772aadce
    Reviewed-on: http://review.couchbase.org/16824
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  7. test RestHelper bucket_exists

    BigBlueHat authored and Benjamin Young committed Jun 5, 2012
    Change-Id: Id7b39dfad6f10d5791de8fb2f147b330f39cc453
    Reviewed-on: http://review.couchbase.org/16823
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  8. test RestHelper is_cluster_healthy & vbucket_map_ready

    BigBlueHat authored and Benjamin Young committed Jun 5, 2012
    Change-Id: I6f725b80fd70083119d303dee4fafffb8ee2ef37
    Reviewed-on: http://review.couchbase.org/16822
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  9. added @attr()-based test selection

    BigBlueHat authored and Benjamin Young committed Jun 5, 2012
    Using this with Travis to run tests specific to the version
    of Couchbase Server they were implemented in.
    
    NOTE: Currently all REST tests are marked for 2.0.0, but that
    will be fixed to their appropriate version once Travis support
    is confirmed to work
    
    Change-Id: I8c2c14fe0205ff874103dbcf54a58fb647f344a4
    Reviewed-on: http://review.couchbase.org/16815
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
Commits on Jun 6, 2012
  1. added sdk_dev@couchbase.com notifications

    BigBlueHat authored and Benjamin Young committed Jun 5, 2012
    Change-Id: Ie4a4135c9639310b4b668ff8bd75eacfd745d787
    Reviewed-on: http://review.couchbase.org/16821
    Reviewed-by: Dustin Sallings <dustin@spy.net>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
Commits on Jun 5, 2012
  1. ignore failing-tests branch, Travis

    BigBlueHat authored and Benjamin Young committed Jun 5, 2012
    We will handle re-testing those at fix time.
    
    Change-Id: I69ec979ae44cdea6128b4dd4591708fd217ce7cf
    Reviewed-on: http://review.couchbase.org/16814
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  2. added ENV settings for both Couchbase debs

    BigBlueHat authored and Benjamin Young committed Jun 5, 2012
    Change-Id: I74f9165a6ca221a29144cf5b21ed8c823170365d
    Reviewed-on: http://review.couchbase.org/16813
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  3. added initial RestHelperTest

    BigBlueHat authored and Benjamin Young committed Jun 1, 2012
    Change-Id: I9a784b3c3010f455cc35fe95f144a715e363c376
    Reviewed-on: http://review.couchbase.org/16812
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  4. updated .travis.yml to pull in 2.0 .deb

    BigBlueHat authored and Benjamin Young committed Jun 1, 2012
    Change-Id: I1ef335246c9877156d637bb53a47c66a170ffdb2
    Reviewed-on: http://review.couchbase.org/16811
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  5. pep8 whitespace/wrap fixes; dropped raise parens

    BigBlueHat authored and Benjamin Young committed Jun 1, 2012
    Change-Id: I307b10db4a33d2a5fa9faf71a0d3e0165e22aefa
    Reviewed-on: http://review.couchbase.org/16810
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  6. jumping 202 exception in cluster_connect for < Py2.5

    BigBlueHat authored and Benjamin Young committed May 30, 2012
    In HTTP > 100 and < 300 status codes are not errors. However, urllib2 in
    Python < 2.5 throws Exceptions as if they were. Since our code does not
    do any unique handling of these positive status codes, we jump them.
    
    Change-Id: I0ef23b3714eb89a28f0191a0aecef15912db027d
    Reviewed-on: http://review.couchbase.org/16637
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  7. added unittest2 for < 2.7

    BigBlueHat authored and Benjamin Young committed May 30, 2012
    We use self.assertIsInstance() and friends from the
    newer 2.7 unittest package. unittest2 is essentially
    a backport project:
    http://pypi.python.org/pypi/unittest2
    "The new features in unittest for
    Python 2.7 backported to Python 2.3+."
    
    Change-Id: I2bccfeeec9317cbc97a4a07a3a91ada1d94cc947
    Reviewed-on: http://review.couchbase.org/16636
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  8. moved Python reqs, issues link up; added travis-ci image

    BigBlueHat authored and Benjamin Young committed Jun 1, 2012
    Change-Id: I68015bb6c6315b6fd66bfc01491553771849262b
    Reviewed-on: http://review.couchbase.org/16640
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  9. added try/catch for (simple)json to cluster_connect

    BigBlueHat authored and Benjamin Young committed May 30, 2012
    Change-Id: I175b3378af1f5f0af07cc3af4e265b7a32c1dbf8
    Reviewed-on: http://review.couchbase.org/16635
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
  10. added .travis.yml for travis-ci.org goodness

    BigBlueHat authored and Benjamin Young committed May 29, 2012
    Currently testing on Python 2.6 and 2.7.
    
    Also pulled in cluster_connect and tweaked for a single
    installation (vs. a cluster_run one)
    
    Change-Id: I14ea5152518c8d66ea40925a16b60ee43d9d3681
    Reviewed-on: http://review.couchbase.org/16634
    Reviewed-by: Michael Wiederhold <mike@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>