mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## Why Verifier unit tests exercise the signing checks in isolation. Integration tests cover how callers handle verification failures, including whether they preserve an existing cache or write checkout files. ## What changed Reuse the signed archive fixture with a mock backend to cover these paths: - `plugin/install` accepts an unsigned archive without fetching signing keys. - `plugin/reconcile` caches unsigned and valid signed releases, reuses a cached version without downloading it again, and preserves that version when a newer archive fails verification or signing keys are unavailable. - `plugin/share/checkout` writes the checkout and local metadata after successful verification and leaves them absent for a tampered archive. - The measurement reference cache rejects a tampered archive and accepts valid bytes on retry for the same plugin version. Wire the tests into Bazel and give the new RPC suite the existing app-server integration test concurrency limits in nextest. GitOrigin-RevId: bfac72216ccee6c5a33fe08ef0081fad48ac842d
39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
[package]
|
|
name = "codex-plugin-archive-verification"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
aws-lc-rs = { workspace = true }
|
|
base64 = { workspace = true }
|
|
codex-http-client = { workspace = true }
|
|
codex-otel = { workspace = true }
|
|
hex = { workspace = true }
|
|
http = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
tokio = { workspace = true, features = ["rt", "sync"] }
|
|
tracing = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
anyhow = { workspace = true }
|
|
app_test_support = { workspace = true }
|
|
codex-app-server-protocol = { workspace = true }
|
|
codex-config = { workspace = true }
|
|
codex-core-plugins = { workspace = true }
|
|
codex-exec-server = { workspace = true }
|
|
codex-login = { workspace = true }
|
|
codex-utils-path-uri = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "time"] }
|
|
wiremock = { workspace = true }
|