[Testing] Implement Automated Testing Framework for MAPT

Open
#541 3 comments 1 reaction 1 assignee View on GitHub

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

enhancement test

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from redhat-developer/mapt

All issues in redhat-developer/mapt

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.