Commits on Jan 6, 2015
  1. @mnunberg

    Add more view system tests from JCBC

    This uses a modified version of JCBC's own tests to test our own views
    implementation.
    
    Change-Id: Ic04364402c37bebdd45451170c7171327613b9cd
    Reviewed-on: http://review.couchbase.org/44737
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 24, 2014
  2. @mnunberg

    Use JUnit 4

    Change-Id: I5bc7742db06cb68e219a35690c44779a9ac23329
    Reviewed-on: http://review.couchbase.org/44736
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 24, 2014
  3. @mnunberg

    Update test client to latest 1.x version (1.4.6)

    Change-Id: Ie8327d390f2abbcde8e6f21874df59322aa85982
    Reviewed-on: http://review.couchbase.org/44735
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 24, 2014
  4. @mnunberg

    Refactor bucket creation

    This will allow bucket creation to also take place on the fly
    
    Change-Id: I383f78641e7b00cbb06566079ce7d576ce038aaf
    Reviewed-on: http://review.couchbase.org/44733
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 24, 2014
  5. @mnunberg

    Add enhanced stats support

    This adds additional support for non-default stats, as well
    as implementing the special __MOCK__ stat. It is intended
    that other mock implementations should implement this
    (perhaps along with a supported featureset) so that test
    code can check at runtime whether the server is a mock
    or not.
    
    Change-Id: Iaac161d94f2d0b91b54ba60b69be3bc18a970ce3
    Reviewed-on: http://review.couchbase.org/44732
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 24, 2014
  6. @mnunberg

    Support the $bucket/ddoc path

    Change-Id: Ib23ffda87d038d54897a3ea9ebda17baff86d2b2
    Reviewed-on: http://review.couchbase.org/44731
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 24, 2014
  7. @mnunberg

    BucketStreamingHandler should check if socket is closed

    Otherwise we risk having this hang infinitely until the app exits (or a
    bucket update actually happens).
    
    Change-Id: Ibc3272fb7b44bf30521b6e9788596f1bd89aa7a3
    Reviewed-on: http://review.couchbase.org/44730
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 23, 2014
  8. @mnunberg

    Allow to load docs from command line

    Change-Id: Ia72d625a0e1a698087bc8cb25a095500e5c6f0b8
    Reviewed-on: http://review.couchbase.org/44728
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 22, 2014
  9. @mnunberg

    Add Couchbase Views

    This draws upon some work of Sergey Avseyev (who provided the initial
    view implementation) and Brett Lawson (who provided the core of the
    bundled javascript implementation).
    
    This utilizes a mostly-in-javascript implementation of indexing and
    returning documents per the view interface.
    
    It adds a hard dependency on the Rhino Javascript engine (skipping
    entirely over any ScriptEngine implementation built in to JDKs, as they
    are stripped down and unreliable for our purpose).
    
    Change-Id: Ifee524e750f034111dad467211419c93711eb5f6
    Reviewed-on: http://review.couchbase.org/44726
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 22, 2014
Commits on Jan 5, 2015
  1. @mnunberg

    Add UTF8/b64 item wrappers

    Change-Id: I8320099058252f733aee3fb68ca90b9b507c44df
    Reviewed-on: http://review.couchbase.org/44725
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 23, 2014
  2. @mnunberg

    Allow base64 to accept byte[] as input

    Change-Id: If7c8549497cf8a819341c3a7f2acb640e06420a9
    Reviewed-on: http://review.couchbase.org/44724
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 22, 2014
  3. @mnunberg

    Removed unsued maven files

    Change-Id: I9c8583da0c0bfb01b906409bb85e0c2d2eb302ca
    Reviewed-on: http://review.couchbase.org/44723
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 18, 2014
  4. @mnunberg

    Depend on only a single JSON library

    I'm using GSON here since most of the code already uses it.
    
    Change-Id: I2f6332245b061430fc5b8241faa4f351bc7eba5c
    Reviewed-on: http://review.couchbase.org/44722
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 18, 2014
  5. @mnunberg

    Migrate HTTP server to httpcomponents

    The built-in JDK http server does not handle keepalive very well, and
    uses a rather opaque model that makes it difficult for us to fine-grain
    HTTP behavior, which may be needed during subsequent modifications.
    
    Change-Id: I8a9cfb13ec67eb0016be3b5900dda43c38d9aab9
    Reviewed-on: http://review.couchbase.org/44721
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed Dec 18, 2014
Commits on Jun 20, 2014
  1. @mnunberg

    Bump to version 0.8

    Change-Id: I0c1e7397ad28905ed10625e49d20d512bc8b11d9
    Reviewed-on: http://review.couchbase.org/38611
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    mnunberg committed Jun 20, 2014
  2. @mnunberg

    JMembaseTest: Disable 'unknown host' test

    This test takes a potentially long time on DNS servers which
    redirect or 'blackhole' an NXDOMAIN response to something else.
    
    Change-Id: I07bd21da9e17a92db57af11c938476ccf961dd9c
    Reviewed-on: http://review.couchbase.org/38530
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    mnunberg committed Jun 19, 2014
  3. @mnunberg

    Use port 20891 rather than the reserved 18091

    Also clean up port/fd initialization to be more constant for tests
    
    Change-Id: I29dc46e95ef7c4668c8f6759bec9d1404e8560cb
    Reviewed-on: http://review.couchbase.org/37690
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    mnunberg committed May 29, 2014
Commits on May 28, 2014
  1. @mnunberg

    Recognize the HELLO command code

    This will still return not supported, but it's better than crashing
    
    Change-Id: I26a786f95c41369a560049a56d424935ac880c95
    Reviewed-on: http://review.couchbase.org/37614
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    mnunberg committed May 27, 2014
Commits on Feb 11, 2014
  1. @mnunberg

    Check if stats key is empty

    Change-Id: I843a115b3ac96bb7808e5b78cac4157fa5c319de
    Reviewed-on: http://review.couchbase.org/33444
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    mnunberg committed Feb 11, 2014
  2. @mnunberg

    Don't retry to listen on the same port

    Change-Id: I056b8266c019c06d3c058e263a5493098ccc3c05
    Reviewed-on: http://review.couchbase.org/33443
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    mnunberg committed Feb 11, 2014
  3. @mnunberg

    Add support for 'keyStats'

    Change-Id: I6492717cbb8c42bd096c54b234e54c0857bf7316
    Reviewed-on: http://review.couchbase.org/33408
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    mnunberg committed Feb 10, 2014
Commits on Jan 24, 2014
  1. @mnunberg

    Bump version up to 0.7

    Change-Id: I03bb3c6f0697fe2aea0d65f9da76aafe18be5cc6
    Reviewed-on: http://review.couchbase.org/32810
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    mnunberg committed Jan 24, 2014
Commits on Jan 21, 2014
  1. @mnunberg

    IDEA: Use JDK6

    Change-Id: I390494edaab25e0abcfaa31da9e90e7aebfda3d4
    Reviewed-on: http://review.couchbase.org/32618
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    mnunberg committed Jan 17, 2014
Commits on Jan 18, 2014
  1. @mnunberg

    Refactor SASL auth handling

    Add tests, use proper ByteBuffers
    
    Change-Id: Ie62b909b534d3ceb8144eee5f2c2af87526545ef
    Reviewed-on: http://review.couchbase.org/32617
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    mnunberg committed Jan 17, 2014
  2. @mnunberg

    MCPorts: Display message if bucket does not exist

    Change-Id: I4a19a9879bcc7eb8fe9c10aae3e3002a55beba59
    Reviewed-on: http://review.couchbase.org/32616
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    mnunberg committed Jan 17, 2014
  3. @mnunberg

    Add GET_MCPORTS mock command

    This would be used for libcouchbase' testing with CCCP, to get the
    proper CCCP ports
    
    Change-Id: I8d3cfbfbad776b860fa83ec0a3215fa70a39ce78
    Reviewed-on: http://review.couchbase.org/32499
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    mnunberg committed Jan 15, 2014
  4. @mnunberg

    Add CCCP Support

    This adds CCCP support to the mock itself, with an option for
    enabling/disabling it on a per-bucket, per-server basis
    
    Change-Id: I1fc3978bac8b41d920062fbea1a890265bea3901
    Reviewed-on: http://review.couchbase.org/32469
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    mnunberg committed Jan 15, 2014
Commits on Jan 8, 2014
  1. @mnunberg

    Advertise REST port, not memcached port

    Change-Id: I0f59adaeed7a8faef3267c567418aa2daed7d752
    Reviewed-on: http://review.couchbase.org/31701
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    mnunberg committed Jan 7, 2014
Commits on Nov 26, 2013
  1. @mnunberg @trondn

    Add 'OPFAIL' command

    Allows forcing specific error codes
    
    Change-Id: I2e1bfeafdc68094e914076aa28f541492784b0ba
    Reviewed-on: http://review.couchbase.org/29989
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    mnunberg committed with trondn Nov 1, 2013
  2. @mnunberg @trondn

    Add 'CommandStatus' class for mock handlers

    Change-Id: I18655b09efba34691d0802fc6320bd14ae0dddcb
    Reviewed-on: http://review.couchbase.org/29988
    Tested-by: Mark Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    mnunberg committed with trondn Nov 1, 2013
