diff --git a/sh/test/fixtures/_shared_agent_assertions.sh b/sh/test/fixtures/_shared_agent_assertions.sh deleted file mode 100644 index 9264ce81..00000000 --- a/sh/test/fixtures/_shared_agent_assertions.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# Shared per-agent install assertions -# Verifies each agent script uses the correct install method -# -# Source this file and call assert_agent_install CLOUD AGENT. Expects: -# MOCK_LOG — path to the mock call log -# PASSED / FAILED — counters (updated in-place) -# GREEN / RED / NC — color codes - -# Internal: assert a grep pattern appears in MOCK_LOG -_assert_install_pattern() { - local pattern="$1" - local msg="$2" - if grep -qE "${pattern}" "${MOCK_LOG}" 2>/dev/null; then - printf '%b\n' " ${GREEN}✓${NC} ${msg}" - PASSED=$((PASSED + 1)) - else - printf '%b\n' " ${RED}✗${NC} ${msg}" - FAILED=$((FAILED + 1)) - fi -} - -assert_agent_install() { - local cloud="$1" - local agent="$2" - - case "$agent" in - claude) - # install_claude_code finalization always runs "claude install --force" - # (mock claude binary is pre-installed, so curl installer is skipped) - _assert_install_pattern "claude.*install" "installs claude code" ;; - openclaw) - # npm install -g openclaw (Node runtime needs standard node_modules layout) - _assert_install_pattern "npm.*install.*openclaw" "installs openclaw via npm" ;; - codex) - # npm install -g @openai/codex - _assert_install_pattern "npm.*install.*codex" "installs codex via npm" ;; - opencode) - # curl to download opencode tarball (via opencode_install_cmd) - _assert_install_pattern "opencode" "installs opencode" ;; - kilocode) - # npm install -g @kilocode/cli - _assert_install_pattern "npm.*install.*kilocode" "installs kilocode via npm" ;; - zeroclaw) - # curl installer from zeroclaw-labs/zeroclaw repo - _assert_install_pattern "zeroclaw" "installs zeroclaw" ;; - *) - # Unknown agent — skip assertion (no failure) - return 0 ;; - esac -} diff --git a/sh/test/fixtures/digitalocean/_api_assertions.sh b/sh/test/fixtures/digitalocean/_api_assertions.sh deleted file mode 100644 index f6143c6e..00000000 --- a/sh/test/fixtures/digitalocean/_api_assertions.sh +++ /dev/null @@ -1,2 +0,0 @@ -assert_api_called "GET" "/account/keys" "fetches SSH keys" -assert_api_called "POST" "/droplets" "creates droplet" diff --git a/sh/test/fixtures/digitalocean/_env.sh b/sh/test/fixtures/digitalocean/_env.sh deleted file mode 100644 index b325c016..00000000 --- a/sh/test/fixtures/digitalocean/_env.sh +++ /dev/null @@ -1,4 +0,0 @@ -export DO_API_TOKEN="test-token-do" -export DO_DROPLET_NAME="test-srv" -export DO_DROPLET_SIZE="s-2vcpu-2gb" -export DO_REGION="nyc3" diff --git a/sh/test/fixtures/hetzner/_api_assertions.sh b/sh/test/fixtures/hetzner/_api_assertions.sh deleted file mode 100644 index e736386f..00000000 --- a/sh/test/fixtures/hetzner/_api_assertions.sh +++ /dev/null @@ -1,2 +0,0 @@ -assert_api_called "GET" "/ssh_keys" "fetches SSH keys" -assert_api_called "POST" "/servers" "creates server" diff --git a/sh/test/fixtures/hetzner/_env.sh b/sh/test/fixtures/hetzner/_env.sh deleted file mode 100644 index 6a25f0c0..00000000 --- a/sh/test/fixtures/hetzner/_env.sh +++ /dev/null @@ -1,4 +0,0 @@ -export HCLOUD_TOKEN="test-token-hetzner" -export HETZNER_SERVER_NAME="test-srv" -export HETZNER_SERVER_TYPE="cx23" -export HETZNER_LOCATION="fsn1"