From 914c69d7c2983762e40ebdb57d7d0ace85b43e66 Mon Sep 17 00:00:00 2001 From: Rohit Sachdeva Date: Wed, 25 Sep 2024 10:31:14 -0500 Subject: [PATCH] Update the check command help to refer to the Hybrid Integration Testing Tool section in the README for sample input instructions --- README.md | 9 ++++++--- drive-deposits-check-cmd/src/main.rs | 14 ++------------ justfile | 3 +++ 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index a81a8cc..e4d4a15 100644 --- a/README.md +++ b/README.md @@ -313,9 +313,12 @@ Key features: * Sends calculations to EventBridge for comprehensive sanity testing * Validates event routing to appropriate destinations (log groups, AWS Lambda functions, DynamoDB) * Allows developers to verify end-to-end flow of calculations, event handling, and data persistence - Execute the tool with: - `just run-drive-deposits-check-cmd-valid-send-events` - This streamlined approach significantly enhances development efficiency and system reliability testing. + +Execute the tool with: + +`just run-drive-deposits-check-cmd-valid-send-events` + +This streamlined approach significantly enhances development efficiency and system reliability testing. ###### Alias diff --git a/drive-deposits-check-cmd/src/main.rs b/drive-deposits-check-cmd/src/main.rs index 54577b7..984b478 100644 --- a/drive-deposits-check-cmd/src/main.rs +++ b/drive-deposits-check-cmd/src/main.rs @@ -12,26 +12,16 @@ use drive_deposits_check_cmd::portfolio::calculate::process_input; /// The data types used in this command are consistent with those in the actual services, ensuring a dependable method for rapid local verification of calculations. /// Use this command to verify calculations locally. /// -/// ### Sample Commands -/// Run the following commands through Cargo or directly with the binary: -/// -/// - To check the version: `cargo run -- --version` -/// -/// - For help: `cargo run -- --help` -/// -/// - To run with a sample input file: `cargo run -- tests/data/input.json` +/// To run with a sample input file: see the "Hybrid Integration Testing Tool" section in the README.md file. /// struct Args { - /// Input text + /// Input json file path #[arg(required(true))] json_request_file_path: String, } #[tokio::main] async fn main() -> Result<()> { - let rust_log = std::env::var("RUST_LOG")?; - println!("in drive-deposits-check-cmd RUST_LOG is {}", rust_log); - registry() .with(EnvFilter::try_from_default_env()?) // added in .cargo/config.tom .add_directive("drive_deposits_local=debug".parse()?)) diff --git a/justfile b/justfile index 385139c..19ce5bc 100644 --- a/justfile +++ b/justfile @@ -78,6 +78,9 @@ watch-build-drive-deposits-grpc-server: run-drive-deposits-check-cmd-valid: SEND_CAL_EVENTS="false" cargo ddcheck -- drive-deposits-rest-gateway-server/data/portfolio_request_valid.json +run-drive-deposits-check-cmd-help: + SEND_CAL_EVENTS="true" cargo ddcheck -- --help + run-drive-deposits-check-cmd-valid-send-events: SEND_CAL_EVENTS="true" cargo ddcheck -- drive-deposits-rest-gateway-server/data/portfolio_request_valid.json