horaedb icon indicating copy to clipboard operation
horaedb copied to clipboard

Missing features of integration test framework

Open waynexia opened this issue 3 years ago • 3 comments

List

  • Interceptor
    • [ ] support ignore interceptor #107
    • [ ] support echo interceptor
    • [ ] able to handle random things https://github.com/CeresDB/ceresdb/issues/114#issuecomment-1218949297
  • UI
    • [ ] can only run specified cases
    • [ ] redirect server's log to the specified place
    • [ ] Keep original SQL indents
  • Runner
    • [ ] customizable config file in dir level (e.g. tests/cases/config.toml and tests/cases/01_dummy/config.toml)

Additional context

waynexia avatar Jul 20 '22 08:07 waynexia

List below are features I want to have:

  • Able to set config file
  • Keep original SQL indents. This is what looks like now:

input

CREATE TABLE `03_dml_select_order_table1` (
    `timestamp` timestamp NOT NULL,
    `value` int,
    timestamp KEY (timestamp)) ENGINE=Analytic
WITH(
	 enable_ttl='false'
);

output

CREATE TABLE `03_dml_select_order_table1` (    `timestamp` timestamp NOT NULL,    `value` int,    timestamp KEY (timestamp)) ENGINE=AnalyticWITH(	 enable_ttl='false');

affected_rows: 0

jiacai2050 avatar Jul 22 '22 02:07 jiacai2050

List below are features I want to have:

Updated to the description 👍

waynexia avatar Jul 22 '22 02:07 waynexia

image

  • /cases/local/07_optimizer/optimizer.sql This testcase contains a random result, so we need a interceptor which can replace text before do equality check

jiacai2050 avatar Aug 18 '22 02:08 jiacai2050

This test framework is migrated to https://github.com/CeresDB/sqlness, and this issue is kinds of stale, so close it.

New issues can be created in new repo.

jiacai2050 avatar Jan 07 '23 12:01 jiacai2050