Skip to content

Commit 8d5c344

Browse files
committed
test(e2e): scope external Podman smoke
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 3da8730 commit 8d5c344

2 files changed

Lines changed: 10 additions & 27 deletions

File tree

‎.github/workflows/e2e-test.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,10 @@ jobs:
265265
run: echo "${{ secrets.GITHUB_TOKEN }}" | podman login ghcr.io -u "${{ github.actor }}" --password-stdin
266266

267267
- name: Run rootless Podman E2E
268-
run: env -u OPENSHELL_GATEWAY_BIN OPENSHELL_E2E_EXTERNAL_COMPUTE_DRIVER=1 mise run --no-deps --skip-deps e2e:podman:rootless
268+
run: mise run --no-deps --skip-deps e2e:podman:rootless
269+
270+
- name: Run external Podman driver E2E
271+
run: env -u OPENSHELL_GATEWAY_BIN mise run --no-deps --skip-deps e2e:podman:external-driver
269272

270273
- name: Print AppArmor denials
271274
if: always()

‎e2e/rust/tests/podman_corporate_proxy.rs‎

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -414,28 +414,6 @@ async fn wait_for_secret_removal(secret: &str, timeout: Duration) -> Result<(),
414414
}
415415
}
416416

417-
async fn wait_for_proxy_connect(
418-
proxy: &SupportContainer,
419-
allowed_ip: &str,
420-
timeout: Duration,
421-
) -> Result<String, String> {
422-
let expected = format!("CONNECT {allowed_ip}:{UPSTREAM_PORT} auth=ok");
423-
let start = std::time::Instant::now();
424-
loop {
425-
let logs = proxy.logs()?;
426-
if logs.contains(&expected) {
427-
return Ok(logs);
428-
}
429-
if start.elapsed() > timeout {
430-
return Err(format!(
431-
"proxy did not record '{expected}' within {}s. Logs:\n{logs}",
432-
timeout.as_secs()
433-
));
434-
}
435-
tokio::time::sleep(Duration::from_millis(100)).await;
436-
}
437-
}
438-
439417
/// Assert the workload's results and the proxy's own record of what it saw.
440418
///
441419
/// `output` is the sandbox's stdout; `proxy_logs` is the fake proxy's log,
@@ -582,10 +560,12 @@ async fn podman_corporate_proxy_routes_approved_tls_egress() {
582560
.await
583561
.expect("create sandbox behind the corporate proxy");
584562

585-
let proxy_logs = wait_for_proxy_connect(&proxy, &allowed_ip, Duration::from_secs(10))
586-
.await
587-
.expect("wait for fake proxy CONNECT log");
588-
assert_proxied_egress(&sandbox.create_output, &proxy_logs, &allowed_ip, &denied_ip);
563+
assert_proxied_egress(
564+
&sandbox.create_output,
565+
&proxy.logs().expect("read fake proxy logs"),
566+
&allowed_ip,
567+
&denied_ip,
568+
);
589569

590570
// ── Secret lifecycle ──────────────────────────────────────────────
591571
let secrets_live = proxy_auth_secret_names().expect("list proxy-auth secrets while sandbox up");

0 commit comments

Comments
 (0)