testcontainers / testcontainers/testcontainers-python

New Container: sshd container with different variant `ubuntu, fedora, archlinux, ...`, with ability to preset a lot of authetication related value

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

Nessuno ha ancora preso questa issue.

🚀 enhancement
Lingua principale
Python
Stelle
2.3k
Fork
386
Merge medio
4h 40m
PR unite (30g)
1

Descrizione

What is the new container you'd like to have?

If possible just OS container like ubuntu, fedora, ...

But with sshd service enabled, and the authentication or users is preset by the provided argument to the Container class.

This class of container can significantly ease the testing process for user who are developing SSH-protocol related application.

Today, too many utility are depending on SSH protocol for secure connection (like git, rsync, sshfs, ...), especially in Unix/Linux world.

Why not just use a generic container for this?

Because sshd setup and configuration is relatively complicated, if all the time, user have to manually configure it, it will waste user a lot of time, and it is buggy especially apply it in a testing scenario.

There is different way of authentication and setting for sshd running in different distro.
If this work is done by the user, the user has to manually copy and do string editing in the configuration file for sshd. If exception arise, user will be very difficult to figure out whether the error is from their testcase or the container itself.

And SSHD is a different protocol to HTTP.

Other references:

Include any other relevant reading material about the enhancement.

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

L'issue non indica alcun file né alcun punto di ingresso dei test. Inizia esaminando le API dei container esistenti nel repository e i riferimenti collegati a OpenSSH e sshd, quindi definisci le varianti di distribuzione supportate, gli input di autenticazione e i test che dimostrino che il container è pronto per l'uso con il protocollo SSH.

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

Valutazione

Stack tecnologico
docker, python
Ambito
devops, testing-qa
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.