feat : upa
This commit is contained in:
@@ -162,18 +162,15 @@ describe("production deployment contract", () => {
|
||||
expect(route).toContain('"deployment-status"');
|
||||
});
|
||||
|
||||
it("announces deployment lifecycle results without blocking releases", async () => {
|
||||
it("announces incoming deployments without blocking releases", async () => {
|
||||
const [workflow, deployment] = await Promise.all([
|
||||
repositoryFile(".gitea/workflows/ci.yml"),
|
||||
repositoryFile("k8s/base/deployment.yaml"),
|
||||
]);
|
||||
|
||||
expect(workflow).toContain("Announce incoming deployment");
|
||||
expect(workflow).toContain("Publish deployment result");
|
||||
expect(workflow).toContain("if: always()");
|
||||
expect(workflow).toContain("continue-on-error: true");
|
||||
expect(workflow).toContain('status\\":\\"deploying');
|
||||
expect(workflow).toContain("DEPLOYMENT_JOB_STATUS");
|
||||
expect(workflow).toContain("/api/deployments/status");
|
||||
expect(deployment).toContain("DEPLOYMENT_WEBHOOK_SECRET");
|
||||
expect(deployment).toContain("optional: true");
|
||||
|
||||
Reference in New Issue
Block a user