test(plugins): add live clawhub docker switch · openclaw/openclaw@9c0c0ed
vincentkoc
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ run_plugins_clawhub_scenario() {
|
2 | 2 | if [ "${OPENCLAW_PLUGINS_E2E_CLAWHUB:-1}" = "0" ]; then |
3 | 3 | echo "Skipping ClawHub plugin install and uninstall (OPENCLAW_PLUGINS_E2E_CLAWHUB=0)." |
4 | 4 | else |
5 | | -echo "Testing ClawHub kitchen-sink plugin install and uninstall..." |
| 5 | +echo "Testing ClawHub plugin install and uninstall..." |
6 | 6 | CLAWHUB_PLUGIN_SPEC="${OPENCLAW_PLUGINS_E2E_CLAWHUB_SPEC:-clawhub:@openclaw/kitchen-sink}" |
7 | 7 | CLAWHUB_PLUGIN_ID="${OPENCLAW_PLUGINS_E2E_CLAWHUB_ID:-openclaw-kitchen-sink-fixture}" |
8 | 8 | export CLAWHUB_PLUGIN_SPEC CLAWHUB_PLUGIN_ID |
@@ -35,7 +35,9 @@ run_plugins_clawhub_scenario() {
|
35 | 35 | return 1 |
36 | 36 | } |
37 | 37 | |
38 | | -if [[ -z "${OPENCLAW_CLAWHUB_URL:-}" && -z "${CLAWHUB_URL:-}" ]]; then |
| 38 | +if [[ "${OPENCLAW_PLUGINS_E2E_LIVE_CLAWHUB:-0}" = "1" ]]; then |
| 39 | +export OPENCLAW_CLAWHUB_URL="${OPENCLAW_CLAWHUB_URL:-${CLAWHUB_URL:-https://clawhub.ai}}" |
| 40 | +elif [[ -z "${OPENCLAW_CLAWHUB_URL:-}" && -z "${CLAWHUB_URL:-}" ]]; then |
39 | 41 | # Keep the release-path smoke hermetic; live ClawHub can rate-limit CI. |
40 | 42 | clawhub_fixture_dir="$(mktemp -d "/tmp/openclaw-clawhub-fixture.XXXXXX")" |
41 | 43 | start_clawhub_fixture_server "$clawhub_fixture_dir" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -278,6 +278,7 @@ describe("docker build helper", () => {
|
278 | 278 | expect(sweep).toContain("scripts/e2e/lib/plugins/clawhub.sh"); |
279 | 279 | expect(clawhub).toContain("start_clawhub_fixture_server()"); |
280 | 280 | expect(clawhub).toContain('OPENCLAW_CLAWHUB_URL="http://127.0.0.1:'); |
| 281 | +expect(clawhub).toContain("OPENCLAW_PLUGINS_E2E_LIVE_CLAWHUB"); |
281 | 282 | expect(clawhub).toContain("live ClawHub can rate-limit CI"); |
282 | 283 | expect(clawhub).toContain('[[ -z "${OPENCLAW_CLAWHUB_URL:-}" && -z "${CLAWHUB_URL:-}" ]]'); |
283 | 284 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。