mirror of https://github.com/dapr/go-sdk.git
chore: remove dapr stop steps and add appropriate timeouts (#573)
Signed-off-by: mikeee <hey@mike.ee>
This commit is contained in:
parent
4a9f1800b6
commit
7c03c7ce58
|
@ -21,6 +21,7 @@ expected_stdout_lines:
|
||||||
- '== APP == receive reminder = testReminderName state = "hello" duetime = 5s period = 5s'
|
- '== APP == receive reminder = testReminderName state = "hello" duetime = 5s period = 5s'
|
||||||
background: true
|
background: true
|
||||||
sleep: 30
|
sleep: 30
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -54,6 +55,7 @@ expected_stdout_lines:
|
||||||
|
|
||||||
background: true
|
background: true
|
||||||
sleep: 40
|
sleep: 40
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -67,20 +69,11 @@ dapr run --app-id actor-client \
|
||||||
|
|
||||||
### Cleanup
|
### Cleanup
|
||||||
|
|
||||||
<!-- STEP
|
|
||||||
expected_stdout_lines:
|
|
||||||
- '✅ app stopped successfully: actor-serving'
|
|
||||||
expected_stderr_lines:
|
|
||||||
name: Shutdown dapr
|
|
||||||
-->
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dapr stop --app-id actor-serving
|
dapr stop --app-id actor-serving
|
||||||
(lsof -i:8080 | grep main) | awk '{print $2}' | xargs kill
|
(lsof -i:8080 | grep main) | awk '{print $2}' | xargs kill
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- END_STEP -->
|
|
||||||
|
|
||||||
## Result
|
## Result
|
||||||
- client side
|
- client side
|
||||||
```
|
```
|
||||||
|
@ -108,4 +101,4 @@ dapr stop --app-id actor-serving
|
||||||
== APP == get req = hello
|
== APP == get req = hello
|
||||||
== APP == receive reminder = testReminderName state = "hello" duetime = 5s period = 5s
|
== APP == receive reminder = testReminderName state = "hello" duetime = 5s period = 5s
|
||||||
== APP == receive reminder = testReminderName state = "hello" duetime = 5s period = 5s
|
== APP == receive reminder = testReminderName state = "hello" duetime = 5s period = 5s
|
||||||
```
|
```
|
||||||
|
|
|
@ -26,6 +26,7 @@ expected_stdout_lines:
|
||||||
- '== APP == dapr configuration subscribe finished.'
|
- '== APP == dapr configuration subscribe finished.'
|
||||||
background: false
|
background: false
|
||||||
sleep: 40
|
sleep: 40
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -18,6 +18,7 @@ expected_stdout_lines:
|
||||||
- 'Received: Dapr'
|
- 'Received: Dapr'
|
||||||
background: true
|
background: true
|
||||||
sleep: 30
|
sleep: 30
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -39,6 +40,7 @@ expected_stdout_lines:
|
||||||
output_match_mode: substring
|
output_match_mode: substring
|
||||||
background: true
|
background: true
|
||||||
sleep: 15
|
sleep: 15
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -50,15 +52,6 @@ dapr run --app-id grpc-client \
|
||||||
|
|
||||||
### Cleanup
|
### Cleanup
|
||||||
|
|
||||||
<!-- STEP
|
|
||||||
expected_stdout_lines:
|
|
||||||
- '✅ app stopped successfully: grpc-server'
|
|
||||||
expected_stderr_lines:
|
|
||||||
name: Shutdown dapr
|
|
||||||
-->
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dapr stop --app-id grpc-server
|
dapr stop --app-id grpc-server
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- END_STEP -->
|
|
||||||
|
|
|
@ -82,6 +82,7 @@ There are two ways to launch Dapr applications. You can pass the app executable
|
||||||
name: Run and send order
|
name: Run and send order
|
||||||
background: true
|
background: true
|
||||||
sleep: 5
|
sleep: 5
|
||||||
|
timeout_seconds: 60
|
||||||
expected_stdout_lines:
|
expected_stdout_lines:
|
||||||
- '== APP == dapr client initializing for: 127.0.0.1:3500'
|
- '== APP == dapr client initializing for: 127.0.0.1:3500'
|
||||||
- '== APP == Sending order ID 20'
|
- '== APP == Sending order ID 20'
|
||||||
|
@ -98,6 +99,7 @@ dapr run --app-id order-app --dapr-grpc-port 3500 --log-level error -- ./order p
|
||||||
name: Run and get order
|
name: Run and get order
|
||||||
background: true
|
background: true
|
||||||
sleep: 5
|
sleep: 5
|
||||||
|
timeout_seconds: 60
|
||||||
expected_stdout_lines:
|
expected_stdout_lines:
|
||||||
- '== APP == dapr client initializing for: 127.0.0.1:3500'
|
- '== APP == dapr client initializing for: 127.0.0.1:3500'
|
||||||
- '== APP == Getting order'
|
- '== APP == Getting order'
|
||||||
|
|
|
@ -21,6 +21,7 @@ expected_stdout_lines:
|
||||||
- 'event - PubsubName: messages, Topic: neworder'
|
- 'event - PubsubName: messages, Topic: neworder'
|
||||||
background: true
|
background: true
|
||||||
sleep: 15
|
sleep: 15
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -43,6 +44,7 @@ expected_stdout_lines:
|
||||||
- '== APP == data published'
|
- '== APP == data published'
|
||||||
background: true
|
background: true
|
||||||
sleep: 15
|
sleep: 15
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -58,20 +60,11 @@ dapr run --app-id pub \
|
||||||
|
|
||||||
### Cleanup
|
### Cleanup
|
||||||
|
|
||||||
<!-- STEP
|
|
||||||
expected_stdout_lines:
|
|
||||||
- '✅ app stopped successfully: sub'
|
|
||||||
expected_stderr_lines:
|
|
||||||
name: Shutdown dapr
|
|
||||||
-->
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dapr stop --app-id sub
|
dapr stop --app-id sub
|
||||||
(lsof -i:8080 | grep sub) | awk '{print $2}' | xargs kill
|
(lsof -i:8080 | grep sub) | awk '{print $2}' | xargs kill
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- END_STEP -->
|
|
||||||
|
|
||||||
## Result
|
## Result
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
|
@ -17,6 +17,7 @@ expected_stdout_lines:
|
||||||
- "ContentType:text/plain, Verb:POST, QueryString:, hellow"
|
- "ContentType:text/plain, Verb:POST, QueryString:, hellow"
|
||||||
background: true
|
background: true
|
||||||
sleep: 15
|
sleep: 15
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -60,6 +61,7 @@ expected_stdout_lines:
|
||||||
- '== APP == output binding invoked'
|
- '== APP == output binding invoked'
|
||||||
background: true
|
background: true
|
||||||
sleep: 15
|
sleep: 15
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -155,17 +157,7 @@ Uses the [config/cron.yaml](config/cron.yaml) component
|
||||||
|
|
||||||
### Cleanup
|
### Cleanup
|
||||||
|
|
||||||
<!-- STEP
|
|
||||||
expected_stdout_lines:
|
|
||||||
- '✅ app stopped successfully: serving'
|
|
||||||
expected_stderr_lines:
|
|
||||||
name: Shutdown dapr
|
|
||||||
-->
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dapr stop --app-id serving
|
dapr stop --app-id serving
|
||||||
(lsof -i:8080 | grep main) | awk '{print $2}' | xargs kill
|
(lsof -i:8080 | grep main) | awk '{print $2}' | xargs kill
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- END_STEP -->
|
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,7 @@ There are two ways to launch Dapr applications. You can pass the app executable
|
||||||
name: Run and send order
|
name: Run and send order
|
||||||
background: true
|
background: true
|
||||||
sleep: 5
|
sleep: 5
|
||||||
|
timeout_seconds: 60
|
||||||
expected_stdout_lines:
|
expected_stdout_lines:
|
||||||
- '== APP == dapr client initializing for: /tmp/dapr-order-app-grpc.socket'
|
- '== APP == dapr client initializing for: /tmp/dapr-order-app-grpc.socket'
|
||||||
- '== APP == Sending order ID 20'
|
- '== APP == Sending order ID 20'
|
||||||
|
@ -86,6 +87,7 @@ dapr run --app-id order-app --log-level error --unix-domain-socket /tmp -- ./ord
|
||||||
name: Run and get order
|
name: Run and get order
|
||||||
background: true
|
background: true
|
||||||
sleep: 5
|
sleep: 5
|
||||||
|
timeout_seconds: 60
|
||||||
expected_stdout_lines:
|
expected_stdout_lines:
|
||||||
- '== APP == dapr client initializing for: /tmp/dapr-order-app-grpc.socket'
|
- '== APP == dapr client initializing for: /tmp/dapr-order-app-grpc.socket'
|
||||||
- '== APP == Getting order'
|
- '== APP == Getting order'
|
||||||
|
|
|
@ -23,6 +23,7 @@ expected_stdout_lines:
|
||||||
|
|
||||||
background: true
|
background: true
|
||||||
sleep: 30
|
sleep: 30
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -40,6 +40,7 @@ expected_stdout_lines:
|
||||||
|
|
||||||
background: true
|
background: true
|
||||||
sleep: 60
|
sleep: 60
|
||||||
|
timeout_seconds: 60
|
||||||
-->
|
-->
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
Loading…
Reference in New Issue