@@ -27,11 +27,11 @@ Run the following command in a terminal/command prompt:
27
27
<!-- STEP
28
28
name: Run subscriber
29
29
expected_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 ..."
35
35
- "== APP == Closing subscription..."
36
36
output_match_mode: substring
37
37
background: true
@@ -41,7 +41,7 @@ sleep: 3
41
41
42
42
``` bash
43
43
# 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
45
45
```
46
46
47
47
<!-- END_STEP -->
@@ -63,7 +63,7 @@ sleep: 15
63
63
64
64
``` bash
65
65
# 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
67
67
```
68
68
69
69
<!-- END_STEP -->
@@ -75,11 +75,11 @@ Run the following command in a terminal/command prompt:
75
75
<!-- STEP
76
76
name: Run subscriber
77
77
expected_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 ..."
83
83
- "== APP == Closing subscription..."
84
84
output_match_mode: substring
85
85
background: true
@@ -89,7 +89,7 @@ sleep: 3
89
89
90
90
``` bash
91
91
# 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
93
93
```
94
94
95
95
<!-- END_STEP -->
@@ -111,7 +111,7 @@ sleep: 15
111
111
112
112
``` bash
113
113
# 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
115
115
```
116
116
117
117
<!-- END_STEP -->
0 commit comments