redhat-developer / redhat-developer/mapt
[Testing] Implement Automated Testing Framework for MAPT
@fjglira is already working on this.
Since Jul 18, 2025.
- Dominant language
- Go
- Stars
- 24
- Forks
- 36
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 8
Description
Description:
MAPT currently lacks automated testing coverage, which poses a risk to the stability and reliability of the codebase. Implementing a robust testing framework is essential to:
- Detect bugs early in the development cycle.
- Validate configuration decisions without creating real infrastructure.
- Ensure allocation logic works correctly across different scenarios.
- Maintain code quality and prevent regressions.
Proposed solution:
Implement a comprehensive testing framework using Ginkgo and Gomega. The framework will follow a mock-first approach, providing
- Complete AWS service mocking (EC2, SSM, IAM, Pricing)
- No real infrastructure creation during tests
- Realistic test data simulating actual AWS services
Initial Test Coverage:
The initial focus will be on creating tests for the AWS Single Node Cluster (SNC) provisioning logic, which will serve as the foundation for future test coverage. This phase will cover:
- SNC creation with spot instances across multiple regions.
- Multi-architecture support (ARM64, x86_64).
- Spot price optimization and allocation logic.
- Configuration validation (AMI selection, networking, storage).
- Error handling and edge case scenarios.
- Fallback mechanisms (spot to on-demand).
Next Steps
Please review this proposal and provide feedback. Once the approach is approved, I will begin the implementation of the framework and the initial test coverage outlined above.
Contributor guide
No contributing guide indexed for this repository
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.
Assessment
This issue has not been assessed yet.