testcontainers / testcontainers/testcontainers-python

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

未关闭
#780 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

🚀 enhancement
主要语言
Python
星标
2.3k
派生
386
平均合并
4 小时 40 分钟
30 天内合并 PR
1

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

该 issue 未指定文件或测试入口点。首先检查仓库现有的容器 API 以及链接的 OpenSSH 和 sshd 参考资料,然后定义受支持的发行版变体、身份验证输入和测试,以证明该容器已准备好用于 SSH 协议。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, python
领域
devops, testing-qa
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。