test(cleanup): the cleaner tests build a real ELBv2 client instead of the fake

オープン 初心者向け
#957 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
aws, go
領域
cloud, testing

調査の方向性

pkg/cleanup/cleanup.go と、現在実際の ELBv2 クライアントを構築している cleaner のテストから始め、WithELBv2Client オプションと awsfake クライアントを調べてください。ロードバランサーを含む VPC について、そのリスナー、ターゲットグループ、ロードバランサーの削除を確認するテストを追加してください。pkg/cleanup のテストを実行し、AWS に接続せずに成功することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

pkg/cleanup has a WithELBv2Client option (cleanup.go:82), but no test uses it. The tests construct a real ELBv2 client and ignore its errors, so the load-balancer cleanup path is never asserted. Since #945 the tests run isolated and cannot reach AWS, but the coverage gap remains.

Acceptance: the cleaner tests inject the awsfake ELBv2 client and, for a VPC with a load balancer, assert that deleteLoadBalancers deletes its listeners, target groups and the load balancer itself.

主要言語
Go
スター
31
フォーク
20
平均マージ
2日 4時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

NVIDIA/holodeck のほかの issue

NVIDIA/holodeck の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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