From 69ef20fd6aea0243bae10ad513448b8edfa86078 Mon Sep 17 00:00:00 2001 From: iliana etaoin Date: Wed, 6 Dec 2023 14:52:30 -0800 Subject: [PATCH] prepend "oxide-token-"? --- end-to-end-tests/src/bin/cli_wrapper.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/end-to-end-tests/src/bin/cli_wrapper.rs b/end-to-end-tests/src/bin/cli_wrapper.rs index 718e361403c..24508e7350b 100644 --- a/end-to-end-tests/src/bin/cli_wrapper.rs +++ b/end-to-end-tests/src/bin/cli_wrapper.rs @@ -1,6 +1,5 @@ use anyhow::{Context, Result}; use end_to_end_tests::helpers::ctx::{ClientParams, E2E_TLS_CERT_ENV}; -use std::collections::HashMap; use std::os::unix::process::CommandExt; use std::process::Command; @@ -14,7 +13,10 @@ async fn main() -> Result { let client_params = ClientParams::new()?; let mut cmd = Command::new(cli_path); cmd.env("OXIDE_HOST", client_params.base_url()); - cmd.env("OXIDE_TOKEN", client_params.get_session_token().await?); + cmd.env( + "OXIDE_TOKEN", + format!("oxide-token-{}", client_params.get_session_token().await?), + ); cmd.arg("--debug"); cmd.arg("--resolve").arg(client_params.cli_resolve_arg().await?); if let Some(cert_path) = std::env::var_os(E2E_TLS_CERT_ENV) { @@ -22,6 +24,5 @@ async fn main() -> Result { } cmd.args(args); eprintln!("exec: {:?}", cmd); - eprintln!("env: {:?}", cmd.get_envs().collect::>()); Err(cmd.exec().into()) }