Skip to content

Commit b904ff0

Browse files
committed
tests: fix validation examples
Signed-off-by: mikeee <[email protected]>
1 parent a116d27 commit b904ff0

File tree

5 files changed

+34
-8
lines changed

5 files changed

+34
-8
lines changed

.github/workflows/validate_examples.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ jobs:
279279
docker run --name "dapr_redis" --restart always -d -p 6379:6379 redislabs/rejson
280280
docker run --name "dapr_zipkin" --restart always -d -p 9411:9411 openzipkin/zipkin
281281
282+
docker ps -a
283+
282284
- name: Set up Python ${{ env.PYTHON_VER }}
283285
uses: actions/setup-python@v5
284286
with:

examples/hello-world/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ expected_stdout_lines:
8989
-->
9090

9191
```bash
92-
dapr run --app-id order-app --dapr-grpc-port 3500 --log-level error -- ./order put --id 20
92+
dapr run --app-id order-app --dapr-grpc-port 3500 --log-level error --resources-path ./config -- ./order put --id 20
9393
```
9494

9595
<!-- END_STEP -->
@@ -105,7 +105,7 @@ expected_stdout_lines:
105105
-->
106106

107107
```bash
108-
dapr run --app-id order-app --dapr-grpc-port 3500 --log-level error ./order get
108+
dapr run --app-id order-app --dapr-grpc-port 3500 --log-level error --resources-path ./config./order get
109109
```
110110

111111
<!-- END_STEP -->
@@ -116,7 +116,7 @@ dapr run --app-id order-app --dapr-grpc-port 3500 --log-level error ./order get
116116
Alternatively, you can start a standalone Dapr runtime, and call the app from another shell:
117117

118118
```bash
119-
dapr run --app-id order-app --dapr-grpc-port 3500 --log-level error
119+
dapr run --app-id order-app --dapr-grpc-port 3500 --log-level error --resources-path ./config
120120
```
121121

122122

@@ -140,7 +140,7 @@ You can run more than one app in Dapr runtime. In this example you will call `or
140140
Another instance of the `order` app will read the state.
141141

142142
```sh
143-
dapr run --app-id order-app --dapr-grpc-port 3500 --log-level error ./order seq
143+
dapr run --app-id order-app --dapr-grpc-port 3500 --log-level error --resources-path ./config ./order seq
144144
```
145145

146146
```sh
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: dapr.io/v1alpha1
2+
kind: Component
3+
metadata:
4+
name: statestore
5+
spec:
6+
type: state.redis
7+
version: v1
8+
metadata:
9+
- name: redisHost
10+
value: localhost:6379
11+
- name: redisPassword
12+
value: ""

examples/socket/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ expected_stdout_lines:
7777
-->
7878

7979
```bash
80-
dapr run --app-id order-app --log-level error --unix-domain-socket /tmp -- ./order put --id 20
80+
dapr run --app-id order-app --log-level error --resources-path ./config --unix-domain-socket /tmp -- ./order put --id 20
8181
```
8282

8383
<!-- END_STEP -->
@@ -93,15 +93,15 @@ expected_stdout_lines:
9393
-->
9494

9595
```bash
96-
dapr run --app-id order-app --log-level error --unix-domain-socket /tmp ./order get
96+
dapr run --app-id order-app --log-level error --resources-path ./config --unix-domain-socket /tmp ./order get
9797
```
9898

9999
<!-- END_STEP -->
100100

101101
Alternatively, you can start a standalone Dapr runtime, and call the app from another shell:
102102

103103
```bash
104-
dapr run --app-id order-app --log-level error --unix-domain-socket /tmp
104+
dapr run --app-id order-app --log-level error --resources-path ./config --unix-domain-socket /tmp
105105
```
106106

107107

@@ -124,7 +124,7 @@ You can run more than one app in Dapr runtime. In this example you will call `or
124124
Another instance of the `order` app will read the state.
125125

126126
```sh
127-
dapr run --app-id order-app --log-level error --unix-domain-socket /tmp ./order seq
127+
dapr run --app-id order-app --log-level error --resources-path ./config --unix-domain-socket /tmp ./order seq
128128
```
129129

130130
```sh

examples/socket/config/redis.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: dapr.io/v1alpha1
2+
kind: Component
3+
metadata:
4+
name: statestore
5+
spec:
6+
type: state.redis
7+
version: v1
8+
metadata:
9+
- name: redisHost
10+
value: localhost:6379
11+
- name: redisPassword
12+
value: ""

0 commit comments

Comments
 (0)