test(aws): createSecurityGroup tests call real IP-echo services

オープン
#958 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

Start with create.go:373, cluster.go:226, and the tests at create_test.go:519, :564, and :584 to trace how utils.GetIPAddress() is used. Add a provider resolver option and use it in those tests, then update pkg/testutil/aws_isolation.go to remove the IP-echo hosts from NO_PROXY; done when these tests use the injected resolver without real HTTP calls.

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

説明

createSecurityGroup (create.go:373) and getCallerIPRanges (cluster.go:226) call utils.GetIPAddress(), which queries api.ipify.org, ifconfig.me and icanhazip.com. The provider has no seam to inject a resolver, so the tests at create_test.go:519, :564 and :584 make real HTTP calls whenever the network allows them, and #945's test isolation has to exempt those hosts from its closed proxy.

Acceptance: a resolver option on the provider, used by these tests. Then drop the IP-echo hosts from NO_PROXY in pkg/testutil/aws_isolation.go.

主要言語
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 を短くまとめたダイジェスト。