Skip to content

アドオンストレージに絡むファイル移動時のクオータ管理#45

Draft
ndnhat1 wants to merge 1 commit into
RCOSDP:mainfrom
lieunguyen-tma:feature/nii_grdm_202603_step4/2.2_quota_calculation_when_move_file
Draft

アドオンストレージに絡むファイル移動時のクオータ管理#45
ndnhat1 wants to merge 1 commit into
RCOSDP:mainfrom
lieunguyen-tma:feature/nii_grdm_202603_step4/2.2_quota_calculation_when_move_file

Conversation

@ndnhat1

@ndnhat1 ndnhat1 commented Jun 24, 2026

Copy link
Copy Markdown

Purpose

Added test cases to verify that storage quota is correctly recalculated for both copy and move operations across folders and storage types.

Changes

Updated Files

  • scripts/grdm.py

    • Changes:
      • Added go_to_profile(page, transition_timeout) function
        • Navigates to the profile page and returns the current storage usage percentage
      • Added expand_folder_if_collapsed(page, folder_name, transition_timeout) function
        • Expands a folder only if it is currently collapsed
  • テスト手順-管理者機能-NIIストレージのクォータ.ipynb

    • Changes:
      • Added the following new test cases for quota recalculation (expanded from 39 to 112 cells):
        • Copy within NII Storage (Alt+drag from source to dest): quota increases because the file remains in both folders
        • Move within NII Storage with replace (drag without Alt, same filename): quota decreases because a larger file is replaced by a smaller one
        • Move from Amazon S3 to NII Storage: quota increases by the moved file size
        • Move from NII Storage to Amazon S3: quota decreases by the moved file size
      • Used newly added go_to_profile and expand_folder_if_collapsed functions for storage usage checks and folder operations
  • 取りまとめ-管理者機能.ipynb

    • Changes:
      • Updated the cell that calls テスト手順-管理者機能-NIIストレージのクォータ.ipynb to propagate the above parameters along with idp_name_2, idp_username_2, and idp_password_2
  • 結合試験-実行.ipynb

    • Changes:
      • Updated the call to 取りまとめ-管理者機能.ipynb to propagate s3_access_key_1, s3_secret_access_key_1, and s3_test_bucket_name_1

Ticket

Custom Test Configuration

  • RDM_REPOSITORY: RCOSDP/RDM-osf.io
  • RDM_BRANCH: feature/nii_grdm_202603_step4/2.2_quota_calculation_when_move_file
  • RDM_MERGE:
  • OSF_IMAGE:
  • EMBER_IMAGE:
  • CAS_IMAGE:
  • MFR_IMAGE:
  • WB_IMAGE:
  • EXCLUDE_NOTEBOOKS:

@tma-hcphat tma-hcphat force-pushed the feature/nii_grdm_202603_step4/2.2_quota_calculation_when_move_file branch from 8e38306 to 507001e Compare June 25, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants