Skip to content

HDDS-14222. Reduce duplication in TestObjectPut#9539

Merged
adoroszlai merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-14222
Dec 23, 2025
Merged

HDDS-14222. Reduce duplication in TestObjectPut#9539
adoroszlai merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-14222

Conversation

@adoroszlai
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Refactor TestObjectPut:

  • extract methods to be reused in other tests later
  • use assertKeyContent (moved from integration tests)
  • merge testPutObjectContentLengthForStreaming into testPutObjectWithSignedChunks
  • use headers (member) in methods where separate instance is not necessary
  • testCopyObjectWithInvalidTagCopyDirective was passing despite not getting any exception, fixed by merging into testCopyObjectWithTags
  • reduce other duplication

https://issues.apache.org/jira/browse/HDDS-14222

How was this patch tested?

CI (for slightly different patch):
https://github.com/adoroszlai/ozone/actions/runs/20400095373

@adoroszlai adoroszlai self-assigned this Dec 21, 2025
@adoroszlai adoroszlai added test s3 S3 Gateway code-cleanup Changes that aim to make code better, without changing functionality. labels Dec 21, 2025
@rich7420
Copy link
Copy Markdown
Contributor

@adoroszlai thanks for the patch! LGTM

@adoroszlai adoroszlai requested a review from sodonnel December 23, 2025 09:04
Copy link
Copy Markdown
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for tidying this up.

@adoroszlai adoroszlai merged commit 15f9307 into apache:master Dec 23, 2025
43 checks passed
@adoroszlai adoroszlai deleted the HDDS-14222 branch December 23, 2025 10:46
@adoroszlai
Copy link
Copy Markdown
Contributor Author

Thanks @rich7420, @sodonnel for the review.

echonesis pushed a commit to echonesis/ozone that referenced this pull request Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-cleanup Changes that aim to make code better, without changing functionality. s3 S3 Gateway test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants