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

Aperta
#958 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
70/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
devops, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
31
Fork
20
Merge medio
2g 4h
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/holodeck

Tutte le issue di NVIDIA/holodeck

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.