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

Integration Test for PostgreSQL and Manticore using Docker #93

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

PavelShilin89
Copy link
Contributor

Type of Change:

  • Enhancement - Integration Test for PostgreSQL and Manticore using Docker

Description of the Change:

  • Integration Test for PostgreSQL and Manticore using Docker

This test validates the correct interaction between PostgreSQL and Manticore using Docker containers. The following steps are performed during the test:

  1. Docker Daemon Initialization: The Docker environment is initialized using the dockerd command, ensuring the Docker API is available for container management.
  2. PostgreSQL Container Launch:
    • A PostgreSQL database is initialized using a Docker image.
    • The SQL script (init.sql) is loaded and executed, creating tables and inserting test data.
    • The readiness of PostgreSQL to accept connections is verified.
  3. Manticore Container Launch:
    • The Manticore container is configured to index data from PostgreSQL using the provided configuration file.
    • The readiness of Manticore to accept connections is checked after startup.
  4. Indexing Verification:
    • Manticore is queried via the MySQL protocol to ensure that the data from the PostgreSQL table has been correctly indexed and is available for search.

The test concludes with a successful verification that data from PostgreSQL is present in Manticore’s index.

Related Issue (provide the link):
#88

@PavelShilin89 PavelShilin89 linked an issue Sep 11, 2024 that may be closed by this pull request
2 tasks
@PavelShilin89 PavelShilin89 mentioned this pull request Sep 11, 2024
2 tasks
@PavelShilin89 PavelShilin89 requested review from sanikolaev and removed request for djklim87 September 11, 2024 21:15
@PavelShilin89
Copy link
Contributor Author

@sanikolaev please verify implementation and approve for merger.

Copy link
Collaborator

@sanikolaev sanikolaev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need the .rep files?

@PavelShilin89 PavelShilin89 merged commit 141f7d8 into master Sep 17, 2024
1 check passed
@PavelShilin89 PavelShilin89 deleted the test/postgres-docker branch September 17, 2024 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test Postgres + Docker
2 participants