tests/cql_query_test: Assert default compression options

Signed-off-by: Duarte Nunes <duarte@scylladb.com>
This commit is contained in:
Duarte Nunes
2018-11-20 15:38:31 +00:00
parent 36dc9e3280
commit 9464fffc8c

View File

@@ -1443,6 +1443,10 @@ SEASTAR_TEST_CASE(test_table_compression) {
assert(!f.failed());
e.require_table_exists("ks", "tb4");
BOOST_REQUIRE(e.local_db().find_schema("ks", "tb4")->get_compressor_params().get_compressor() == compressor::deflate);
return e.execute_cql("create table tb6 (foo text PRIMARY KEY, bar text);");
}).then([&e] (shared_ptr<cql_transport::messages::result_message> msg) {
e.require_table_exists("ks", "tb6");
BOOST_REQUIRE(e.local_db().find_schema("ks", "tb6")->get_compressor_params().get_compressor() == compressor::lz4);
});
});
}