[Testing] Implement Automated Testing Framework for MAPT
Maintainers usually reply within 3 days
@fjglira is already working on this.
Since Jul 18, 2025.
Assessment
This issue has not been assessed yet.
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.
- Dominant language
- Go
- Stars
- 26
- Forks
- 41
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 27
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from redhat-developer/mapt
-
kind: v0.14.7 control-plane readiness block reads the wrong kubeconfig path (provision always fails)Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
redhat-developer/mapt#997 ·
Maintainers usually reply within 3 days
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH keyMay be free again @abdulazeem-tk4vr claimed this 167 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
redhat-developer/mapt#817 · 12 comments ·
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
redhat-developer/mapt#991 ·
Maintainers usually reply within 3 days
-
enhancement provider/AWS provider/IBMCLOUD target/openshift-snc
Difficulty 4/5 3-5 days Newbie friendliness 57/100
redhat-developer/mapt#990 ·
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
redhat-developer/mapt#974 ·
Maintainers usually reply within 3 days
All issues in redhat-developer/mapt
Similar issues
-
effort:s impact:low raised-by:reviewer risk:low
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
medici-finance/assay#8050 · 1 comment ·
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
factory:subtask
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
enhancement needs-triage service/licensemanager
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hashicorp/terraform-provider-aws#51503 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100