Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1985

event change listener is not capturing the push events, Revoke access events, and delete events

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Test Blocker
    • 3.0
    • 3.0
    • iOS
    • Security Level: Public
    • None
    • Jay 49, Jay 51
    • 3

    Description

      NOTE: Error events are working

      Mandatory:

      • CBL : 3.0.0-171
      • SG Config:

      ok: [sg1] => {
      "out.stdout": {
      "adminInterface": "0.0.0.0:4985",
      "compressResponses": false,
      "databases": {
      "db": {
      "allow_conflicts": false,
      "bucket": "travel-sample",
      "delta_sync":

      { "enabled": true }

      ,
      "num_index_replicas": 0,
      "password": "password",
      "server": "http://172.23.106.102:8091",
      "username": "travel-sample"
      }
      },
      "interface": ":4984",
      "logging": {
      "debug":

      { "enabled": true }

      },
      "maxFileDescriptors": 90000,
      "maxIncomingConnections": 0,
      "metricsInterface": ":4986"
      }
      }

      • Steps to Reproduce:
        1. Create 100 docs in CBL, Create docs in SGW
        2. Add Document Replication Change listener for replicator.
        3. Replicate docs push/pull to SGW through one shot replication
        4. Get the events of replicator from listener
        5. Verify the event matches with the expected outcome.
        i. Assert the total event count should be equal to no. of docs replicated
        ii. Assert no. push event are equal to pushed docs
        iii. Assert no. pull event are equal to pulled docs
        iv. Assert there are no error in events
      • Actual Result:
        Pull / Push events are 0
      • Expected Result:
        Pull / Push events should be 100
      • Logs :

      CBL LOGS:
      attached:test_replication_eventing_status.zip file has all logs

      • Github link for the code:

      Testcode
      https://github.com/couchbaselabs/mobile-testkit/blob/master/testsuites/CBLTester/CBL_Functional_tests/TestSetup_FunctionalTests/test_replication_eventing.py#L103

      TestServerapp
      https://github.com/couchbaselabs/mobile-testapps/blob/master/CBLClient/Apps/CBLTestServer-iOS/CBLTestServer-iOS/Server/ReplicatorRequestHandler.swift#L60

      • Pytest Command

       pytest -s -rsx --use-local-testserver --timeout 1800 --liteserv-version=3.0.0-167 --liteserv-host=localhost --liteserv-port=8080 --no-conflicts --enable-file-logging --delta-sync --sync-gateway-version=2.8.2-1 --mode=cc --server-version=7.0.0-4797 --liteserv-platform=ios --create-db-per-test=cbl-test testsuites/CBLTester/CBL_Functional_tests/TestSetup_FunctionalTests -k 'test_replication_eventing_status[10]'
      

      • What is the last build this test passed:3.0.0-156

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              manasa.ghanta Manasa Ghanta (Inactive)
              manasa.ghanta Manasa Ghanta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty