Skip to content

CAMEL-23117: Add test infrastructure for PostgreSQL with pgvector extension#21975

Merged
gnodet merged 2 commits intomainfrom
camel-23117-postgres-vector-infra
Mar 13, 2026
Merged

CAMEL-23117: Add test infrastructure for PostgreSQL with pgvector extension#21975
gnodet merged 2 commits intomainfrom
camel-23117-postgres-vector-infra

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented Mar 13, 2026

Summary

  • Extends the existing camel-test-infra-postgres module to support PostgreSQL with the pgvector extension
  • Adds PostgresVectorLocalContainerInfraService, PostgresVectorLocalContainerService, and PostgresVectorServiceFactory classes using the pgvector/pgvector:pg17 Docker image
  • Adds POSTGRES_VECTOR_CONTAINER property constant and corresponding postgres.vector.container entry in container.properties

Usage

@RegisterExtension
static PostgresService service = PostgresVectorServiceFactory.createService();

Test plan

  • Module builds successfully with mvn install -B -pl test-infra/camel-test-infra-postgres -DskipTests
  • Verify pgvector container starts and exposes JDBC URL, username, password, and port
  • Verify the pgvector extension is available via CREATE EXTENSION vector

…ension

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet added the enhancement New feature or request label Mar 13, 2026
@gnodet gnodet marked this pull request as ready for review March 13, 2026 11:15
@gnodet gnodet merged commit 39925ee into main Mar 13, 2026
4 checks passed
@gnodet gnodet deleted the camel-23117-postgres-vector-infra branch March 20, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants