You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-examples/workflows/README.md
+33-42Lines changed: 33 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ expected_stdout_lines:
24
24
- 'Started WorkflowPatternsApplication'
25
25
background: true
26
26
expected_return_code: 143
27
-
timeout_seconds: 180
27
+
timeout_seconds: 120
28
28
-->
29
29
<!-- Timeout for above service must be more than sleep + timeout for the client-->
30
30
@@ -34,15 +34,6 @@ timeout_seconds: 180
34
34
35
35
<!-- END_STEP -->
36
36
37
-
<!-- STEP
38
-
name: Wait until app is ready
39
-
match_order: none
40
-
output_match_mode: substring
41
-
expected_stdout_lines:
42
-
background: false
43
-
sleep: 20
44
-
-->
45
-
<!-- END_STEP -->
46
37
By running the `spring-boot:test-run` goal, the application is loaded using the [test configurations](src/test/java/io/dapr/springboot/examples/wfp/DaprTestContainersConfig.java)
47
38
configured using [Testcontainers](https://testcontainers.com) to boostrap the [Dapr](https://dapr.io) sidecar and control plane.
48
39
@@ -74,15 +65,15 @@ match_order: none
74
65
output_match_mode: substring
75
66
expected_stdout_lines:
76
67
- 'TOKYO, LONDON, SEATTLE'
77
-
background: false
78
-
timeout_seconds: 10
68
+
background: true
69
+
timeout_seconds: 60
79
70
-->
80
71
<!-- Timeout for above service must be more than sleep + timeout for the client-->
81
72
82
73
To start the workflow with the three chained activities you can run:
83
74
84
75
```sh
85
-
curl -X POST localhost:8080/wfp/chain -H 'Content-Type: application/json'
76
+
sleep 25 &&curl -X POST localhost:8080/wfp/chain -H 'Content-Type: application/json'
86
77
```
87
78
88
79
<!-- END_STEP -->
@@ -151,15 +142,15 @@ match_order: none
151
142
output_match_mode: substring
152
143
expected_stdout_lines:
153
144
- '!wolfkroW rpaD olleH'
154
-
background: false
155
-
timeout_seconds: 10
145
+
background: true
146
+
timeout_seconds: 60
156
147
-->
157
148
<!-- Timeout for above service must be more than sleep + timeout for the client-->
158
149
159
150
To start the workflow with the three chained activities you can run:
160
151
161
152
```sh
162
-
curl -X POST localhost:8080/wfp/child -H 'Content-Type: application/json'
153
+
sleep 25 &&curl -X POST localhost:8080/wfp/child -H 'Content-Type: application/json'
163
154
```
164
155
165
156
<!-- END_STEP -->
@@ -200,13 +191,13 @@ match_order: none
200
191
output_match_mode: substring
201
192
expected_stdout_lines:
202
193
- '{"cleanUpTimes":5}'
203
-
background: false
204
-
timeout_seconds: 15
194
+
background: true
195
+
timeout_seconds: 60
205
196
-->
206
197
<!-- Timeout for above service must be more than sleep + timeout for the client-->
207
198
208
199
```sh
209
-
curl -X POST localhost:8080/wfp/continueasnew -H 'Content-Type: application/json'
200
+
sleep 30 &&curl -X POST localhost:8080/wfp/continueasnew -H 'Content-Type: application/json'
210
201
```
211
202
212
203
<!-- END_STEP -->
@@ -269,13 +260,13 @@ To start the workflow you can run:
269
260
name: Start External Event Workflow
270
261
match_order: none
271
262
output_match_mode: substring
272
-
background: false
273
-
timeout_seconds: 10
263
+
background: true
264
+
timeout_seconds: 60
274
265
-->
275
266
<!-- Timeout for above service must be more than sleep + timeout for the client-->
276
267
277
268
```sh
278
-
curl -X POST "localhost:8080/wfp/externalevent?orderId=123" -H 'Content-Type: application/json'
269
+
sleep 30 &&curl -X POST "localhost:8080/wfp/externalevent?orderId=123" -H 'Content-Type: application/json'
279
270
```
280
271
281
272
<!-- END_STEP -->
@@ -299,15 +290,15 @@ match_order: none
299
290
output_match_mode: substring
300
291
expected_stdout_lines:
301
292
- '{"approved":true}'
302
-
background: false
303
-
timeout_seconds: 10
293
+
background: true
294
+
timeout_seconds: 60
304
295
-->
305
296
<!-- Timeout for above service must be more than sleep + timeout for the client-->
306
297
307
298
To send the event you can run:
308
299
309
300
```sh
310
-
curl -X POST "localhost:8080/wfp/externalevent-continue?orderId=123&decision=true" -H 'Content-Type: application/json'
301
+
sleep 42 &&curl -X POST "localhost:8080/wfp/externalevent-continue?orderId=123&decision=true" -H 'Content-Type: application/json'
311
302
```
312
303
313
304
<!-- END_STEP -->
@@ -355,13 +346,13 @@ match_order: none
355
346
output_match_mode: substring
356
347
expected_stdout_lines:
357
348
- '{"wordCount":60}'
358
-
background: false
359
-
timeout_seconds: 10
349
+
background: true
350
+
timeout_seconds: 60
360
351
-->
361
352
<!-- Timeout for above service must be more than sleep + timeout for the client-->
362
353
363
354
```sh
364
-
curl -X POST localhost:8080/wfp/fanoutin -H 'Content-Type: application/json' -d @body.json
0 commit comments