Unskipped bats tests

This commit is contained in:
Daylon Wilkins
2022-06-21 01:54:36 -07:00
committed by Daylon Wilkins
parent 12e8d2d84b
commit 178259995b
25 changed files with 71 additions and 106 deletions
@@ -38,7 +38,7 @@ type ParquetWriter struct {
var typeMap = map[typeinfo.Identifier]string{
typeinfo.DatetimeTypeIdentifier: "type=INT64, convertedtype=TIME_MICROS",
typeinfo.DecimalTypeIdentifier: "type=BYTE_ARRAY, convertedtype=DECIMAL, scale=2, precision=20",
typeinfo.DecimalTypeIdentifier: "type=BYTE_ARRAY, convertedtype=UTF8",
typeinfo.EnumTypeIdentifier: "type=BYTE_ARRAY, convertedtype=UTF8",
typeinfo.InlineBlobTypeIdentifier: "type=BYTE_ARRAY, convertedtype=UTF8",
typeinfo.SetTypeIdentifier: "type=BYTE_ARRAY, convertedtype=UTF8",
-1
View File
@@ -57,7 +57,6 @@ SQL
[[ "$output" =~ "TeSt,c1,8201" ]] || false
}
@test "column_tags: Merging two branches that added same tag, name, type, and constraints" {
dolt sql <<SQL
CREATE TABLE test (
+1 -1
View File
@@ -3,7 +3,7 @@ load $BATS_TEST_DIRNAME/helper/common.bash
load $BATS_TEST_DIRNAME/helper/query-server-common.bash
setup() {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
setup_common
}
-5
View File
@@ -208,7 +208,6 @@ SQL
run cat README.md
[ "$output" = readme-text ]
echo newLicenseText > LICENSE.md
dolt sql <<SQL
CREATE TABLE test (
@@ -272,7 +271,6 @@ SQL
[[ "$output" =~ ([[:space:]]*new doc:[[:space:]]*LICENSE.md) ]] || false
[[ "$output" =~ ([[:space:]]*new doc:[[:space:]]*README.md) ]] || false
dolt add .
dolt commit -m "initial doc commit"
echo ~new-text~ > README.md
@@ -400,7 +398,6 @@ SQL
run cat README.md
[[ "$output" =~ "this is my readme" ]] || false
echo "testing-modified-doc" > LICENSE.md
dolt checkout LICENSE.md
run cat LICENSE.md
@@ -463,7 +460,6 @@ SQL
run cat README.md
[[ "$output" =~ "a readme" ]] || false
echo "new readme" > README.md
dolt sql <<SQL
CREATE TABLE test2 (
@@ -710,7 +706,6 @@ SQL
[[ ! "$output" =~ "dolt_docs" ]] || false
}
@test "docs: dolt sql operation on dolt_docs" {
echo "a readme" > README.md
echo "a license" > LICENSE.md
-1
View File
@@ -148,7 +148,6 @@ SQL
[[ "$output" =~ "| + | 3 | 3 | 3 |" ]] || false
}
@test "drop-create: dropped column" {
dolt sql <<SQL
create table test(a int primary key, b int null, c int null);
+6 -9
View File
@@ -312,7 +312,7 @@ SQL
}
@test "export-tables: parquet file export check with parquet tools" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
dolt sql -q "CREATE TABLE test_table (pk int primary key, col1 text, col2 int);"
dolt sql -q "INSERT INTO test_table VALUES (1, 'row1', 22), (2, 'row2', 33), (3, 'row3', 22);"
@@ -360,7 +360,7 @@ print(table.to_pandas())
}
@test "export-tables: table export datetime, bool, enum types to parquet" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
dolt sql <<SQL
CREATE TABLE diffTypes (
pk BIGINT PRIMARY KEY,
@@ -391,9 +391,8 @@ SQL
[[ "$output" =~ "$row3" ]] || false
}
@test "export-tables: table export more types to parquet" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
dolt sql <<SQL
CREATE TABLE test (
\`pk\` BIGINT NOT NULL,
@@ -424,7 +423,7 @@ SQL
}
@test "export-tables: table export decimal and bit types to parquet" {
skip "DECIMAL handling in parquet is strange, have to investigate further"
skiponwindows "Missing dependencies"
dolt sql -q "CREATE TABLE more (pk BIGINT NOT NULL,v DECIMAL(9,5),b BIT(10),PRIMARY KEY (pk));"
dolt sql -q "INSERT INTO more VALUES (1, 1234.56789, 511);"
dolt sql -q "INSERT INTO more VALUES (2, 5235.66789, 514);"
@@ -436,10 +435,8 @@ SQL
run parquet-tools cat --json more.parquet > output.json
[ "$status" -eq 0 ]
row1='{"pk":1,"v":1234.57,"b":511}'
row2='{"pk":2,"v":5235.67,"b":514}'
[[ "$output" =~ "$row1" ]] || false
[[ "$output" =~ "$row2" ]] || false
[[ "$output" =~ '{"pk":1,"v":"1234.56789","b":511}' ]] || false
[[ "$output" =~ '{"pk":2,"v":"5235.66789","b":514}' ]] || false
}
@test "export-tables: table export to sql with null values in different sql types" {
@@ -193,7 +193,6 @@ function setup_write_test {
[[ "$output" =~ "added" ]] || false
done
for commit in HEAD HEAD~1 HEAD~2; do
run dolt sql -q "SHOW TABLES AS OF '$commit';" -r csv
[ "$status" -eq 0 ]
-6
View File
@@ -6,16 +6,13 @@ import mysql.connector
from io import StringIO
from multiprocessing import Process
def _connect(user, host, port, database):
return mysql.connector.connect(user=user, host=host, port=port, database=database, allow_local_infile=True)
def _print_err_and_exit(e):
print(e, file=sys.stderr)
sys.exit(1)
def csv_to_row_maps(csv_str):
csv_str = csv_str.replace('\\n', '\n')
rd = csv.DictReader(StringIO(csv_str))
@@ -25,7 +22,6 @@ def csv_to_row_maps(csv_str):
return rows
class DoltConnection(object):
def __init__(self, user='root', host='127.0.0.1', port=3306, database='dolt', auto_commit=False):
self.user = user
@@ -69,7 +65,6 @@ class DoltConnection(object):
_print_err_and_exit(e)
raise e
class InfiniteRetryConnection(DoltConnection):
def connect(self):
while True:
@@ -86,7 +81,6 @@ class InfiniteRetryConnection(DoltConnection):
except BaseException:
pass
def wait_for_connection(user='root', host='127.0.0.1', port=3306, database='dolt', timeout_ms=5000):
timeoutf = timeout_ms / 1000.0
exit_zero_on_connect = InfiniteRetryConnection(user=user, host=host, port=port, database=database)
@@ -161,7 +161,6 @@ behavior:
wait_for_connection $PORT 5000
}
start_multi_db_server() {
DEFAULT_DB="$1"
let PORT="$$ % (65536-1024) + 1024"
-1
View File
@@ -531,7 +531,6 @@ SQL
[[ "$output" =~ "2,2,2" ]] || false
}
@test "merge: merge branch with table that was deleted" {
dolt sql << SQL
INSERT INTO test2 VALUES (0, 0, 0);
+16 -16
View File
@@ -37,7 +37,7 @@ teardown() {
}
@test "remotes-sql-server: sql-push --set-remote within session" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt remote add origin file://../rem1
@@ -55,7 +55,7 @@ teardown() {
}
@test "remotes-sql-server: push on sql-session commit" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt config --local --add sqlserver.global.dolt_replicate_to_remote remote1
@@ -75,7 +75,7 @@ teardown() {
}
@test "remotes-sql-server: async push on sql-session commit" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt config --local --add sqlserver.global.dolt_replicate_to_remote remote1
@@ -99,7 +99,7 @@ teardown() {
}
@test "remotes-sql-server: pull new commits on read" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt commit -am "cm"
@@ -114,7 +114,7 @@ teardown() {
}
@test "remotes-sql-server: pull remote not found error" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt config --local --add sqlserver.global.dolt_read_replica_remote unknown
@@ -127,7 +127,7 @@ teardown() {
}
@test "remotes-sql-server: quiet pull warnings" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt config --local --add sqlserver.global.dolt_skip_replication_errors 1
@@ -139,7 +139,7 @@ teardown() {
}
@test "remotes-sql-server: push remote not found error" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt config --local --add sqlserver.global.dolt_replicate_to_remote unknown
@@ -151,7 +151,7 @@ teardown() {
}
@test "remotes-sql-server: quiet push warnings" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt config --local --add sqlserver.global.dolt_skip_replication_errors 1
@@ -162,7 +162,7 @@ teardown() {
}
@test "remotes-sql-server: pull multiple heads" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt checkout -b new_feature
@@ -179,7 +179,7 @@ teardown() {
}
@test "remotes-sql-server: connect to remote head" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt checkout -b new_feature
@@ -222,7 +222,7 @@ teardown() {
}
@test "remotes-sql-server: pull all heads" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt commit -am "new commit"
@@ -237,7 +237,7 @@ teardown() {
}
@test "remotes-sql-server: pull invalid head" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
skip "query retry prevents error checking"
cd repo2
@@ -252,7 +252,7 @@ teardown() {
}
@test "remotes-sql-server: pull multiple heads, one invalid" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
skip "query retry prevents error checking"
cd repo2
@@ -267,7 +267,7 @@ teardown() {
}
@test "remotes-sql-server: quiet pull all heads warnings" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt commit -am "cm"
@@ -283,7 +283,7 @@ teardown() {
}
@test "remotes-sql-server: connect to missing branch pulls remote" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt checkout -b feature-branch
@@ -300,7 +300,7 @@ teardown() {
}
@test "remotes-sql-server: connect to hash works" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt commit -am "cm"
-1
View File
@@ -952,7 +952,6 @@ SQL
[ "$status" -eq 0 ]
}
@test "remotes: force fetch from main" {
dolt remote add test-remote http://localhost:50051/test-org/test-repo
dolt push test-remote main
-1
View File
@@ -211,7 +211,6 @@ teardown() {
[[ "$output" =~ "invalid replicate heads setting; cannot set both" ]] || false
}
@test "replication: replica pull multiple heads quiet warnings" {
dolt clone file://./rem1 repo2
cd repo2
@@ -9,7 +9,6 @@ teardown() {
teardown_common
}
@test "sql-check-constraints: basic tests for check constraints" {
dolt sql <<SQL
CREATE table t1 (
@@ -185,4 +184,3 @@ SQL
[[ "$output" =~ "`c1` > 3" ]] || false
}
-1
View File
@@ -99,7 +99,6 @@ CALL DOLT_CHECKOUT('-b', 'new-branch');
SQL
}
@test "sql-checkout: DOLT_CHECKOUT -b throws error on branches that already exist" {
run dolt sql -q "SELECT DOLT_CHECKOUT('-b', 'main')"
[ $status -eq 1 ]
+1 -1
View File
@@ -42,7 +42,7 @@ teardown() {
}
@test "sql-client: test sql-client shows tables" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
cd ../
-1
View File
@@ -44,7 +44,6 @@ teardown() {
[[ "$output" =~ "sqlserver.global.max_connections = 1000" ]] || false
}
@test "sql-config: remove persisted variable with cli engine" {
skip "TODO parser support for RESET PERSIST"
@@ -94,7 +94,6 @@ SQL
[ "$status" -eq 0 ]
}
@test "sql-conflicts: modify conflict" {
skip_nbf_dolt_1
dolt SQL -q "INSERT INTO one_pk (pk1,c1,c2) VALUES (0,0,0)"
@@ -213,7 +213,6 @@ SQL
[[ "$output" =~ "PRIMARY KEY (\`pk\`)" ]] || false
}
@test "sql-create-tables: create a table using sql with a string" {
run dolt sql <<SQL
CREATE TABLE test (
@@ -231,7 +230,6 @@ SQL
[[ "$output" =~ "PRIMARY KEY (\`pk\`)" ]] || false
}
@test "sql-create-tables: create a table using sql with an unsigned int" {
run dolt sql -q "CREATE TABLE test (pk BIGINT NOT NULL, c1 BIGINT UNSIGNED, PRIMARY KEY (pk))"
[ "$status" -eq 0 ]
@@ -306,7 +304,6 @@ SQL
[[ "$output" =~ "date" ]] || false
}
@test "sql-create-tables: create two table with the same name" {
dolt sql <<SQL
CREATE TABLE test (
@@ -535,7 +532,6 @@ SQL
[[ "$output" =~ "nothing to commit, working tree clean" ]] || false
}
@test "sql-create-tables: You can create a temp table of the same name as a normal table. Run it through operations" {
run dolt sql <<SQL
CREATE TABLE goodtable(pk int PRIMARY KEY);
-2
View File
@@ -1201,7 +1201,6 @@ SELECT DOLT_COMMIT('-a', '-m', 'Insert 60');
SELECT DOLT_MERGE('feature-branch');
SQL
run dolt status
[ $status -eq 0 ]
[[ "$output" =~ "On branch main" ]] || false
@@ -1253,7 +1252,6 @@ CALL DOLT_COMMIT('-a', '-m', 'Insert 60');
CALL DOLT_MERGE('feature-branch');
SQL
run dolt status
[ $status -eq 0 ]
[[ "$output" =~ "On branch main" ]] || false
-2
View File
@@ -208,7 +208,6 @@ teardown() {
[ "$status" -eq 1 ]
[[ "$output" =~ "the tip of your current branch is behind its remote counterpart" ]] || false
dolt sql -q "select dolt_push('--force', 'origin', 'main')"
}
@@ -223,7 +222,6 @@ teardown() {
[ "$status" -eq 1 ]
[[ "$output" =~ "the tip of your current branch is behind its remote counterpart" ]] || false
dolt sql -q "CALL dolt_push('--force', 'origin', 'main')"
}
+39 -39
View File
@@ -35,7 +35,7 @@ teardown() {
}
@test "sql-server: test autocommit" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -69,7 +69,7 @@ teardown() {
}
@test "sql-server: read-only flag prevents modification" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
@@ -96,7 +96,7 @@ teardown() {
}
@test "sql-server: read-only flag still allows select" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt sql -q "create table t(c0 int)"
@@ -113,7 +113,7 @@ teardown() {
}
@test "sql-server: read-only flag prevents dolt_commit" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
@@ -129,7 +129,7 @@ teardown() {
}
@test "sql-server: test command line modification" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -163,7 +163,7 @@ teardown() {
}
@test "sql-server: test dolt sql interface works properly with autocommit" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -224,7 +224,7 @@ teardown() {
}
@test "sql-server: test basic querying via dolt sql-server" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -246,7 +246,7 @@ teardown() {
}
@test "sql-server: test multiple queries on the same connection" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -265,7 +265,7 @@ teardown() {
}
@test "sql-server: test reset_hard" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt sql <<SQL
@@ -310,7 +310,7 @@ SQL
}
@test "sql-server: test multi db with use statements" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
start_multi_db_server repo1
@@ -419,7 +419,7 @@ SQL
}
@test "sql-server: test CREATE and DROP database via sql-server" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -437,7 +437,7 @@ SQL
}
@test "sql-server: DOLT_ADD, DOLT_COMMIT, DOLT_CHECKOUT, DOLT_MERGE work together in server mode" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -489,7 +489,7 @@ SQL
}
@test "sql-server: DOLT_MERGE ff works" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -515,7 +515,7 @@ SQL
}
@test "sql-server: LOAD DATA LOCAL INFILE works" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -530,7 +530,7 @@ SQL
}
@test "sql-server: Run queries on database without ever selecting it" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
start_multi_db_server repo1
@@ -586,7 +586,7 @@ SQL
}
@test "sql-server: create database without USE" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
start_multi_db_server repo1
@@ -620,7 +620,7 @@ SQL
}
@test "sql-server: manual commit table can be dropped (validates superschema structure)" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -657,7 +657,7 @@ SQL
# TODO: Need to update testing logic allow queries for a multiple session.
@test "sql-server: Create a temporary table and validate that it doesn't persist after a session closes" {
skip_nbf_dolt_1
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -677,7 +677,7 @@ SQL
}
@test "sql-server: connect to another branch with connection string" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt checkout -b "feature-branch"
@@ -696,7 +696,7 @@ SQL
}
@test "sql-server: connect to a commit with connection string" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt sql -q "create table test (pk int primary key)"
@@ -721,7 +721,7 @@ SQL
}
@test "sql-server: select a branch with the USE syntax" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt checkout -b "feature-branch"
@@ -742,7 +742,7 @@ SQL
}
@test "sql-server: SET GLOBAL default branch as ref" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt checkout -b "new"
@@ -762,7 +762,7 @@ SQL
}
@test "sql-server: SET GLOBAL default branch as branch name" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt checkout -b "new"
@@ -782,7 +782,7 @@ SQL
}
@test "sql-server: require_secure_transport no key or cert" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
let PORT="$$ % (65536-1024) + 1024"
cat >config.yml <<EOF
@@ -794,7 +794,7 @@ EOF
}
@test "sql-server: tls_key non-existant" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
cp "$BATS_TEST_DIRNAME"/../../go/cmd/dolt/commands/sqlserver/testdata/chain_key.pem .
cp "$BATS_TEST_DIRNAME"/../../go/cmd/dolt/commands/sqlserver/testdata/chain_cert.pem .
@@ -809,7 +809,7 @@ EOF
}
@test "sql-server: tls_cert non-existant" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
cp "$BATS_TEST_DIRNAME"/../../go/cmd/dolt/commands/sqlserver/testdata/chain_key.pem .
cp "$BATS_TEST_DIRNAME"/../../go/cmd/dolt/commands/sqlserver/testdata/chain_cert.pem .
@@ -824,7 +824,7 @@ EOF
}
@test "sql-server: tls only server" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
cp "$BATS_TEST_DIRNAME"/../../go/cmd/dolt/commands/sqlserver/testdata/chain_key.pem .
cp "$BATS_TEST_DIRNAME"/../../go/cmd/dolt/commands/sqlserver/testdata/chain_cert.pem .
@@ -868,7 +868,7 @@ while True:
}
@test "sql-server: disable_client_multi_statements makes create trigger work" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt sql -q 'create table test (id int primary key)'
let PORT="$$ % (65536-1024) + 1024"
@@ -915,7 +915,7 @@ END""")
}
@test "sql-server: client_multi_statements work" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
dolt sql -q 'create table test (id int primary key)'
let PORT="$$ % (65536-1024) + 1024"
@@ -960,7 +960,7 @@ END""")
}
@test "sql-server: auto increment for a table should reset between drops" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server repo1
@@ -977,7 +977,7 @@ END""")
}
@test "sql-server: sql-push --set-remote within session" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
skip_nbf_dolt_1
mkdir rem1
@@ -997,7 +997,7 @@ END""")
}
@test "sql-server: replicate to backup after sql-session commit" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
skip_nbf_dolt_1
mkdir bac1
@@ -1026,7 +1026,7 @@ END""")
}
@test "sql-server: create database with no starting repo" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
mkdir no_dolt && cd no_dolt
start_sql_server
@@ -1081,7 +1081,7 @@ END""")
}
@test "sql-server: drop database with active connections" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
skip_nbf_dolt_1
mkdir no_dolt && cd no_dolt
@@ -1131,7 +1131,7 @@ END""")
}
@test "sql-server: connect to databases case insensitive" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
skip_nbf_dolt_1
mkdir no_dolt && cd no_dolt
@@ -1153,7 +1153,7 @@ END""")
}
@test "sql-server: create and drop database with --multi-db-dir" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
mkdir no_dolt && cd no_dolt
mkdir db_dir
@@ -1192,7 +1192,7 @@ END""")
}
@test "sql-server: create database errors" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
mkdir no_dolt && cd no_dolt
mkdir dir_exists
@@ -1210,7 +1210,7 @@ END""")
}
@test "sql-server: create database with existing repo" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
cd repo1
start_sql_server
@@ -1254,7 +1254,7 @@ END""")
}
@test "sql-server: fetch uses database tempdir from different working directory" {
skiponwindows "Has dependencies that are missing on the Jenkins Windows installation."
skiponwindows "Missing dependencies"
skip_nbf_dolt_1
mkdir remote1
-1
View File
@@ -36,7 +36,6 @@ teardown() {
! [[ "$output" =~ "test" ]] || false
}
@test "sql-show: show table status has number of rows correct" {
dolt sql -q "CREATE TABLE test(pk int NOT NULL AUTO_INCREMENT, c1 int, PRIMARY KEY (pk))"
-1
View File
@@ -849,7 +849,6 @@ SQL
[[ "$output" =~ 'branch not found' ]] || false
}
@test "sql: branch qualified DB name in select" {
dolt add .; dolt commit -m 'commit tables'
dolt checkout -b feature-branch
+7 -6
View File
@@ -137,7 +137,6 @@ teardown() {
}
@test "system-tables: query dolt_remotes system table" {
skip "JSON formatting is weird, need to fix"
skip_nbf_dolt_1 "dolt remote not supported"
run dolt sql -q "select count(*) from dolt_remotes" -r csv
@@ -152,10 +151,14 @@ teardown() {
[[ "$output" =~ 1 ]] || false
regex='file://.*/remote'
run dolt sql -q "select * from dolt_remotes" -r csv
run dolt sql -q "select name, fetch_specs, params from dolt_remotes" -r csv
[ $status -eq 0 ]
[[ "${lines[0]}" = name,url,fetch_specs,params ]] || false
[[ "${lines[1]}" =~ origin,$regex,[refs/heads/*:refs/remotes/origin/*,{} ]] || false
[[ "${lines[0]}" = name,fetch_specs,params ]] || false
[[ "${lines[1]}" =~ "origin,\"[\"\"refs/heads/*:refs/remotes/origin/*\"\"]\",{}" ]] || false
run dolt sql -q "select url from dolt_remotes" -r csv
[ $status -eq 0 ]
[[ "${lines[0]}" = url ]] || false
[[ "${lines[1]}" =~ $regex ]] || false
}
@test "system-tables: check unsupported dolt_remote behavior" {
@@ -338,8 +341,6 @@ teardown() {
[[ "$output" =~ "$EXPECTED" ]] || false
}
@test "system-tables: query dolt_history_ system table" {
dolt sql -q "create table test (pk int, c1 int, primary key(pk))"
dolt add test