Commit 57969b7
committed
Fix test: check peer key instead of cluster.pem for join rejection
The cluster.pem file is created during master startup in MasterKeys._setup_keys(),
regardless of whether the autoscale join succeeds or fails.
When join is rejected (e.g., missing cluster_pub_signature), the discover-reply
handler returns early before writing the bootstrap master's peer key to the
peers directory.
Updated test to check for the absence of the bootstrap master's peer key file
(<cluster_pki_dir>/peers/<bootstrap-id>.pub) as the correct indicator that
join was rejected.1 parent 8c12dfb commit 57969b7
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
529 | 529 | | |
530 | | - | |
| 530 | + | |
531 | 531 | | |
532 | | - | |
533 | | - | |
| 532 | + | |
| 533 | + | |
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| |||
0 commit comments