theupdateframework / theupdateframework/python-tuf

repository module: Add tests

オープン
#2,228 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
1.7k
フォーク
304
平均マージ
1日 2時間
マージ済み PR(30日)
17

説明

Once #2193 is merged, there is a repository module. The module is not really tested but should be.

It's entirely possible that the module can't really be effectively unit tested (as it's an ABC). But the repository example can be end-to-end tested and maybe even the SimpleRepository class within the example could be unit tested. I think testing the whole repository example is most critical.

I'm not sure what kind of things we should test but at least

  • refreshing a client, downloading a file from the repository
  • making sure the repository metadata actually changes, and that the updated metadata is correct (i.e. client that has metadata version N can successfully update to N+M)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず repository モジュールとその repository の例(SimpleRepository クラスを含む)を読み、次に既存のテスト構成を確認します。クライアントのリフレッシュ、ファイルのダウンロード、リポジトリメタデータのバージョン N から N+M への更新を対象とするテストカバレッジを追加し、更新後のメタデータが正しいことを検証します。

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

評価

技術スタック
python
領域
testing
issue の種類
リファクタリング
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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