@@ -21,6 +21,7 @@ import (
21
21
"github.com/dapr/dapr/tests/integration/framework/process/daprd"
22
22
"github.com/dapr/dapr/tests/integration/framework/process/exec"
23
23
"github.com/dapr/dapr/tests/integration/framework/process/logline"
24
+ "github.com/dapr/dapr/tests/integration/framework/process/placement"
24
25
"github.com/dapr/dapr/tests/integration/suite"
25
26
)
26
27
@@ -31,6 +32,7 @@ func init() {
31
32
// dapr ensures that a component with the name `dapr` can be loaded.
32
33
type dapr struct {
33
34
daprd * daprd.Daprd
35
+ place * placement.Placement
34
36
logline * logline.LogLine
35
37
}
36
38
@@ -42,8 +44,13 @@ func (d *dapr) Setup(t *testing.T) []framework.Option {
42
44
),
43
45
)
44
46
45
- d .daprd = daprd .New (t , daprd .WithResourceFiles (
46
- `apiVersion: dapr.io/v1alpha1
47
+ d .place = placement .New (t )
48
+
49
+ d .daprd = daprd .New (t ,
50
+ daprd .WithPlacementAddresses (d .place .Address ()),
51
+ daprd .WithInMemoryActorStateStore ("mystore" ),
52
+ daprd .WithResourceFiles (
53
+ `apiVersion: dapr.io/v1alpha1
47
54
kind: Component
48
55
metadata:
49
56
name: dapr
@@ -56,10 +63,13 @@ spec:
56
63
),
57
64
)
58
65
return []framework.Option {
59
- framework .WithProcesses (d .logline , d .daprd ),
66
+ framework .WithProcesses (d .logline , d .place , d . daprd ),
60
67
}
61
68
}
62
69
63
70
func (d * dapr ) Run (t * testing.T , ctx context.Context ) {
71
+ d .place .WaitUntilRunning (t , ctx )
72
+ d .daprd .WaitUntilRunning (t , ctx )
73
+
64
74
d .logline .EventuallyFoundAll (t )
65
75
}
0 commit comments