機関ストレージ (S3CompatSigV4) のファイルプロパティ期待値を修正#33
Merged
yacchin1205 merged 1 commit intoRCOSDP:mainfrom Apr 18, 2026
Merged
Conversation
yacchin1205
added a commit
that referenced
this pull request
Apr 18, 2026
機関ストレージ (S3CompatSigV4) のファイルプロパティ期待値を修正
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
admin-minio CI(機関ストレージ S3CompatSigV4 配下の「ファイル基本操作」テスト)で、ファイルプロパティの「作成日時」検証が失敗していた。これを修正する。
https://github.com/RCOSDP/RDM-e2e-test-nb/actions/runs/24564925651/job/71822555036
機関ストレージは WaterButler レベルでは osfstorage として動作する(管理者画面で機関に S3CompatSigV4 を割り当てても、プロジェクトからのアクセスは osfstorage プロバイダ経由)。そのため、ファイル/フォルダプロパティダイアログの作成日時/更新日時/最終更新者は osfstorage と同じく非空で表示されるのが正しい仕様。テスト側の期待値が「S3互換 = 作成日時=空」と決め打ちしていたため失敗していた。
併せて行うリファクタ
バグ修正にあたり、
scripts/grdm.py内のユーティリティ関数display_property_*_infoが provider 種別ごとの期待値分岐を内部に持っていたことが、今回の取り違え(機関ストレージの表示名'S3CompatSigV4 Storage'が暗黙の else 分岐に吸われた)の構造的原因だった。そのため、以下の責務分離を併せて行う:
scripts/grdm.pyのユーティリティ関数は期待値の決定責務を負わない。操作と検証のみを担い、期待値は呼び出し元から引数で受け取る。Changes
scripts/grdm.py:display_property_*_infoを削除し、期待値を引数で受け取るverify_property_*_infoを追加(プロバイダ分岐ロジックなし)テスト手順-ストレージ共通-ファイル基本操作.ipynb: パラメータにtarget_storage_idを追加、冒頭に「プロパティダイアログの期待値決定」セルを挿入、各検証ステップを新関数の呼び出しに変更し、Markdown セルに期待結果を追記取りまとめ-NIIストレージ,取りまとめ-S3共通,取りまとめ-S3CompatSigV4,取りまとめ-拡張ストレージ-共通試験):テスト手順-ストレージ共通-ファイル基本操作.ipynb呼び出し時にtarget_storage_idを伝搬テスト手順-管理者機能-S3CompatSigV4-機関ストレージ.ipynb: 機関ストレージは実質 osfstorage として動作するためtarget_storage_id='osfstorage'を渡すTicket
n/a
Custom Test Configuration