globocom / huskyCI

Performing security tests inside your CI
https://huskyci.opensource.globo.com
BSD 3-Clause "New" or "Revised" License
572 stars 137 forks source link

Adding Integration Tests for MongoDB #579

Open fguisso opened 11 months ago

fguisso commented 11 months ago

πŸš€ Problem Description: Integration tests for MongoDB are not currently included in our CI/CD pipeline and local testing. These tests are crucial for validating the behavior of our application with a MongoDB database.

πŸ” Steps to Reproduce: N/A

🎯 Expected Behavior: Implement a test suite for MongoDB integration that can be executed in any CI/CD platform and during local development. These tests should involve provisioning a MongoDB instance, running query-focused tests, and then tearing down the MongoDB instance.

🏭 Current Behavior: Our testing setup lacks MongoDB integration tests, which can lead to potential issues going unnoticed until later stages of development.

πŸ› οΈ Proposed Changes:

πŸ”— Dependencies: Access to a MongoDB instance or the ability to set up a MongoDB container. The MongoDB test suite or test framework for query-focused tests.

πŸ§ͺ Testing: Test the MongoDB integration test suite to ensure it correctly provisions, tests, and cleans up the MongoDB instance in various environments, including CI/CD platforms and local development setups.

πŸ“– Documentation Updates: Update the project's documentation to inform contributors and maintainers about the new MongoDB integration tests and how to run them in different environments.

🌟 Expected Impact: Adding MongoDB integration tests will enhance the testing coverage, ensuring that our application's MongoDB interactions work as expected, regardless of the environment in which the tests are run.

ℹ️ Additional Information: Provide guidance on configuring MongoDB connections for testing in different environments. Encourage contributors to run these tests locally before making changes that involve MongoDB interactions.

πŸ“ Note: Ensure that the MongoDB integration tests are designed to work across various CI/CD platforms and can be executed locally without platform-specific configurations.

michelaquino commented 11 months ago

@fguisso I will work on this issue.

michelaquino commented 11 months ago

Hi @fguisso, I opened the PR to close this issue. Let me know if something needs to be adjusted.