test(deploy): guard unreadable staging revision fallback
This commit is contained in:
@@ -398,6 +398,13 @@ test("staging deployment scripts validate deploy-owned env files", () => {
|
||||
}
|
||||
});
|
||||
|
||||
test("staging revision discovery falls back when the state file is unreadable", () => {
|
||||
assert.ok(read(deployWorkflow).includes('if [ -r \\"\\$state\\" ]'));
|
||||
for (const runner of [read(deployScript), read(migrationScript)]) {
|
||||
assert.ok(runner.includes('if [ -r "$state_directory/deployed-revision" ]'));
|
||||
}
|
||||
});
|
||||
|
||||
test("quality gate builds the Python package with its declared backend dependencies", () => {
|
||||
const workflow = read(qualityWorkflow);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user