Skip to content

Commit df177b8

Browse files
committed
test: Passthrough-only tests
1 parent 7ec87dc commit df177b8

File tree

3 files changed

+18
-41
lines changed

3 files changed

+18
-41
lines changed

Cargo.lock

+12-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mise.toml

+1-35
Original file line numberDiff line numberDiff line change
@@ -276,18 +276,6 @@ echo
276276
mise --env tcp run postgres:setup
277277
mise --env tls run postgres:setup
278278
279-
280-
echo
281-
echo '###############################################'
282-
echo '# Test: Prometheus'
283-
echo '###############################################'
284-
echo
285-
286-
mise --env tcp run proxy:up proxy --extra-args "--detach --wait"
287-
mise --env tcp run test:wait_for_postgres_to_quack --port 6432 --max-retries 20
288-
mise --env tcp run test:integration:prometheus
289-
mise --env tcp run proxy:down
290-
291279
echo
292280
echo '###############################################'
293281
echo '# Test: non-TLS'
@@ -318,7 +306,7 @@ echo
318306
319307
mise --env tls run proxy:up proxy-tls --extra-args "--detach --wait"
320308
mise --env tls run test:wait_for_postgres_to_quack --port 6432 --max-retries 20 --tls
321-
cargo nextest run --no-fail-fast --nocapture -E 'package(cipherstash-proxy-integration)'
309+
cargo nextest run --no-fail-fast --nocapture -p cipherstash-proxy-integration passthrough_
322310
mise --env tls run proxy:down
323311
324312
echo
@@ -342,28 +330,6 @@ mise --env tcp run proxy:up proxy --extra-args "--detach --wait"
342330
mise --env tcp run test:wait_for_postgres_to_quack --port 6432 --max-retries 20
343331
mise --env tcp run test:integration:warn_missing_config
344332
mise --env tcp run proxy:down
345-
346-
echo
347-
echo '###############################################'
348-
echo '# Test: Python'
349-
echo '###############################################'
350-
echo
351-
352-
mise --env tls run proxy:up proxy-tls --extra-args "--detach --wait"
353-
mise --env tls run test:wait_for_postgres_to_quack --port 6432 --max-retries 20 --tls
354-
mise --env tls run python:test
355-
mise --env tls run proxy:down
356-
357-
echo
358-
echo '###############################################'
359-
echo '# Test: Golang'
360-
echo '###############################################'
361-
echo
362-
363-
mise --env tls run proxy:up proxy-tls --extra-args "--detach --wait"
364-
mise --env tls run test:wait_for_postgres_to_quack --port 6432 --max-retries 20 --tls
365-
mise --env tls run test:integration:golang
366-
mise --env tls run proxy:down
367333
"""
368334

369335
[tasks."test:nextest"]

packages/eql-mapper/src/lib.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//! `eql-mapper` transforms SQL to SQL+EQL using a known database schema as a reference.
2-
32
mod dep;
43
mod display_helpers;
54
mod eql_mapper;
@@ -29,6 +28,7 @@ pub(crate) use transformation_rules::*;
2928

3029
#[cfg(test)]
3130
mod test {
31+
#[allow(dead_code)]
3232
use super::test_helpers::*;
3333
use super::type_check;
3434
use crate::col;
@@ -1403,6 +1403,7 @@ mod test {
14031403
type_check(schema, &statement).expect("named arrays should be supported");
14041404
}
14051405

1406+
#[test]
14061407
fn jsonb_operator_arrow() {
14071408
test_jsonb_operator("->");
14081409
}
@@ -1457,7 +1458,8 @@ mod test {
14571458
test_jsonb_operator("<@");
14581459
}
14591460

1460-
#[test]
1461+
// #[test]
1462+
#[allow(dead_code)]
14611463
fn jsonb_function_jsonb_path_query() {
14621464
test_jsonb_function(
14631465
"jsonb_path_query",
@@ -1470,7 +1472,7 @@ mod test {
14701472

14711473
// TODO: do we need to check that the RHS of JSON operators MUST be a Value node
14721474
// and not an arbitrary expression?
1473-
1475+
#[allow(dead_code)]
14741476
fn test_jsonb_function(fn_name: &str, args: Vec<ast::Expr>) {
14751477
let schema = resolver(schema! {
14761478
tables: {

0 commit comments

Comments
 (0)