Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Couchbase testcontainers and Docker compose #1671

Open
hantsy opened this issue Dec 4, 2024 · 2 comments
Open

Add support for Couchbase testcontainers and Docker compose #1671

hantsy opened this issue Dec 4, 2024 · 2 comments

Comments

@hantsy
Copy link

hantsy commented Dec 4, 2024

I tried to generate a Spring boot with following config in the start.spring.io.

  • Maven
  • java 21
  • Dependencies: Reactive Web, Spring Data Couchbase Reactive, Testcontainers

In the generated files, the TestcontainersConfiguration is an empty class like this.

@TestConfiguration(proxyBeanMethods = false)
class TestcontainersConfiguration {

}
@hantsy hantsy changed the title Generate a emtpy TestcontainersConfiguration for Couchbase Generate emtpy TestcontainersConfiguration for Couchbase Dec 4, 2024
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 4, 2024
@mhalbritter mhalbritter changed the title Generate emtpy TestcontainersConfiguration for Couchbase Add support for Couchbase testcontainers and Docker compose Dec 4, 2024
@mhalbritter mhalbritter added type: enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 4, 2024
@mhalbritter
Copy link
Contributor

I guess you're asking for code generation support for the CouchbaseContainer?

@hantsy
Copy link
Author

hantsy commented Dec 4, 2024

Yeah, for other dbs it generates the testcontainerConfig with a Testcontainers docker container bean correctly.

A strange thing about couchbase is when I added the CouchbaseServer bean manually, I found it depends on spring.data.couchbase.bucketName property. Without this property, the tests will be failed with a Repository not found when running the repository tests with a @DataCouchbaseTest.

@mhalbritter mhalbritter transferred this issue from spring-io/initializr Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants