@@ -27,11 +27,11 @@ Run the following command in a terminal/command prompt:
2727<!-- STEP
2828name: Run subscriber
2929expected_stdout_lines:
30- - "== APP == Processing message: {'id': 1, 'message': 'hello world'} from TOPIC_A ..."
31- - "== APP == Processing message: {'id': 2, 'message': 'hello world'} from TOPIC_A ..."
32- - "== APP == Processing message: {'id': 3, 'message': 'hello world'} from TOPIC_A ..."
33- - "== APP == Processing message: {'id': 4, 'message': 'hello world'} from TOPIC_A ..."
34- - "== APP == Processing message: {'id': 5, 'message': 'hello world'} from TOPIC_A ..."
30+ - "== APP == Processing message: {'id': 1, 'message': 'hello world'} from TOPIC_B1 ..."
31+ - "== APP == Processing message: {'id': 2, 'message': 'hello world'} from TOPIC_B1 ..."
32+ - "== APP == Processing message: {'id': 3, 'message': 'hello world'} from TOPIC_B1 ..."
33+ - "== APP == Processing message: {'id': 4, 'message': 'hello world'} from TOPIC_B1 ..."
34+ - "== APP == Processing message: {'id': 5, 'message': 'hello world'} from TOPIC_B1 ..."
3535 - "== APP == Closing subscription..."
3636output_match_mode: substring
3737background: true
@@ -41,7 +41,7 @@ sleep: 3
4141
4242``` bash
4343# 1. Start Subscriber
44- dapr run --app-id python-subscriber --app-protocol grpc python3 subscriber.py
44+ dapr run --app-id python-subscriber --app-protocol grpc -- python3 subscriber.py --topic=TOPIC_B1
4545```
4646
4747<!-- END_STEP -->
@@ -63,7 +63,7 @@ sleep: 15
6363
6464``` bash
6565# 2. Start Publisher
66- dapr run --app-id python-publisher --app-protocol grpc --dapr-grpc-port=3500 --enable-app-health-check python3 publisher.py
66+ dapr run --app-id python-publisher --app-protocol grpc --dapr-grpc-port=3500 --enable-app-health-check -- python3 publisher.py --topic=TOPIC_B1
6767```
6868
6969<!-- END_STEP -->
@@ -75,11 +75,11 @@ Run the following command in a terminal/command prompt:
7575<!-- STEP
7676name: Run subscriber
7777expected_stdout_lines:
78- - "== APP == Processing message: {'id': 1, 'message': 'hello world'} from TOPIC_A ..."
79- - "== APP == Processing message: {'id': 2, 'message': 'hello world'} from TOPIC_A ..."
80- - "== APP == Processing message: {'id': 3, 'message': 'hello world'} from TOPIC_A ..."
81- - "== APP == Processing message: {'id': 4, 'message': 'hello world'} from TOPIC_A ..."
82- - "== APP == Processing message: {'id': 5, 'message': 'hello world'} from TOPIC_A ..."
78+ - "== APP == Processing message: {'id': 1, 'message': 'hello world'} from TOPIC_B2 ..."
79+ - "== APP == Processing message: {'id': 2, 'message': 'hello world'} from TOPIC_B2 ..."
80+ - "== APP == Processing message: {'id': 3, 'message': 'hello world'} from TOPIC_B2 ..."
81+ - "== APP == Processing message: {'id': 4, 'message': 'hello world'} from TOPIC_B2 ..."
82+ - "== APP == Processing message: {'id': 5, 'message': 'hello world'} from TOPIC_B2 ..."
8383 - "== APP == Closing subscription..."
8484output_match_mode: substring
8585background: true
@@ -89,7 +89,7 @@ sleep: 3
8989
9090``` bash
9191# 1. Start Subscriber
92- dapr run --app-id python-subscriber --app-protocol grpc python3 subscriber-handler.py
92+ dapr run --app-id python-subscriber --app-protocol grpc -- python3 subscriber-handler.py --topic=TOPIC_B2
9393```
9494
9595<!-- END_STEP -->
@@ -111,7 +111,7 @@ sleep: 15
111111
112112``` bash
113113# 2. Start Publisher
114- dapr run --app-id python-publisher --app-protocol grpc --dapr-grpc-port=3500 --enable-app-health-check python3 publisher.py
114+ dapr run --app-id python-publisher --app-protocol grpc --dapr-grpc-port=3500 --enable-app-health-check -- python3 publisher.py --topic=TOPIC_B2
115115```
116116
117117<!-- END_STEP -->
0 commit comments