UpdateLockReleaseOnTheHostTest an die eine Stelle für die Vertragsversion anpassen

Task 2 hat HOST_STEP_NEEDS=3 in update.sh durch release_host_step_needs()
ersetzt (deploy/lib/release.sh). Dieser Test prüfte bislang den nackten
literalen String und wäre sonst der einzige verbliebene Ort, der die alte
Verdopplung verlangt.
main
nexxo 2026-08-04 17:22:05 +02:00
parent 512fad11fb
commit 55afbf133d
1 changed files with 5 additions and 1 deletions

View File

@ -223,5 +223,9 @@ it('grants the new step in sudoers and raises the contract for it', function ()
expect($installer)->toContain('release-update-lock)')
->and($installer)->toContain('$HOST_STEP release-update-lock')
->and($installer)->toContain('CONTRACT=3')
->and($updater)->toContain('HOST_STEP_NEEDS=3');
// Die gebrauchte Vertragsversion steht seit deploy/lib/release.sh nur
// noch an einer Stelle (release_host_step_needs); update.sh fragt sie
// ab, statt sie ein zweites Mal als Zahl mitzuführen. Siehe
// tests/Feature/HostStepContractTest.php.
->and($updater)->toContain('release_host_step_needs');
});