@@ -72,6 +72,7 @@ pub async fn start_echo_actor(
72
72
) {
73
73
let cmd = protocol:: Command :: StartActor {
74
74
actor_id,
75
+ generation : 0 ,
75
76
config : Box :: new ( protocol:: ActorConfig {
76
77
image : protocol:: Image {
77
78
id : Uuid :: nil ( ) ,
@@ -101,10 +102,6 @@ pub async fn start_echo_actor(
101
102
memory_max : 15 * 1024 * 1024 ,
102
103
disk : 15 ,
103
104
} ,
104
- owner : protocol:: ActorOwner :: DynamicServer {
105
- server_id : actor_id,
106
- workflow_id : Uuid :: new_v4 ( ) ,
107
- } ,
108
105
metadata : protocol:: Raw :: new ( & protocol:: ActorMetadata {
109
106
actor : protocol:: ActorMetadataActor {
110
107
actor_id,
@@ -131,6 +128,7 @@ pub async fn start_echo_actor(
131
128
build : protocol:: ActorMetadataBuild {
132
129
build_id : Uuid :: nil ( ) ,
133
130
} ,
131
+ network : None ,
134
132
} )
135
133
. unwrap ( ) ,
136
134
} ) ,
@@ -145,6 +143,7 @@ pub async fn start_js_echo_actor(
145
143
) {
146
144
let cmd = protocol:: Command :: StartActor {
147
145
actor_id,
146
+ generation : 0 ,
148
147
config : Box :: new ( protocol:: ActorConfig {
149
148
image : protocol:: Image {
150
149
id : Uuid :: nil ( ) ,
@@ -172,10 +171,6 @@ pub async fn start_js_echo_actor(
172
171
memory_max : 15 * 1024 * 1024 ,
173
172
disk : 15 ,
174
173
} ,
175
- owner : protocol:: ActorOwner :: DynamicServer {
176
- server_id : actor_id,
177
- workflow_id : Uuid :: new_v4 ( ) ,
178
- } ,
179
174
metadata : protocol:: Raw :: new ( & protocol:: ActorMetadata {
180
175
actor : protocol:: ActorMetadataActor {
181
176
actor_id,
@@ -202,6 +197,7 @@ pub async fn start_js_echo_actor(
202
197
build : protocol:: ActorMetadataBuild {
203
198
build_id : Uuid :: nil ( ) ,
204
199
} ,
200
+ network : None ,
205
201
} )
206
202
. unwrap ( ) ,
207
203
} ) ,
@@ -262,8 +258,7 @@ pub async fn init_client(gen_path: &Path, working_path: &Path) -> Config {
262
258
data_dir : Some ( working_path. to_path_buf ( ) ) ,
263
259
cluster : Cluster {
264
260
client_id : Uuid :: new_v4 ( ) ,
265
- datacenter_id : Uuid :: new_v4 ( ) ,
266
- pegboard_endpoint : Url :: parse ( "ws://127.0.0.1:5030" ) . unwrap ( ) ,
261
+ ws_addresses : Addresses :: Static ( vec ! [ "ws://127.0.0.1:5030" . to_string( ) ] ) ,
267
262
// Not necessary for the test
268
263
api_endpoint : Url :: parse ( "http://127.0.0.1" ) . unwrap ( ) ,
269
264
} ,
@@ -328,11 +323,7 @@ pub async fn start_client(
328
323
url. set_port ( Some ( port) ) . unwrap ( ) ;
329
324
url. set_path ( & format ! ( "/v{PROTOCOL_VERSION}" ) ) ;
330
325
url. query_pairs_mut ( )
331
- . append_pair ( "client_id" , & config. client . cluster . client_id . to_string ( ) )
332
- . append_pair (
333
- "datacenter_id" ,
334
- & config. client . cluster . datacenter_id . to_string ( ) ,
335
- ) ;
326
+ . append_pair ( "client_id" , & config. client . cluster . client_id . to_string ( ) ) ;
336
327
337
328
tracing:: info!( "connecting to ws: {url}" ) ;
338
329
@@ -375,7 +366,7 @@ pub async fn build_binaries(gen_path: &Path) {
375
366
. arg ( "pegboard-echo-server" )
376
367
. arg ( "-f" )
377
368
. arg ( pkg_path. join ( format ! ( "echo" ) ) . join ( "Dockerfile" ) )
378
- . arg ( pkg_path. join ( ".." ) . join ( ".." ) . join ( ".." ) )
369
+ . arg ( pkg_path. join ( ".." ) . join ( ".." ) . join ( ".." ) . join ( ".." ) )
379
370
. status ( )
380
371
. await
381
372
. unwrap ( ) ;
@@ -431,7 +422,7 @@ async fn build_runner(gen_path: &Path, variant: &str) {
431
422
. join ( format ! ( "{variant}-runner" ) )
432
423
. join ( "Dockerfile" ) ,
433
424
)
434
- . arg ( pkg_path. join ( ".." ) . join ( ".." ) . join ( ".." ) )
425
+ . arg ( pkg_path. join ( ".." ) . join ( ".." ) . join ( ".." ) . join ( ".." ) )
435
426
. status ( )
436
427
. await
437
428
. unwrap ( ) ;
0 commit comments