Speed up mock instantiation.

Rather than creating a new instance for each time we reset the mock, we
make the instance persist throughout the lifetime of MockEnvironment

Change-Id: I3e63200df47f13cf43bc7bb340d5d55809768e2a
Reviewed-on: http://review.couchbase.org/34017
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Allow operation to modify the config nodes

This should allow the nodes to be modified before bootstrap. It may also
be used to modify the nodes after bootstrap but has not been tested.

Change-Id: I222f0d148ffc0233af9d085c745e05a8ea2c158b
Reviewed-on: http://review.couchbase.org/34000
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Use LCB_CONFIG_HTTP/MCD_PORT rather than hardcoded literals

Change-Id: Iff6a19ef0653526c27eac0528def5d1333b6b2f6
Reviewed-on: http://review.couchbase.org/34001
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Log OS Error on connection failure

Change-Id: I4b4693cf618b31238ca7156760ad7f3db837cc89
Reviewed-on: http://review.couchbase.org/34019
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
cccp: cast body size to unsigned long before printing

Change-Id: Ia08530d3e0ee834f735f7d99195f88ceb701feea
Reviewed-on: http://review.couchbase.org/34020
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Use SetUp() instead of SetUpTestCase

I came upon this problem when I started actually randomizing bootstrap
nodes. In this case we'd hang on a single connection for a long time - I
figured out that the previous test was failing over nodes and there was
nothing to restore them. Using SetUp runs before each test function
rather than SetUpTestCase which runs only before the class itself.

This makes things far quicker and more reliable.

Change-Id: I727cb8faba538a6515dfab41f934c6acebe367a5
Reviewed-on: http://review.couchbase.org/34021
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Randomize bootstrap nodes

For some reason this was never re-implemented

Change-Id: I6a36edf8e327d6efd0ab4f561dfb1d0b6be691dd
Reviewed-on: http://review.couchbase.org/34018
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
bc_cccp: Make it clear we're always using SASL

This change solidifies the existing behavior in that we always do SASL
auth.

Change-Id: I734f6be60f95a5931deb84650d46798072ba49a2
Reviewed-on: http://review.couchbase.org/34022
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reformat README slightly to be 80 column friendly.

Change-Id: I0f4aa0c4d6520f650d553765983732896a7f4dc8
Reviewed-on: http://review.couchbase.org/34116
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reset 'MockEnvironment' for confmon tests

Change-Id: I5638fb9e77a7828112c6d9717ee05cb3a37b7134
Reviewed-on: http://review.couchbase.org/34139
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
Fixed LCB_CNTL constant which was incorrect defined.

Change-Id: I17a4816d8cb6855e37d372ce942388ee25aabb8f
Reviewed-on: http://review.couchbase.org/34140
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
confmon test: don't memset listener

'listener' is not a POD and contains a std::set.

Change-Id: I9e474c21002f1614f7627a65f551440716f30163
Reviewed-on: http://review.couchbase.org/34144
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Fixed ignored "enabled" value to activate/deactivate provider

Change-Id: I9e836e4ff82c45a4642d035d9d80a1df52a119f2
Reviewed-on: http://review.couchbase.org/34169
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Subhashni Balakrishnan <b.subhashni@gmail.com>