couchbase / couchbase-lite-net

A lightweight, document-oriented (NoSQL), syncable database engine for .NET
http://developer.couchbase.com/mobile/
Apache License 2.0
439 stars 126 forks source link

401 error with test_replication_configuration_with_headers #974

Closed raghusarangapani closed 6 years ago

raghusarangapani commented 6 years ago

Builds

.net - 2.0.0-b0557, CBS - 5.5.0-1924, SG - 2.0.0-810

Test ran

pytest -rsx -s --mode=cc --server-version=5.5.0-1924 --sync-gateway-version=2.0.0-810 --liteserv-platform=net-msft --liteserv-host=192.168.33.21 --liteserv-port=55555 --xattrs --create-db-per-suite="test_db" --create-db-per-test=pull-test testsuites/CBLTester/CBL_Functional_tests/test_replication.py -k test_replication_configuration_with_headers --skip-provisioning --liteserv-version=2.0.0-b0557

Actual

Test fails with

Exception: ('Error while replicating', 'LiteCore.LiteCoreException: LiteCoreException (WebSocketDomain / 401): Unauthorized')

The right values seem to be set for replication configuration

screen shot 2018-02-21 at 5 42 39 pm

Expected

Replication should work with SG session cookie

borrrden commented 6 years ago

This will be blocked, in spirit, https://github.com/couchbase/couchbase-lite-core/issues/418 because without that fix the automated testing is freaking out for builds.

borrrden commented 6 years ago

That being said, I found the issue and it is a simple fix.