Public-flip audit: generalize internal hosts/paths + drop Sulkta-internal refs
URLs, mount paths, and LAN host bindings parameterized via env or relative paths
so the repo stands up from a clean clone anywhere. Drop cross-codebase refs
("mirrors clawdforge's pattern"), Sulkta-Coop client/merchant test fixtures,
and audit-changelog scaffolding from comments. README terser, technical content
preserved.
This commit is contained in:
parent
8b1774130b
commit
b335405c02
23 changed files with 238 additions and 266 deletions
|
|
@ -92,9 +92,9 @@ async def test_digest_aggregates_jobs_in_window(db_only):
|
|||
from crafting_table.digest import DigestScheduler, SmtpConfig
|
||||
|
||||
_seed_project(db_only, name="alpha", owner_token="oa",
|
||||
email=["cobb@sulkta.com"], notify_on=["nightly_summary"])
|
||||
email=["alerts@example.com"], notify_on=["nightly_summary"])
|
||||
_seed_project(db_only, name="beta", owner_token="ob",
|
||||
email=["cobb@sulkta.com"], notify_on=["nightly_summary"])
|
||||
email=["alerts@example.com"], notify_on=["nightly_summary"])
|
||||
|
||||
_seed_job(db_only, project_name="alpha", job_id="a-pass",
|
||||
recipe="audit", status="succeeded", hours_ago=2)
|
||||
|
|
@ -291,7 +291,7 @@ def test_admin_digest_run_now_endpoint(client):
|
|||
# Register a project under alpha with email + nightly_summary
|
||||
payload = sample_project_payload(name="ep")
|
||||
payload["notify"] = {
|
||||
"email": ["cobb@sulkta.com"],
|
||||
"email": ["alerts@example.com"],
|
||||
"on": ["nightly_summary"],
|
||||
"auto_patch": False,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ def _patcher_with_mocks(db: DB, workspace: WorkspaceManager, *, runner=None):
|
|||
claw.close_session = AsyncMock()
|
||||
gitea = MagicMock(spec=GiteaClient)
|
||||
gitea.open_pr = AsyncMock(
|
||||
return_value={"html_url": "http://192.168.0.5:3001/X/Y/pulls/1"}
|
||||
return_value={"html_url": "http://git.example.com/X/Y/pulls/1"}
|
||||
)
|
||||
p = Patcher(
|
||||
db=db,
|
||||
|
|
@ -398,7 +398,7 @@ async def test_pushed_and_pr_opened_on_success(db_only, tmp_path):
|
|||
attempt = await p.maybe_draft(job_id, finding_id=finding_id)
|
||||
assert attempt is not None, "expected a PatchAttempt"
|
||||
assert attempt.status == "pr_opened", f"unexpected: {attempt.status} / {attempt.error}"
|
||||
assert attempt.pr_url == "http://192.168.0.5:3001/X/Y/pulls/1"
|
||||
assert attempt.pr_url == "http://git.example.com/X/Y/pulls/1"
|
||||
assert attempt.branch_name and "crafting-table/auto/" in attempt.branch_name
|
||||
assert gitea.open_pr.await_count == 1
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ def test_post_patches_with_finding_id(client):
|
|||
attempt_number=1,
|
||||
status="pr_opened",
|
||||
branch_name="crafting-table/auto/j-1-42",
|
||||
pr_url="http://192.168.0.5:3001/X/Y/pulls/9",
|
||||
pr_url="http://git.example.com/X/Y/pulls/9",
|
||||
diff_excerpt="--- a/x\n+++ b/x",
|
||||
session_id="s-1",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue