From 09010e81f15950d89ee797e905fa0f636d8c9bd6 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 18 Jun 2015 05:38:38 +0300 Subject: [PATCH] dbms: added test [#METR-2944]. --- .../00177_inserts_through_http_parts.reference | 10 ++++++++++ .../0_stateless/00177_inserts_through_http_parts.sh | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.reference create mode 100755 dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.sh diff --git a/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.reference b/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.reference new file mode 100644 index 00000000000..f00c965d830 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.reference @@ -0,0 +1,10 @@ +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 diff --git a/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.sh b/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.sh new file mode 100755 index 00000000000..4c7834d605b --- /dev/null +++ b/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +curl 'http://localhost:8123/?query=DROP+TABLE' -d 'IF EXISTS test.insert' +curl 'http://localhost:8123/?query=CREATE' -d 'TABLE test.insert (x UInt8) ENGINE = Memory' +curl 'http://localhost:8123/' -d 'INSERT INTO test.insert VALUES (1),(2)' +curl 'http://localhost:8123/?query=INSERT+INTO+test.insert+VALUES' -d '(3),(4)' +curl 'http://localhost:8123/?query=INSERT+INTO+test.insert' -d 'VALUES (5),(6)' +curl 'http://localhost:8123/?query=INSERT+INTO+test.insert+VALUES+(7)' -d ',(8)' +curl 'http://localhost:8123/?query=INSERT+INTO+test.insert+VALUES+(9),(10)' -d ' ' +curl 'http://localhost:8123/' -d 'SELECT x FROM test.insert ORDER BY x' +curl 'http://localhost:8123/?query=DROP+TABLE' -d 'test.insert'