You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It appears that the source code suggests the presence of the new testing tool on V7.6.0, however this seems absent in the docker build.
Open a bash terminal in the ksqldb docker container with docker run -it confluentinc/cp-ksqldb-server:7.6.0
Attempt to find the script using whereis run-ksql-test. The script cannot be found. ksql-test-runner does exist, (and sql-test-runner does not)
Attempting to manually run the bash script in the github source code by pasting in the relevant lines:
ksql-run-class io.confluent.ksql.tools.test.SqlTestingTool "-h"
NAME
sql-test-runner - The KSQL SQL testing tool
SYNOPSIS
sql-test-runner {--temp-folder | -tf} <tempFolder>
{--test-directory | -td} <testDirectory>
OPTIONS
--temp-folder <tempFolder>, -tf <tempFolder>
A folder to store temporary files
This option may occur a maximum of 1 times
--test-directory <testDirectory>, -td <testDirectory>
A directory containing SQL files to test.
This option may occur a maximum of 1 times
mkdir /tmp/input
mkdir /tmp/tempfile
echo"--@test: Passing test">>/tmp/input/test.sql
echo"">>/tmp/input/test.sql
echo"CREATE STREAM s (id INT KEY, foo INT) WITH (kafka_topic='s', value_format='JSON');">>/tmp/input/test.sql
echo"CREATE TABLE t (id INT PRIMARY KEY, bar INT) WITH (kafka_topic='t', value_format='JSON');">>/tmp/input/test.sql
echo"">>/tmp/input/test.sql
echo"CREATE STREAM j AS SELECT s.id, s.foo, t.bar FROM s JOIN t ON s.id = t.id;">>/tmp/input/test.sql
echo"">>/tmp/input/test.sql
echo"INSERT INTO t (rowtime, id, bar) VALUES (1, 1, 1);">>/tmp/input/test.sql
echo"INSERT INTO s (rowtime, id, foo) VALUES (1, 1, 2);">>/tmp/input/test.sql
echo"">>/tmp/input/test.sql
echo"ASSERT VALUES j (rowtime, s_id, foo, bar) VALUES (1, 1, 2, 1);">>/tmp/input/test.sql
echo"">>/tmp/input/test.sql
echo"--@test: Failing test">>/tmp/input/test.sql
echo"[email protected]: io.confluent.ksql.util.KsqlException">>/tmp/input/test.sql
echo"[email protected]: (The following columns are changed, missing or reordered: [\`COL2\` INTEGER])">>/tmp/input/test.sql
echo"">>/tmp/input/test.sql
echo"SET 'ksql.create.or.replace.enabled' = 'true';">>/tmp/input/test.sql
echo"">>/tmp/input/test.sql
echo"CREATE STREAM a (id INT KEY, col1 INT, col2 INT) WITH (kafka_topic='a', value_format='JSON');">>/tmp/input/test.sql
echo"CREATE STREAM b AS SELECT id, col1, col2 FROM a;">>/tmp/input/test.sql
echo"">>/tmp/input/test.sql
echo"INSERT INTO a (id, col1) VALUES (3, 5);">>/tmp/input/test.sql
echo"">>/tmp/input/test.sql
echo"ASSERT VALUES b (id, col1) VALUES (3, 5);">>/tmp/input/test.sql
echo"">>/tmp/input/test.sql
echo"CREATE OR REPLACE STREAM b AS SELECT id, col1 FROM a;">>/tmp/input/test.sql
run testing script with params
ksql-run-class io.confluent.ksql.tools.test.SqlTestingTool "-tf /tmp/input -td /tmp/output"
Found unexpected parameters: [-tf /tmp/input -td /tmp/output]
See the -h or --help flags for usage information
Based on the source code, this should definitely work. I tried it also supplying the full parameter names, and still have the same result.
Expected Behaviour
The testing tool exists in the V7.6.0 image
The testing class works with the variables it is requesting based on the help page.
Other Questions
Is there something fishy going on with the Jenkins build that excludes the new testing stuff?
Is there going to be a 0.30.0 as is indicated on the testing wiki page or is the naming convention changing to match the rest of confluent products? If so, the wiki page should be updated to match this.
The text was updated successfully, but these errors were encountered:
Describe the bug
It appears that the source code suggests the presence of the new testing tool on V7.6.0, however this seems absent in the docker build.
To Reproduce
docker run -it confluentinc/cp-ksqldb-server:7.6.0
whereis run-ksql-test
. The script cannot be found.ksql-test-runner
does exist, (andsql-test-runner
does not)NB: observations:
sql-test-runner
notrun-ksql-test
Based on the source code, this should definitely work. I tried it also supplying the full parameter names, and still have the same result.
Expected Behaviour
Other Questions
The text was updated successfully, but these errors were encountered: