testcontainers / testcontainers/testcontainers-java
[Enhancement]: Modules use deprecated API calls
Open
Nobody has claimed this yet.
modules/couchbase
type/enhancement
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
Module
Core
Proposal
While migrating the .NET modules, I compared some configurations with the Java implementation and noticed a few differences and deprecated APIs in the Java modules for MongoDB and Couchbase:
- MongoDB
isMasterdeprecated: https://www.mongodb.com/docs/v4.0/reference/command/isMaster/. I think it should be{hello:1}).isWritablePrimaryinstead. - HTTP request POST /settings/web
portvalue should beSAME. - HTTP request POST /pools/default/buckets
ramQuotaMBshould beramQuota. - HTTP endpoint
/pools/default/b/does officially not exist anymore. I think it should be GET /pools/default/buckets/. The response body is a bit different. The list of services are innodes/[0]/services.servicesis an arry no object anymore. - The time when POST /settings/web is important, it starts provisioning a new single-node cluster which may interfere with other HTTP configuration calls.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by locating the Java MongoDB and Couchbase modules and comparing their configuration requests with the linked API documentation. Done means the deprecated MongoDB call and the listed Couchbase endpoints, parameter names, response handling, and request ordering are updated consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mongodb
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100