From e3131659c2a4f9fd96ff4f44e55652859d0300a8 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Mon, 26 Oct 2026 01:03:40 -0400 Subject: [PATCH] Satisfy the test seed ratchet The custom-domain SSL test seeded its app by hand instead of through make_application, and test_manifest_reach.py no longer seeds one, so its baseline entry went stale. --- backend/tests/test_custom_domain_ssl_survives.py | 7 +++---- backend/tests/test_seed_one_door_ratchet.py | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/tests/test_custom_domain_ssl_survives.py b/backend/tests/test_custom_domain_ssl_survives.py index ade35cfc..1f1ba069 100644 --- a/backend/tests/test_custom_domain_ssl_survives.py +++ b/backend/tests/test_custom_domain_ssl_survives.py @@ -9,7 +9,8 @@ ssl_enabled. Rebuilds now read each domain's own cert. import pytest from app import db -from app.models import Application, Domain +from app.models import Domain +from factories import make_application from app.services.nginx_service import NginxService from app.services.site_domain_service import SiteDomainService @@ -23,9 +24,7 @@ def site(app, monkeypatch): classmethod(lambda cls, h: 'acme.dev' if h.endswith('.acme.dev') else None)) monkeypatch.setattr(SiteDomainService, 'https_enabled', classmethod(lambda cls, base: True)) monkeypatch.setattr(SiteDomainService, 'wildcard_cert_paths', classmethod(lambda cls, base: WILD)) - application = Application(name='shopcssl', app_type='docker', port=8011, user_id=1) - db.session.add(application) - db.session.flush() + application = make_application(db, name='shopcssl', port=8011) shop = Domain(name='shop.com', application_id=application.id, is_primary=True, ssl_enabled=True, ssl_certificate_path=SHOP[0], ssl_key_path=SHOP[1]) db.session.add(shop) diff --git a/backend/tests/test_seed_one_door_ratchet.py b/backend/tests/test_seed_one_door_ratchet.py index 0cea5440..0bafea3f 100644 --- a/backend/tests/test_seed_one_door_ratchet.py +++ b/backend/tests/test_seed_one_door_ratchet.py @@ -94,7 +94,6 @@ APPLICATION_BASELINE = { 'test_manifest_appliance_volumes_bootstrap.py', 'test_manifest_network_identity.py', 'test_manifest_persistence.py', - 'test_manifest_reach.py', 'test_manifest_references.py', 'test_manifest_spec.py', 'test_manifest_sync.py',