History log of /5.5.2/kv_engine/tests/testapp/testapp.cc (Results 1 - 25 of 352)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.2, v6.6.3, v7.0.1, v7.0.0, v6.6.2, v6.5.2, v6.6.1, v6.0.5, v6.6.0, v6.5.1, v6.0.4, v6.5.0, v6.0.3, v5.5.4, v5.5.5, v5.5.6, v6.0.1, v5.5.3, v6.0.0, v5.1.3, v5.5.2, v5.5.1, v5.1.2
# 9d912744 27-Jun-2018 Dave Rigby <daver@couchbase.com>

MB-30278: Subdoc regression tests for backtick un-escaping issue

Regression tests for how KV-Engine subdoc API uses subjson to parse
backticked escaped paths.

Change-Id: I42a144

MB-30278: Subdoc regression tests for backtick un-escaping issue

Regression tests for how KV-Engine subdoc API uses subjson to parse
backticked escaped paths.

Change-Id: I42a144ba3f37c38d3e4ca0f8990652cda85011c2
Reviewed-on: http://review.couchbase.org/96259
Well-Formed: Build Bot <build@couchbase.com>
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# eebaff62 20-Jun-2018 Trond Norbye <trond.norbye@gmail.com>

MB-30183: Create audit records for X.509 authentication

Create an audit event as part of authentication with SSL
certificates

Change-Id: I64b02a9ee6bf7623da379b4b43c4467dd7559ab

MB-30183: Create audit records for X.509 authentication

Create an audit event as part of authentication with SSL
certificates

Change-Id: I64b02a9ee6bf7623da379b4b43c4467dd7559abf
Reviewed-on: http://review.couchbase.org/95862
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Well-Formed: Build Bot <build@couchbase.com>

show more ...


Revision tags: v5.1.1
# 48891653 24-Apr-2018 Trond Norbye <trond.norbye@gmail.com>

MB-29046: Testapp: allow for running memcached under perf

If RUN_UNDER_PERF is set in environment memcached is
started like:

perf record --call-graph dwarf ./memcached -C con

MB-29046: Testapp: allow for running memcached under perf

If RUN_UNDER_PERF is set in environment memcached is
started like:

perf record --call-graph dwarf ./memcached -C config

This makes it easier to use our unit tests to collect
perf data from the core state machinery

Change-Id: I5cffad0d5aff947feab085d349d43a3efac7fb9f
Reviewed-on: http://review.couchbase.org/93160
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>

show more ...


# e45a719a 24-Apr-2018 Trond Norbye <trond.norbye@gmail.com>

MB-29046: Don't crash trying to fetch non-existing response codes

