From 7f79c782bd1e8de7676e39f3eede7cebba3bc2f3 Mon Sep 17 00:00:00 2001 From: Phil Freeman Date: Tue, 27 Feb 2024 14:32:18 -0800 Subject: [PATCH] add back report() --- Cargo.lock | 4 ++-- rust-connector-sdk/Cargo.toml | 4 ++-- rust-connector-sdk/src/default_main.rs | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f8abbefc..90fa03b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1028,7 +1028,7 @@ dependencies = [ [[package]] name = "ndc-client" version = "0.1.0" -source = "git+http://github.com/hasura/ndc-spec.git?rev=0a7052750b705863419feadf2c80bd9a38a64923#0a7052750b705863419feadf2c80bd9a38a64923" +source = "git+http://github.com/hasura/ndc-spec.git?rev=d8f6160b577820db5adaa987c6c70587dd463c47#d8f6160b577820db5adaa987c6c70587dd463c47" dependencies = [ "async-trait", "indexmap 2.1.0", @@ -1081,7 +1081,7 @@ dependencies = [ [[package]] name = "ndc-test" version = "0.1.0" -source = "git+http://github.com/hasura/ndc-spec.git?rev=0a7052750b705863419feadf2c80bd9a38a64923#0a7052750b705863419feadf2c80bd9a38a64923" +source = "git+http://github.com/hasura/ndc-spec.git?rev=d8f6160b577820db5adaa987c6c70587dd463c47#d8f6160b577820db5adaa987c6c70587dd463c47" dependencies = [ "async-trait", "clap", diff --git a/rust-connector-sdk/Cargo.toml b/rust-connector-sdk/Cargo.toml index 3defa026..0d6540f2 100644 --- a/rust-connector-sdk/Cargo.toml +++ b/rust-connector-sdk/Cargo.toml @@ -13,8 +13,8 @@ path = "bin/main.rs" [dependencies] gdc_rust_types = { git = "https://github.com/hasura/gdc_rust_types.git", rev = "3273434" } -ndc-client = { git = "http://github.com/hasura/ndc-spec.git", rev = "0a7052750b705863419feadf2c80bd9a38a64923" } -ndc-test = { git = "http://github.com/hasura/ndc-spec.git", rev = "0a7052750b705863419feadf2c80bd9a38a64923" } +ndc-client = { git = "http://github.com/hasura/ndc-spec.git", rev = "d8f6160b577820db5adaa987c6c70587dd463c47" } +ndc-test = { git = "http://github.com/hasura/ndc-spec.git", rev = "d8f6160b577820db5adaa987c6c70587dd463c47" } async-trait = "^0.1.74" axum = "^0.6.20" diff --git a/rust-connector-sdk/src/default_main.rs b/rust-connector-sdk/src/default_main.rs index 4122f680..e21f3726 100644 --- a/rust-connector-sdk/src/default_main.rs +++ b/rust-connector-sdk/src/default_main.rs @@ -545,8 +545,8 @@ async fn test( ndc_test::test_connector(&test_configuration, &connector, &mut reporter).await; if !reporter.1.failures.is_empty() { - // println!(); - // println!("{}", report(reporter.1)); + println!(); + println!("{}", reporter.1.report()); exit(1) } @@ -564,8 +564,8 @@ async fn replay( ndc_test::test_snapshots_in_directory(&connector, &mut reporter, command.snapshots_dir).await; if !reporter.1.failures.is_empty() { - // println!(); - // println!("{}", report(reporter.1)); + println!(); + println!("{}", reporter.1.report()); exit(1) }