cloudant / python-cloudant

A Python library for Cloudant and CouchDB
Apache License 2.0
163 stars 55 forks source link

Removed data_size from view info assertion #459

Closed ricellis closed 4 years ago

ricellis commented 4 years ago

The data_size field is no longer present in CouchDB 3.x so remove it from the assertion for compatibility.

Checklist

Description

Removed data_size from view info assertion

1. Steps to reproduce and the simplest code sample possible to demonstrate the issue

2. What you expected to happen

Test to pass

3. What actually happened

Assertion failure:

{'vie[33 chars]se, 'waiting_clients': 0, 'waiting_commit': Fa[104 chars]001'} != {'vie[33 chars]se, 'update_seq': 0, 'waiting_clients': 0, 'wa[120 chars]001'}
  {'name': 'ddoc001',
   'view_index': {'compact_running': False,
+                 'data_size': 0,
                  'language': 'javascript',
                  'purge_seq': 0,
                  'update_seq': 0,
                  'updater_running': False,
                  'waiting_clients': 0,
                  'waiting_commit': False}}

Approach

Remove the data_size element from the view info before asserting as it is no longer present in CouchDB 3.

Schema & API Changes

Security and Privacy

Testing

Monitoring and Logging