Skip to content

Commit

Permalink
test: Add tests for Zstd compression level configuration
Browse files Browse the repository at this point in the history
Add test cases to verify:
- Default compression level (3)
- Custom compression level setting
  • Loading branch information
ddukbg committed Nov 6, 2024
1 parent c8b7f1a commit fd8adf9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_out_s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,11 @@ def test_write_with_zstd

expected_s3path = "log/events/ts=20110102-13/events_0-#{Socket.gethostname}.zst"

setup_s3_object_mocks(s3_local_file_path: s3_local_file_path, s3path: expected_s3path)
setup_s3_object_mocks(
s3_local_file_path: s3_local_file_path,
s3path: expected_s3path,
content_type: "application/x-zst"
)

config = CONFIG_TIME_SLICE + "\nstore_as zstd\n"
d = create_time_sliced_driver(config)
Expand Down

0 comments on commit fd8adf9

Please sign in to comment.