cloudant / python-cloudant

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

Update test server config #498

Closed ricellis closed 3 years ago

ricellis commented 3 years ago

Checklist

Description

Change the test server configuration and allow for overriding the token server used by tests. Fix Cloudant.bluemix() handling of username/account.

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

Run Jenkins with a custom IAM token server.

2. What you expected to happen

Tests to pass.

3. What actually happened

Test failures.

Approach

The Cloudant.bluemix() function was assuming that the username was the account name. This does not work with the new style account credentials where username does not match account name. The URL was already being correctly provided, so just use None as the account name instead.

Schema & API Changes

Security and Privacy

Testing

Test run is on the whole pretty stable except:

  1. replication tests which appear to have exposed a regression in Cloudant. I've temporarily disabled checking on replication progress via scheduler docs on this branch to demonstrate that these changes are good pending resolution of that server side problem.
  2. periodically exceeding the rate limit on the account

Monitoring and Logging