Repository navigation
Commit e575fe7
committed
test: cover a failed server delete during machine deletion
The delete path removes the finalizer only after the cloud reports the
server as deleted or as already gone. The other exit had no spec: a
deletion that answers with any other error must keep the object.
The new spec injects a transient error into the server delete, then
asserts that the reconcile returns that error, that the server is still
there, and that the finalizer still holds the object, so the next
attempt can find the instance ID.1 parent c17ac7d commit e575fe7
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
464 | 491 | | |
465 | 492 | | |
466 | 493 | | |
| |||
0 commit comments