mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
style: format Noise runtime tests
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -82,8 +82,7 @@ async fn pending_harness_key_validation_does_not_block_new_handshakes() -> Resul
|
||||
));
|
||||
|
||||
for stream_id in ["stream-1", "stream-2"] {
|
||||
let prologue =
|
||||
noise_channel_prologue(ENVIRONMENT_ID, EXECUTOR_REGISTRATION_ID, stream_id)?;
|
||||
let prologue = noise_channel_prologue(ENVIRONMENT_ID, EXECUTOR_REGISTRATION_ID, stream_id)?;
|
||||
let (_handshake, request) = InitiatorHandshake::start(
|
||||
&harness_identity,
|
||||
&environment_identity.public_key(),
|
||||
|
||||
@@ -141,10 +141,8 @@ async fn validate_harness_key_does_not_expose_error_body() {
|
||||
|
||||
#[test]
|
||||
fn noise_environment_id_validation_rejects_path_injection() {
|
||||
validate_environment_id(
|
||||
"ccarenv_b64_Y2Fhcy1zdGFnaW5nLWV4ZWN1dG9yLWVudmlyb25tZW50LTE",
|
||||
)
|
||||
.expect("valid cloud environment id");
|
||||
validate_environment_id("ccarenv_b64_Y2Fhcy1zdGFnaW5nLWV4ZWN1dG9yLWVudmlyb25tZW50LTE")
|
||||
.expect("valid cloud environment id");
|
||||
|
||||
let error = validate_environment_id("ccarenv_b64_valid/../../status")
|
||||
.expect_err("path delimiter must not reach an authenticated registry request");
|
||||
|
||||
Reference in New Issue
Block a user