There is no point of transferring the count of the response
codes not used (this just bloat the amout of data being

MB-29046: Don't crash trying to fetch non-existing response codes

There is no point of transferring the count of the response
codes not used (this just bloat the amout of data being
sent over the wire). If it's not part of the payload, the
number of times its been used is 0.

(This change speeds up the GetSet unit test using Mcbp from
903ms to 690ms, and reduced the StatsCommandContext from
being one of the biggest consumers in my perf output to be
on par with the other CommandContext handlers)

Change-Id: I52c7d2c66133a5aa48dcc4e4116973f7d3c0bf4f
Reviewed-on: http://review.couchbase.org/93159
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>

show more ...


# b489b448 17-Apr-2018 Trond Norbye <trond.norbye@gmail.com>

MB-29283: Release allocated memory for auth failures in test code

The sasl_auth method in testapp did not release allocated resources
if it failed to start sasl authentication.

MB-29283: Release allocated memory for auth failures in test code

The sasl_auth method in testapp did not release allocated resources
if it failed to start sasl authentication.

Change-Id: Iad02be895d55ad3268347d0de08075d46be8ad0f
Reviewed-on: http://review.couchbase.org/92835
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# d92cc586 27-Mar-2018 Sriram Ganesan <sriram@couchbase.com>

MB-28777: Provide a min_compression_ratio configuration parameter

If there isn't much difference between sizes of compressed and
uncompressed data, then decompressing the data every time

MB-28777: Provide a min_compression_ratio configuration parameter

If there isn't much difference between sizes of compressed and
uncompressed data, then decompressing the data every time for
a client would outweigh the cost of storing the data as
compressed as there is no perceivable benefit in space savings

Change-Id: Ic6d735213faa00dfc2331d577f4cee80b46e715e
Reviewed-on: http://review.couchbase.org/91769
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 0de3f64e 19-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

MB-28762: Fix weird overload with const char* and std::string

testapp.h defined:

void store_object(const char *key, const char *value, bool validate = false);

and testapp_s

MB-28762: Fix weird overload with const char* and std::string

testapp.h defined:

void store_object(const char *key, const char *value, bool validate = false);

and testapp_subdoc_common.h defined:

void store_object(const std::string& key,
const std::string& value,
bool compress);

These two functions operate quite differently depending on the third
parameter provided, and the code calling these methods had a wild
mix of using character arrays or std::strings, but the comments
calling them indicated that the other method was the one supposed
to be called.

Change-Id: Ie529cfeb24d60647c3c3edfeb3fb03dc4444be20
Reviewed-on: http://review.couchbase.org/91181
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 7069f5e4 19-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: Get rid of compress_document

Use cb::compression directly and get rid of explicit memory
management via cb_free

Change-Id: Ide0500b7ca5fa1f26a04e769e8ed97afc19fceed

Cleanup: Get rid of compress_document

Use cb::compression directly and get rid of explicit memory
management via cb_free

Change-Id: Ide0500b7ca5fa1f26a04e769e8ed97afc19fceed
Reviewed-on: http://review.couchbase.org/91163
Reviewed-by: Jim Walker <jim@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 60eb7512 18-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Refactor: use store_object_w_datatype to store objects

Change-Id: Ia87324be9610ed3a27bd5cc7c8e79b741c7feaa4
Reviewed-on: http://review.couchbase.org/91156
Tested-by: Build Bot <build

Refactor: use store_object_w_datatype to store objects

Change-Id: Ia87324be9610ed3a27bd5cc7c8e79b741c7feaa4
Reviewed-on: http://review.couchbase.org/91156
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>

show more ...


# 081a9f28 18-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: Fix store_object_w_datatype to work with more than compressed

And add support to store flags and expiration time.

Change-Id: Ia8246ffa633899e0b882c16ab67e3e6f4552443e
R

Cleanup: Fix store_object_w_datatype to work with more than compressed

And add support to store flags and expiration time.

Change-Id: Ia8246ffa633899e0b882c16ab67e3e6f4552443e
Reviewed-on: http://review.couchbase.org/91150
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>

show more ...


# 98c38541 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: Remove duplicate reconfigure method

Change-Id: Id2e6f7ba1166ebb17a5d4bc66e20c24c92d68f6e
Reviewed-on: http://review.couchbase.org/91081
Reviewed-by: Jim Walker <jim@couchbas

Cleanup: Remove duplicate reconfigure method

Change-Id: Id2e6f7ba1166ebb17a5d4bc66e20c24c92d68f6e
Reviewed-on: http://review.couchbase.org/91081
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 0e41ff85 17-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: make TestappTest::getConnection() predictable

getConnection() used to return whatever was stored in "front" of
the connection map, which could be PLAIN IPv4/6 or SSL IPv4/6.

Cleanup: make TestappTest::getConnection() predictable

getConnection() used to return whatever was stored in "front" of
the connection map, which could be PLAIN IPv4/6 or SSL IPv4/6.
This caused some tests to fail (cert test when trying to set
certificate was mandatory) and the front of the map contained
an ssl connection.

The TestappTest is not parameterized with ipv4/6 and plain/ssl
so it should always just use a plain IPv4 connection (and let
people require a connection of the required type if they need
something else)

Change-Id: I2c5f294e09198273973529354bae5d44d7c4218f
Reviewed-on: http://review.couchbase.org/91144
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 2083b14b 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: Simplify loadJsonFile

Change-Id: I0001b4d40bf3a65b8699662714d9fa7915af683b
Reviewed-on: http://review.couchbase.org/91088
Reviewed-by: Jim Walker <jim@couchbase.com>
Tes

Cleanup: Simplify loadJsonFile

Change-Id: I0001b4d40bf3a65b8699662714d9fa7915af683b
Reviewed-on: http://review.couchbase.org/91088
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 733ab202 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Remove dead code in #ifdef WIN32

Change-Id: I0bb162d55136f1c2b5b30ae26a16bc7ae7afd5c2
Reviewed-on: http://review.couchbase.org/91087
Reviewed-by: Daniel Owen <owend@couchbase.com>

Remove dead code in #ifdef WIN32

Change-Id: I0bb162d55136f1c2b5b30ae26a16bc7ae7afd5c2
Reviewed-on: http://review.couchbase.org/91087
Reviewed-by: Daniel Owen <owend@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# d95204d0 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Use std::this_thread::sleep_for instead of #ifdef and usleep

Change-Id: I3a935d9ba233704e3ec4e8f6f635af8e38deab94
Reviewed-on: http://review.couchbase.org/91086
Reviewed-by: Daniel O

Use std::this_thread::sleep_for instead of #ifdef and usleep

Change-Id: I3a935d9ba233704e3ec4e8f6f635af8e38deab94
Reviewed-on: http://review.couchbase.org/91086
Reviewed-by: Daniel Owen <owend@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 65ae805a 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: Simplify phase_get_errno

Change-Id: I2eebc6e2e14516ed9950295814e9e97bb66868d7
Reviewed-on: http://review.couchbase.org/91084
Reviewed-by: Daniel Owen <owend@couchbase.com>

Cleanup: Simplify phase_get_errno

Change-Id: I2eebc6e2e14516ed9950295814e9e97bb66868d7
Reviewed-on: http://review.couchbase.org/91084
Reviewed-by: Daniel Owen <owend@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# e5e9acd7 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: remove unused methods from testapp

Change-Id: I6f3646b0f0dd8974e697093a6baaba1419c71552
Reviewed-on: http://review.couchbase.org/91080
Reviewed-by: Dave Rigby <daver@couchba

Cleanup: remove unused methods from testapp

Change-Id: I6f3646b0f0dd8974e697093a6baaba1419c71552
Reviewed-on: http://review.couchbase.org/91080
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 0fee3f09 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: pass const std::string by reference to setCompressionMode

Change-Id: I6631ba265d5a5ab887733854e12525dfcbe41911
Reviewed-on: http://review.couchbase.org/91079
Reviewed-by: Ti

Cleanup: pass const std::string by reference to setCompressionMode

Change-Id: I6631ba265d5a5ab887733854e12525dfcbe41911
Reviewed-on: http://review.couchbase.org/91079
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 921fc753 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: use unique_cJSON_ptr for generate_config in testapp

Change-Id: I00907da576f882c9cfd3cdb1c895097a52fb922a
Reviewed-on: http://review.couchbase.org/91078
Reviewed-by: Tim Brad

Cleanup: use unique_cJSON_ptr for generate_config in testapp

Change-Id: I00907da576f882c9cfd3cdb1c895097a52fb922a
Reviewed-on: http://review.couchbase.org/91078
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# da9c2175 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: throw exception from write_config_to_file

The change also caused a cleanup by using unique_cJSON_ptr
and std::string for one of the config reload test

Change-Id: I3e42c

Cleanup: throw exception from write_config_to_file

The change also caused a cleanup by using unique_cJSON_ptr
and std::string for one of the config reload test

Change-Id: I3e42c8e86151d87ede63190ac51683dfbbf7fb95
Reviewed-on: http://review.couchbase.org/91077
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# e08b1278 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: Use cb::io::mktemp instead of cb_mktemp in testapp

Change-Id: Ida4d79426bf300b6310ef35cae80504eab2f6a3d
Reviewed-on: http://review.couchbase.org/91076
Reviewed-by: Dave Rigb

Cleanup: Use cb::io::mktemp instead of cb_mktemp in testapp

Change-Id: Ida4d79426bf300b6310ef35cae80504eab2f6a3d
Reviewed-on: http://review.couchbase.org/91076
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# ef40d791 16-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: use cb_getpid instead of getpid in testapp

This remove the local #ifdef WIN32

Change-Id: I01c29747ac3ae39d8ba3928574a320b01aae5024
Reviewed-on: http://review.couchbase.

Cleanup: use cb_getpid instead of getpid in testapp

This remove the local #ifdef WIN32

Change-Id: I01c29747ac3ae39d8ba3928574a320b01aae5024
Reviewed-on: http://review.couchbase.org/91075
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# ab711953 07-Mar-2018 Tim Bradgate <tim.bradgate@couchbase.com>

MB-27661 [11/n]: Fix MSVC warnings - C4267

This patch addresses the following generated warnings:

C4267 - var : conversion from 'size_t' to 'type', possible loss of data

MB-27661 [11/n]: Fix MSVC warnings - C4267

This patch addresses the following generated warnings:

C4267 - var : conversion from 'size_t' to 'type', possible loss of data
The compiler detected a conversion from size_t to a smaller type.

This is the second and final commit addressing this error.

Change-Id: If23806c43a2024df2d4103f1b40cbd790957f1f0
Reviewed-on: http://review.couchbase.org/90604
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 25358980 08-Mar-2018 Tim Bradgate <tim.bradgate@couchbase.com>

MB-27661 [Refactor]: Use wrapper methods for socket operations

Replace all current usages of socket methods with the alternatives
from platform.

Change-Id: If163eaa41a090548c2ce

MB-27661 [Refactor]: Use wrapper methods for socket operations

Replace all current usages of socket methods with the alternatives
from platform.

Change-Id: If163eaa41a090548c2ce13e5e2111ddaa6e1f754
Reviewed-on: http://review.couchbase.org/90700
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 73d03ab0 09-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Bulk update features in unit tests

Instead of running multiple hello's enabling one feature at
a time build up a vector of the features to enable and enable
all of them in a single s

Bulk update features in unit tests

Instead of running multiple hello's enabling one feature at
a time build up a vector of the features to enable and enable
all of them in a single shot.

Change-Id: I55cd1e39c95bcd0dbb5db8d003edf33848d37061
Reviewed-on: http://review.couchbase.org/90716
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


12345678910>>...15