[Testing] Implement Automated Testing Framework for MAPT

未关闭
#541 3 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 4 天内回复

@fjglira 已经在做这个了。

开始于 2025年7月18日。

评估

这个 Issue 还没有评估数据。

描述

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.

主要语言
Go
星标
25
派生
41
平均合并
5 天 3 小时
30 天内合并 PR
16

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

redhat-developer/mapt 的其他 Issue

查看 redhat-developer/mapt 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。