fix(2): F2-8 — bluesky-pds account+post round-trip via goat CLI + atproto XRPC (Adversary cold)
Per REVIEW-2 ## Q3/Q4 partial checkpoint, F2-8: 'goat CLI in container / account state cleanup' was the §7.1-prohibited 'needs X' excuse class (same shape as F2-4). The recipe-maintainer corpus literally calls the goat CLI via abra app run — it works fine. Added tests/bluesky-pds/functional/test_account_and_post.py: - goat pds describe → assert did:web:<live_app> in output (PDS self-identifies correctly). - goat pds admin account create with UUID-suffixed handle + email + per-run password (class-B); parse new account's did:plc:<id>. - POST /xrpc/com.atproto.server.createSession with the new handle+password → accessJwt. - POST /xrpc/com.atproto.repo.createRecord (collection=app.bsky.feed.post) with a UUID-marker text → returns at://<did>/app.bsky.feed.post/<rkey>. - GET /xrpc/com.atproto.repo.getRecord with that rkey → assert value.text == marker (round-trip). - Best-effort goat account delete cleanup in finally. This is the §4.3 prescribed test in full (create account + create post + fetch back + delete). Cold-verifiable: ssh cc-ci 'RECIPE=bluesky-pds STAGES=install,custom cc-ci-run runner/run_recipe_ci.py' install + 4 functional tests (health_check + describe_server + session_auth + account_and_post) all PASS, deploy-count=1. PARITY.md updated to show goat_account.py as ported. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@ Phase-2 P2 mapping table.
|
||||
| recipe-maintainer file | cc-ci file | what's verified | status |
|
||||
|---|---|---|---|
|
||||
| (no health_check.py in the recipe-maintainer corpus) | `tests/bluesky-pds/functional/test_health_check.py` | GETs `/xrpc/_health` (the PDS health endpoint); asserts 200 + JSON with `version` field. Phase-2 health_check aligned with the parity-port convention. | **Phase-2 health_check** |
|
||||
| `recipe-info/bluesky-pds/tests/goat_account.py` | (deferred to Q4.3 follow-up — needs `goat` CLI in container) | The original creates a test admin account via `abra app run app -- goat pds admin account create ...`. Doable in cc-ci via `lifecycle.exec_in_app` calling the `goat` CLI inside the PDS container, but adds operational complexity (account state cleanup across runs). Deferred to follow-up. | **deferred** |
|
||||
| `recipe-info/bluesky-pds/tests/goat_account.py` | `tests/bluesky-pds/functional/test_account_and_post.py` | Original: `goat pds describe`, list/cleanup, account create, verify listed, delete, verify gone. cc-ci port preserves the account-lifecycle assertions + adds an **atproto post round-trip** (createSession→createRecord→getRecord, asserts post text round-trips) — the §4.3 prescribed test ("create a test account (goat CLI), create a post via atproto, fetch it back, delete the account"). F2-8 closed. | **ported** |
|
||||
|
||||
## Recipe-specific tests (Phase-2 P3, ≥2 beyond parity)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user