feat: "Fazer backup agora" in Integrações
All checks were successful
Build and deploy / Validate source (push) Successful in 9s
Build and deploy / Integration suite on a real stack (push) Successful in 4m40s
Build and deploy / Secret scan and release gate (push) Successful in 13s
Build and deploy / Publish images (push) Successful in 1m29s
All checks were successful
Build and deploy / Validate source (push) Successful in 9s
Build and deploy / Integration suite on a real stack (push) Successful in 4m40s
Build and deploy / Secret scan and release gate (push) Successful in 13s
Build and deploy / Publish images (push) Successful in 1m29s
The backup row gets a button that asks for a backup outside the daily hour, for after a failure or before a risky change. The Kanban records the request; the backup service, which alone may read the whole database, looks every minute and runs it. The row says it was asked for until it runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,6 +31,14 @@ def main():
|
||||
os.environ['BACKUP_AGE_RECIPIENT'] = public
|
||||
check(db_backup.configured(), 'the local backup service is configured once a recipient is set')
|
||||
|
||||
# "Fazer backup agora" in the Kanban is seen by the service.
|
||||
before = datetime.now(timezone.utc)
|
||||
with admin_connect() as c:
|
||||
c.execute("INSERT INTO dtf_local.backup_requests(requested_by) VALUES('backup-test')")
|
||||
check(db_backup.requested_since(before), 'a backup asked for in the Kanban is seen by the service')
|
||||
with admin_connect() as c:
|
||||
c.execute("DELETE FROM dtf_local.backup_requests WHERE requested_by='backup-test'")
|
||||
|
||||
live = db_backup.counts(None)
|
||||
key = db_backup.run_once()
|
||||
with admin_connect() as c:
|
||||
|
||||
Reference in New Issue
Block a user