add wait after staging deploy
Some checks failed
Build and push image for doorman-homeassistant / docker (push) Successful in 41s
Build and push Doorman UI / API / docker (push) Failing after 2m48s
Build and push image for doorman-homeassistant / deploy-gitainer (push) Successful in 5s

This commit is contained in:
Martin Dimitrov 2025-10-11 14:59:06 -07:00
parent 594d0ec8cd
commit 55c5d59b04
3 changed files with 8 additions and 1 deletions

View File

@ -44,6 +44,9 @@ jobs:
ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }} ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }} AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }}
- name: Wait after 15s deploy staging
run: sleep 15s
- name: run staging integration test - name: run staging integration test
run: bun integ-test:staging run: bun integ-test:staging

View File

@ -3,7 +3,7 @@ export function isTTLInFuture(item?: { TTL: number }) {
return false; return false;
} }
// ttl is a UTC ms time // ttl is a UTC seconds time
const ttl = item.TTL || 0; const ttl = item.TTL || 0;
return parseInt("" + ttl) > getCurrentTimeInSeconds(); return parseInt("" + ttl) > getCurrentTimeInSeconds();

View File

@ -22,6 +22,10 @@ describe("buzzer client works", () => {
}); });
test("sample e2e happy path", async () => { test("sample e2e happy path", async () => {
// make sure it is locked
const lockResp = await fetch(baseUrl + `/api/door/status?door=${doorName}`);
expect(lockResp.status).toBe(200);
// unlock door // unlock door
const authResp = await fetch(baseUrl + `/api/door/auth?door=${doorName}&key=${key}`); const authResp = await fetch(baseUrl + `/api/door/auth?door=${doorName}&key=${key}`);
expect(authResp.status).toBe(200); expect(authResp.status).toBe(200);