Skip to content

chore: add checksum validation on x_emulator_crc32c and x_emulator_md5 fields#753

Merged
krishnamd-jkp merged 2 commits intogoogleapis:mainfrom
krishnamd-jkp:add_more_checksum_validations
Apr 16, 2026
Merged

chore: add checksum validation on x_emulator_crc32c and x_emulator_md5 fields#753
krishnamd-jkp merged 2 commits intogoogleapis:mainfrom
krishnamd-jkp:add_more_checksum_validations

Conversation

@krishnamd-jkp
Copy link
Copy Markdown
Contributor

@krishnamd-jkp krishnamd-jkp commented Dec 18, 2025

  • Tests pass
  • Appropriate changes to README are included in PR

@krishnamd-jkp krishnamd-jkp requested a review from a team December 18, 2025 13:58
Comment thread gcs/object.py
if len(cs.md5_hash) != 0 and actual_md5Hash != cs.md5_hash:
testbench.error.mismatch(
"md5Hash", cs.md5_hash, actual_md5Hash, context
"md5Hash", actual_md5Hash, cs.md5_hash, context
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Will this swap the checksum in error message? Will we get actual instead of expected and vice-versa?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The ordering was wrong earlier. Corrected it now

@krishnamd-jkp krishnamd-jkp merged commit b5c8fec into googleapis:main Apr 16, 2026
10 checks passed
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