Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

test(kubernetes): cover the provider's main paths

オープン 初心者向け
#405 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@afsuyadi がすでに取り組んでいます。

2026年10月16日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
kubernetes, python
領域
testing-qa

調査の方向性

tests/providers/kubernetes/test_attribute.py から始めてください。このファイルは1つのポリシーを実行します。フィクスチャ tests/providers/kubernetes/input.yml(ServiceAccount、Role、RoleBinding、Service、Deployment、Pod)を再利用してください。kind が存在しない場合(severity 1 のエラー)、metadata.name のような単純なパス、* を含むパス、属性が存在せず None を返す場合について、それぞれ個別のテストを追加してください。各ケースに、結果の値に対する明示的なアサーションを持つ独自のテストがあり、pytest tests/ と black --line-length 120 が成功した時点で完了です。

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

説明

good first issue hacktoberfest tests
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
スター
170
フォーク
46
平均マージ
1日 20時間
マージ済み PR(30日)
9

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

StackGuardian/tirith のほかの issue

StackGuardian/tirith の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。