Commits on Sep 24, 2013
  1. @trondn

    Add support for restful flush

    Change-Id: I48ef2e18cd863a8ea306cb7510b547a9c882e23d
    Reviewed-on: http://review.couchbase.org/29152
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    trondn committed Sep 23, 2013
Commits on Sep 23, 2013
  1. @trondn

    Add support for evict

    Given that the mock don't have a concept of whats in
    memory and whats not we'll always return success if
    the key's in there.
    
    Change-Id: I7797e641dc12186aef5d7ecec6a67fb2392cc231
    Reviewed-on: http://review.couchbase.org/29148
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
    trondn committed Sep 23, 2013
  2. @trondn

    Updates generated from intellij

    Change-Id: I670f8e4a4a0fb6b1546af8f9c731fb4094f81e77
    Reviewed-on: http://review.couchbase.org/29147
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    trondn committed Sep 23, 2013
Commits on Sep 3, 2013
  1. @avsej @trondn

    Return 404 when bucket is not found

    The 'Admin by default' behaviour hid this issue, because for
    administrator authentication is always successful
    
    Change-Id: I294e8f294b3d043933301eee5d2cf11634c93bf9
    Reviewed-on: http://review.couchbase.org/28747
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Sep 3, 2013
Commits on Aug 18, 2013
  1. @trondn

    Invert isUnlocked

    It is easier to read and parse the logic when the variable
    name represent the state (and isn't inverted).
    
    Change-Id: Ic95cc19b9c6bada52805712cebdca9316af6dd45
    Reviewed-on: http://review.couchbase.org/28337
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    trondn committed Aug 18, 2013