mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
Fix Podman sandbox CI checks
This commit is contained in:
@@ -99,6 +99,10 @@
|
||||
"source": "OpenAI provider",
|
||||
"target": "OpenAI provider"
|
||||
},
|
||||
{
|
||||
"source": "Podman plugin",
|
||||
"target": "Podman 插件"
|
||||
},
|
||||
{
|
||||
"source": "Mantis",
|
||||
"target": "Mantis"
|
||||
|
||||
@@ -4041,6 +4041,7 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
|
||||
- H2: Supported capability matrix
|
||||
- H2: Docker backend
|
||||
- H3: Sandboxed browser
|
||||
- H2: Podman backend
|
||||
- H2: SSH backend
|
||||
- H2: OpenShell backend
|
||||
- H2: Workspace access
|
||||
@@ -4856,6 +4857,7 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
|
||||
- Headings:
|
||||
- H2: Prerequisites
|
||||
- H2: Quick start
|
||||
- H2: Agent sandbox backend
|
||||
- H2: Podman and Tailscale
|
||||
- H2: Systemd (Quadlet, optional)
|
||||
- H2: Config, env, and storage
|
||||
@@ -7221,6 +7223,14 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
|
||||
- H2: Surface
|
||||
- H2: Related docs
|
||||
|
||||
## plugins/reference/podman.md
|
||||
|
||||
- Route: /plugins/reference/podman
|
||||
- Headings:
|
||||
- H1: Podman plugin
|
||||
- H2: Distribution
|
||||
- H2: Surface
|
||||
|
||||
## plugins/reference/policy.md
|
||||
|
||||
- Route: /plugins/reference/policy
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import type { CreateSandboxBackendParams, SandboxConfig } from "openclaw/plugin-sdk/sandbox";
|
||||
import type { CreateSandboxBackendParams } from "openclaw/plugin-sdk/sandbox";
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
type SandboxConfig = CreateSandboxBackendParams["cfg"];
|
||||
|
||||
const podmanMocks = vi.hoisted(() => ({
|
||||
execPodman: vi.fn(),
|
||||
execPodmanRaw: vi.fn(),
|
||||
|
||||
@@ -180,7 +180,7 @@ async function ensurePodmanContainer(params: {
|
||||
const expectedHash = computePodmanConfigHash(params.createParams);
|
||||
const state = await podmanContainerState(params.pluginConfig, containerName);
|
||||
let hasContainer = state.exists;
|
||||
let running = state.running;
|
||||
const running = state.running;
|
||||
if (hasContainer) {
|
||||
const currentHash = await readPodmanContainerLabel(
|
||||
params.pluginConfig,
|
||||
|
||||
Reference in New Issue
Block a user