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:
@@ -145,7 +145,17 @@ def run():
|
||||
assert row['fetched_at'] is None and row['failed_at'] is not None
|
||||
assert '11222333000181' not in registry.pending(c, 500)
|
||||
Client().call('/operator/stats', expected=401)
|
||||
print('PASS: artwork pictures (owner only, images only), quote filters, the order/quote search and the numbers')
|
||||
# "Fazer backup agora": recorded for the backup service, shown as asked.
|
||||
with db.connect() as c:
|
||||
c.execute('DELETE FROM dtf_local.backup_requests')
|
||||
Client().call('/operator/backup/run', {}, expected=401)
|
||||
client.call('/operator/backup/run', {}, operator=True)
|
||||
assert client.call('/operator/board', operator=True)['providers']['backup']['requested'] is True
|
||||
with db.connect() as c:
|
||||
c.execute('DELETE FROM dtf_local.backup_requests')
|
||||
assert client.call('/operator/board', operator=True)['providers']['backup']['requested'] is False
|
||||
print('PASS: artwork pictures (owner only, images only), quote filters, the order/quote search, the numbers '
|
||||
'and a backup asked for now')
|
||||
finally:
|
||||
with db.connect() as c:
|
||||
c.execute('DELETE FROM dtf_local.orders WHERE id=%s', (order_id,))
|
||||
|
||||
Reference in New Issue
Block a user