test(kubernetes): cover the provider's main paths
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- kubernetes, python
- 领域
- testing-qa
调研方向
从 tests/providers/kubernetes/test_attribute.py 开始,它运行一个策略,并复用 tests/providers/kubernetes/input.yml 这个夹具(ServiceAccount、Role、RoleBinding、Service、Deployment、Pod)。为缺失的 kind(severity 为 1 的错误)、像 metadata.name 这样的普通路径、带 * 的路径,以及返回 None 的缺失属性,分别添加独立的测试。每个用例都有自己的测试,并对结果值进行明确的断言,同时 pytest tests/ 和 black --line-length 120 均通过,即为完成。
由索引模型根据 Issue 内容生成。
描述
Problem
tests/providers/kubernetes/test_attribute.py runs one policy. Nothing covers a kind that is absent, a path without *, or an attribute missing from a resource.
What to change
Tests only, reusing tests/providers/kubernetes/input.yml (it holds a ServiceAccount, Role, RoleBinding, Service, Deployment and Pod). Add cases for:
- kind not found (severity 1 error)
- a plain path such as
metadata.name - a
*path - a missing attribute (value
None)
Done when
Each case has its own test with an explicit assertion on the result values.
Comment to claim this issue and wait to be assigned. Unclaimed or inactive for 3 days, it returns to the pool. Run pytest tests/ and black --line-length 120 before opening the PR.
- 主要语言
- Python
- 星标
- 176
- 派生
- 54
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 9
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
StackGuardian/tirith 的其他 Issue
-
chore: remove stale TODOs and commented-out code可能已有人在做 @krishna2707 于 3 天前认领。 未关闭chore good first issue hacktoberfest
难度 1/5 1 小时以内 新手友好度 82/100
StackGuardian/tirith#408 · 1 条评论 ·
维护者通常 1 天内回复
-
test(evaluators): edge cases for `Equals` and `NotEquals`可能已有人在做 @Ankit-cs 于 2 天前认领。 未关闭good first issue hacktoberfest tests
难度 2/5 1-3 小时 新手友好度 85/100
StackGuardian/tirith#406 ·
维护者通常 1 天内回复
-
fix(kubernetes): missing `kubernetes_kind` or `attribute_path` errors are dropped可能已有人在做 @Ankit-cs 于 1 天前认领。 未关闭bug good first issue hacktoberfest
难度 2/5 1-3 小时 新手友好度 78/100
StackGuardian/tirith#404 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
good first issue hacktoberfest tests
难度 1/5 1 小时以内 新手友好度 92/100
StackGuardian/tirith#403 ·
维护者通常 1 天内回复
-
research
难度 1/5 1-3 小时 新手友好度 78/100
StackGuardian/tirith#356 ·
维护者通常 1 天内回复
查看 StackGuardian/tirith 的全部 Issue
相似的 Issue
-
bug needs-triage priority:medium
难度 2/5 1-3 小时 新手友好度 86/100
yeongseon/azure-functions-logging-python#583 ·
维护者通常 1 天内回复
-
documentation needs-triage priority:medium
难度 2/5 1-3 小时 新手友好度 85/100
yeongseon/azure-functions-validation-python#546 ·
维护者通常 1 天内回复
-
PHP workflow streaming requests buffer the full SSE response可能已有人在做 @Winoren 今天认领。 未关闭review: medium
难度 2/5 1-3 小时 新手友好度 84/100
langgenius/dify#44270 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
P4: low
难度 2/5 1-3 小时 新手友好度 82/100
jeffknupp/association#523 ·
-
bug help wanted
难度 2/5 1-3 小时 新手友好度 65/100
DarkStarSystems/pcons#229 ·
维护者通常 1 天内回复