[Testing] Implement Automated Testing Framework for MAPT

オープン
#541 コメント 3 件 リアクション 1 件 担当者 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時間
マージ済み PR(30日)
16

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

redhat-developer/mapt のほかの issue

redhat-developer/mapt の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。