Skip to content

Commit

Permalink
Add sqlserver tests, remove unnecessary log checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflester committed Dec 2, 2023
1 parent 7544d36 commit 2c3cbb7
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 81 deletions.
9 changes: 0 additions & 9 deletions src/test/src/lib/json/biac.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@
"sysadmin",
"public"
]
},
{
"type": "logs",
"name": "Ensure trino is running",
"container": "trino",
"contains": [
"=== SERVER STARTED ==="
],
"timeout": 60
}
]
}
9 changes: 0 additions & 9 deletions src/test/src/lib/json/data-products.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@
]
}
]
},
{
"type": "logs",
"name": "Ensure trino is running",
"container": "trino",
"contains": [
"=== SERVER STARTED ==="
],
"timeout": 60
}
]
}
9 changes: 0 additions & 9 deletions src/test/src/lib/json/delta-lake.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@
"name",
"address"
]
},
{
"type": "logs",
"name": "Ensure trino is running",
"container": "trino",
"contains": [
"=== SERVER STARTED ==="
],
"timeout": 60
}
]
}
9 changes: 0 additions & 9 deletions src/test/src/lib/json/file-access-control.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,6 @@
"--user foo"
],
"rowCount": 0
},
{
"type": "logs",
"name": "Ensure trino is running",
"container": "trino",
"contains": [
"=== SERVER STARTED ==="
],
"timeout": 60
}
]
}
9 changes: 0 additions & 9 deletions src/test/src/lib/json/file-group-provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@
"contains": [
"[]"
]
},
{
"type": "logs",
"name": "Ensure trino is running",
"container": "trino",
"contains": [
"=== SERVER STARTED ==="
],
"timeout": 60
}
]
}
9 changes: 0 additions & 9 deletions src/test/src/lib/json/hive.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@
"name",
"address"
]
},
{
"type": "logs",
"name": "Ensure trino is running",
"container": "trino",
"contains": [
"=== SERVER STARTED ==="
],
"timeout": 60
}
]
}
9 changes: 0 additions & 9 deletions src/test/src/lib/json/iceberg.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@
"name",
"address"
]
},
{
"type": "logs",
"name": "Ensure trino is running",
"container": "trino",
"contains": [
"=== SERVER STARTED ==="
],
"timeout": 60
}
]
}
9 changes: 0 additions & 9 deletions src/test/src/lib/json/mysql.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,6 @@
"name",
"address"
]
},
{
"type": "logs",
"name": "Ensure trino is running",
"container": "trino",
"contains": [
"=== SERVER STARTED ==="
],
"timeout": 60
}
]
}
9 changes: 0 additions & 9 deletions src/test/src/lib/json/postgres.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@
"name",
"address"
]
},
{
"type": "logs",
"name": "Ensure trino is running",
"container": "trino",
"contains": [
"=== SERVER STARTED ==="
],
"timeout": 60
}
]
}
54 changes: 54 additions & 0 deletions src/test/src/lib/json/sqlserver.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"tests": [
{
"type": "query",
"name": "Test create schema",
"sql": "CREATE SCHEMA sqlserver.test_schema",
"trinoCliArgs": [
"--server 'http://trino:8080'",
"--user admin"
],
"contains": [
"CREATE SCHEMA"
]
},
{
"type": "query",
"name": "Test schema list",
"sql": "SHOW SCHEMAS IN sqlserver",
"trinoCliArgs": [
"--server 'http://trino:8080'",
"--user admin"
],
"contains": [
"test_schema"
]
},
{
"type": "query",
"name": "Test CTAS",
"sql": "CREATE TABLE sqlserver.test_schema.test_table AS SELECT * FROM tpch.tiny.customer LIMIT 10",
"trinoCliArgs": [
"--server 'http://trino:8080'",
"--user admin"
],
"contains": [
"CREATE TABLE: 10 rows"
]
},
{
"type": "query",
"name": "Test table select",
"sql": "SELECT * FROM sqlserver.test_schema.test_table LIMIT 10",
"trinoCliArgs": [
"--server 'http://trino:8080'",
"--user admin"
],
"contains": [
"custkey",
"name",
"address"
]
}
]
}

0 comments on commit 2c3cbb7

Please sign in to comment.