Skip to content

Commit e23766d

Browse files
authored
Add qat_deflate and qat_lz4 as additional index codecs. (#794)
Signed-off-by: Mulugeta Mammo <[email protected]>
1 parent e741888 commit e23766d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

osbenchmark/workload/workload.py

+2
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ class IndexCodec(Enum):
769769
BestCompression = "best_compression"
770770
ZSTD = "zstd"
771771
ZSTDNODICT = "zstd_no_dict"
772+
QATDEFLATE = "qat_deflate"
773+
QATLZ4 = "qat_lz4"
772774

773775
@classmethod
774776
def is_codec_valid(cls, codec):

tests/workload/params_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ def test_create_index_with_invalid_codec(self):
18041804

18051805
self.assertEqual(str(context.exception),
18061806
"Please set the value properly for the create-index operation. Invalid index.codec value " +
1807-
"'invalid_codec'. Choose from available codecs: ['default', 'best_compression', 'zstd', 'zstd_no_dict']")
1807+
"'invalid_codec'. Choose from available codecs: ['default', 'best_compression', 'zstd', 'zstd_no_dict', 'qat_deflate', 'qat_lz4']")
18081808

18091809
class CreateDataStreamParamSourceTests(TestCase):
18101810
def test_create_data_stream(self):

0 commit comments

Comments
 (0)