- 
                Notifications
    
You must be signed in to change notification settings  - Fork 252
 
CLDSRV-741: Reorganize some cold storage tests #5953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
          Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@               Coverage Diff                @@
##           development/9.0    #5953   +/-   ##
================================================
  Coverage            83.31%   83.31%           
================================================
  Files                  189      189           
  Lines                12147    12147           
================================================
  Hits                 10120    10120           
  Misses                2027     2027           
 Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reorganizes cold storage tests by replacing the condition based on S3_END_TO_END environment variable with checking for cold storage feature presence using config.hasColdStorage. The changes enable header validation tests to run even in S3C environments while properly separating cold storage-specific functionality.
- Replaced 
process.env.S3_END_TO_ENDconditions withconfig.hasColdStoragechecks - Moved header validation tests outside of cold storage conditional blocks
 - Reorganized test structure to separate general validation from cold storage-specific tests
 
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description | 
|---|---|
| putVersion.js | Reorganized PUT object version tests to separate header validation from cold storage functionality | 
| mpuVersion.js | Reorganized multipart upload version tests with same pattern as putVersion.js | 
| copyPart.js | Updated cold storage test conditions to use config-based feature detection | 
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
dcd6575    to
    f1df2a9      
    Compare
  
    de2bbb1    to
    8d966fb      
    Compare
  
    To replace condition on S3_END_TO_END with by cold storage condition To run header validation tests even in S3C No new tests, just reorganization
f1df2a9    to
    a817615      
    Compare
  
    
          Hello bourgoismickael,My role is to assist you with the merge of this Available options
 Available commands
 Status report is not available.  | 
    
          Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command: Alternatively, the   | 
    
| 
           /approve  | 
    
          ConflictA conflict has been raised during the creation of I have not created the integration branch. Here are the steps to resolve this conflict:  git fetch
 git checkout -B w/9.1/improvement/CLDSRV-741-tests-restore origin/development/9.1
 git merge origin/improvement/CLDSRV-741-tests-restore
 # <intense conflict resolution>
 git commit
 git push -u origin w/9.1/improvement/CLDSRV-741-tests-restoreThe following options are set: approve  | 
    
          Build failedThe build for commit did not succeed in branch w/9.1/improvement/CLDSRV-741-tests-restore The following options are set: approve  | 
    
| 
           /create_pull_requests  | 
    
          Integration data createdI have created the integration data for the additional destination branches. 
 The following branches will NOT be impacted: 
 Follow integration pull requests if you would like to be notified of The following options are set: approve, create_pull_requests  | 
    
          Build failedThe build for commit did not succeed in branch w/9.1/improvement/CLDSRV-741-tests-restore The following options are set: approve, create_pull_requests  | 
    
          In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in: 
 The following branches will NOT be impacted: 
 There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request. 
 If you need this pull request to be removed from the queue, please contact a The following options are set: approve, create_pull_requests  | 
    
          Queue build failedThe corresponding build for the queue failed: 
 Remove the pull request from the queue
  | 
    
| 
          
 I have successfully merged the changeset of this pull request 
 The following branches have NOT changed: 
 Please check the status of the associated issue CLDSRV-741. Goodbye bourgoismickael.  | 
    
To replace condition on S3_END_TO_END with by cold storage feature presence
To run header validation tests even in S3C
No new tests, just reorganization
Test
should fail if version id is invaliddoesn't need tofakeMetadataArchive, it's been simplified.The big diff is indentation