mirror of
https://github.com/warmbly/warmbly.git
synced 2026-11-25 00:07:07 +00:00
feat: install the distro PostgreSQL client in the backup round-trip CI step when the runner has no 16 client, and sign the buy-mailboxes proof flow's reauth in with the stack's own password
This commit is contained in:
@@ -345,8 +345,10 @@ jobs:
|
||||
WARMBLY_TEST_DB: postgres://warmbly:warmbly@127.0.0.1:5432/warmbly_test?sslmode=disable
|
||||
run: |
|
||||
set -o pipefail
|
||||
# pgTool takes any client at or above the server's major; newer runner images only ship a newer one.
|
||||
if [ ! -x /usr/lib/postgresql/16/bin/pg_dump ]; then
|
||||
sudo apt-get update -q && sudo apt-get install -y -q postgresql-client-16
|
||||
sudo apt-get update -q
|
||||
sudo apt-get install -y -q postgresql-client-16 || sudo apt-get install -y -q postgresql-client
|
||||
fi
|
||||
go test -race -v ./cmd/warmblyctl -run '^TestLiveBackupRestoreRoundTrip$' -count=1 | tee backup-restore.log
|
||||
grep -q -- '--- PASS: TestLiveBackupRestoreRoundTrip ' backup-restore.log
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { expect, test } from "../lib/proof.ts";
|
||||
import { env } from "../lib/env.ts";
|
||||
|
||||
// Runs against the store simulator (`GRAPHKIT_API_URL=fake`, the `make backend` default): any
|
||||
// domain label longer than four characters is available, and an order reaches ready in seconds.
|
||||
@@ -120,7 +121,7 @@ test("set three senders once, buy two domains with a mailbox per sender, and wat
|
||||
const track = page.getByRole("list", { name: "Setup steps" });
|
||||
await expect(reauth.or(track)).toBeVisible({ timeout: 30_000 });
|
||||
if (await reauth.isVisible()) {
|
||||
await reauth.getByRole("textbox", { name: "Password" }).pressSequentially(process.env.QA_PASSWORD ?? "password123", { delay: 40 });
|
||||
await reauth.getByRole("textbox", { name: "Password" }).pressSequentially(env.password, { delay: 40 });
|
||||
await proof.shot("reauth", { caption: "Paying asks for a fresh sign-in, like every money change in Warmbly" });
|
||||
await reauth.getByRole("button", { name: "Confirm" }).click();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user