From 23a848b11d023e7f74f917cd88c503700fad25ad Mon Sep 17 00:00:00 2001 From: mikeee Date: Wed, 20 Mar 2024 19:29:36 +0000 Subject: [PATCH 1/3] chore: fix pubsub validation example Signed-off-by: mikeee --- examples/pubsub/README.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/examples/pubsub/README.md b/examples/pubsub/README.md index 141d032..577ef6c 100644 --- a/examples/pubsub/README.md +++ b/examples/pubsub/README.md @@ -23,12 +23,22 @@ name: Run Subscriber output_match_mode: substring match_order: none expected_stdout_lines: - - '== APP - rust-subscriber == Message: 0 => hello from rust!' - - '== APP - rust-subscriber == Content-Type: text/plain' - - '== APP - rust-subscriber == Message: 1 => hello from rust!' - - '== APP - rust-subscriber == Content-Type: text/plain' - - '== APP - rust-subscriber == Message: 2 => hello from rust!' - - '== APP - rust-subscriber == Content-Type: text/plain' + - '== APP - rust-subscriber == Topic A - Order {' + - '== APP - rust-subscriber == order_number: 0,' + - '== APP - rust-subscriber == order_details: "Count is 0",' + - '== APP - rust-subscriber == }' + - '== APP - rust-subscriber == Topic A - Order {' + - '== APP - rust-subscriber == order_number: 9,' + - '== APP - rust-subscriber == order_details: "Count is 9",' + - '== APP - rust-subscriber == }' + - '== APP - rust-subscriber == Topic B - Refund {' + - '== APP - rust-subscriber == order_number: 0,' + - '== APP - rust-subscriber == refund_amount: 1200,' + - '== APP - rust-subscriber == }' + - '== APP - rust-subscriber == Topic B - Refund {' + - '== APP - rust-subscriber == order_number: 9,' + - '== APP - rust-subscriber == refund_amount: 1200,' + - '== APP - rust-subscriber == }' - '== APP - rust-publisher == messages published' background: true sleep: 30 @@ -54,4 +64,4 @@ dapr run --app-id rust-subscriber --app-protocol grpc --app-port 50051 cargo run 2. Run the publisher with dapr ```bash dapr run --app-id rust-publisher --app-protocol grpc cargo run -- --example publisher -``` \ No newline at end of file +``` From ca9e074b9143798ec0541dedf0c67b052948452e Mon Sep 17 00:00:00 2001 From: mikeee Date: Wed, 20 Mar 2024 19:49:00 +0000 Subject: [PATCH 2/3] fix: change match_order to sequential Signed-off-by: mikeee --- examples/pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pubsub/README.md b/examples/pubsub/README.md index 577ef6c..ff98018 100644 --- a/examples/pubsub/README.md +++ b/examples/pubsub/README.md @@ -21,7 +21,7 @@ To run this example: