From fa33a70523438c830c75424e4319270c15573551 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Mon, 9 Feb 2026 11:29:29 +0800 Subject: [PATCH] chore(tests): move integration tests to tests/e2e --- Makefile | 2 +- .../Runbook}/Feature-Sandbox-Mode-and-Sync-Fix.md | 0 {Runbook => docs/Runbook}/Fix-Agent-404-And-UUID-Change.md | 0 .../Runbook}/Fix-CloudRun-Stunnel-Startup-Failure.md | 0 .../Runbook}/Fix-Rotating-UUID-Sync-Archive-2026-02-06.md | 0 {Runbook => docs/Runbook}/README.md | 0 .../Runbook}/Security-Scrubbing-Archive-2026-02-06.md | 0 gitleaks-final-scrub.json | 1 - {integration-test => tests/e2e}/superadmin-login/README.md | 6 +++--- .../e2e}/superadmin-login/api-test.sh | 0 .../e2e}/superadmin-login/run-test-scripts.sh | 0 {integration-test => tests/e2e}/superadmin-login/ui-test.sh | 0 12 files changed, 4 insertions(+), 5 deletions(-) rename {Runbook => docs/Runbook}/Feature-Sandbox-Mode-and-Sync-Fix.md (100%) rename {Runbook => docs/Runbook}/Fix-Agent-404-And-UUID-Change.md (100%) rename {Runbook => docs/Runbook}/Fix-CloudRun-Stunnel-Startup-Failure.md (100%) rename {Runbook => docs/Runbook}/Fix-Rotating-UUID-Sync-Archive-2026-02-06.md (100%) rename {Runbook => docs/Runbook}/README.md (100%) rename {Runbook => docs/Runbook}/Security-Scrubbing-Archive-2026-02-06.md (100%) delete mode 100644 gitleaks-final-scrub.json rename {integration-test => tests/e2e}/superadmin-login/README.md (89%) rename {integration-test => tests/e2e}/superadmin-login/api-test.sh (100%) rename {integration-test => tests/e2e}/superadmin-login/run-test-scripts.sh (100%) rename {integration-test => tests/e2e}/superadmin-login/ui-test.sh (100%) diff --git a/Makefile b/Makefile index 091cd46..85c3a15 100644 --- a/Makefile +++ b/Makefile @@ -174,7 +174,7 @@ create-super-admin: @bash scripts/create-super-admin.sh integration-test: - @bash integration-test/superadmin-login/run-test-scripts.sh + @bash tests/e2e/superadmin-login/run-test-scripts.sh # ========================================= # ⚙️ 编译与运行 diff --git a/Runbook/Feature-Sandbox-Mode-and-Sync-Fix.md b/docs/Runbook/Feature-Sandbox-Mode-and-Sync-Fix.md similarity index 100% rename from Runbook/Feature-Sandbox-Mode-and-Sync-Fix.md rename to docs/Runbook/Feature-Sandbox-Mode-and-Sync-Fix.md diff --git a/Runbook/Fix-Agent-404-And-UUID-Change.md b/docs/Runbook/Fix-Agent-404-And-UUID-Change.md similarity index 100% rename from Runbook/Fix-Agent-404-And-UUID-Change.md rename to docs/Runbook/Fix-Agent-404-And-UUID-Change.md diff --git a/Runbook/Fix-CloudRun-Stunnel-Startup-Failure.md b/docs/Runbook/Fix-CloudRun-Stunnel-Startup-Failure.md similarity index 100% rename from Runbook/Fix-CloudRun-Stunnel-Startup-Failure.md rename to docs/Runbook/Fix-CloudRun-Stunnel-Startup-Failure.md diff --git a/Runbook/Fix-Rotating-UUID-Sync-Archive-2026-02-06.md b/docs/Runbook/Fix-Rotating-UUID-Sync-Archive-2026-02-06.md similarity index 100% rename from Runbook/Fix-Rotating-UUID-Sync-Archive-2026-02-06.md rename to docs/Runbook/Fix-Rotating-UUID-Sync-Archive-2026-02-06.md diff --git a/Runbook/README.md b/docs/Runbook/README.md similarity index 100% rename from Runbook/README.md rename to docs/Runbook/README.md diff --git a/Runbook/Security-Scrubbing-Archive-2026-02-06.md b/docs/Runbook/Security-Scrubbing-Archive-2026-02-06.md similarity index 100% rename from Runbook/Security-Scrubbing-Archive-2026-02-06.md rename to docs/Runbook/Security-Scrubbing-Archive-2026-02-06.md diff --git a/gitleaks-final-scrub.json b/gitleaks-final-scrub.json deleted file mode 100644 index fe51488..0000000 --- a/gitleaks-final-scrub.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/integration-test/superadmin-login/README.md b/tests/e2e/superadmin-login/README.md similarity index 89% rename from integration-test/superadmin-login/README.md rename to tests/e2e/superadmin-login/README.md index 981e01c..8a70c25 100644 --- a/integration-test/superadmin-login/README.md +++ b/tests/e2e/superadmin-login/README.md @@ -20,13 +20,13 @@ make integration-test 或直接运行脚本: ```bash -bash integration-test/superadmin-login/run-test-scripts.sh +bash tests/e2e/superadmin-login/run-test-scripts.sh ``` ## API 自动化测试 ```bash -bash integration-test/superadmin-login/api-test.sh +bash tests/e2e/superadmin-login/api-test.sh ``` 可选环境变量: @@ -38,7 +38,7 @@ bash integration-test/superadmin-login/api-test.sh ## UI 自动化测试(Playwright) ```bash -bash integration-test/superadmin-login/ui-test.sh +bash tests/e2e/superadmin-login/ui-test.sh ``` 可选环境变量: diff --git a/integration-test/superadmin-login/api-test.sh b/tests/e2e/superadmin-login/api-test.sh similarity index 100% rename from integration-test/superadmin-login/api-test.sh rename to tests/e2e/superadmin-login/api-test.sh diff --git a/integration-test/superadmin-login/run-test-scripts.sh b/tests/e2e/superadmin-login/run-test-scripts.sh similarity index 100% rename from integration-test/superadmin-login/run-test-scripts.sh rename to tests/e2e/superadmin-login/run-test-scripts.sh diff --git a/integration-test/superadmin-login/ui-test.sh b/tests/e2e/superadmin-login/ui-test.sh similarity index 100% rename from integration-test/superadmin-login/ui-test.sh rename to tests/e2e/superadmin-login/ui-test.sh