统一单数据库部署并完成三种数据库云端验证
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-20 22:05:52 +08:00
1 parent da120bf5e9
commit 31b0d88d03
18 files changed
+724 -66

No files matched your search

+4 -2
View File
@@ -58,7 +58,7 @@ func TestDeploymentStateRecoversEveryCommitPhase(t *testing.T) {
}
entries, _ = os.ReadDir(filepath.Join(root, "data"))
for _, entry := range entries {
if entry.Name() != "smail-state.db" {
if entry.Name() != ".config-state.lock" && entry.Name() != "transaction" {
t.Fatalf("data 中产生额外文件:%s", entry.Name())
}
}
@@ -90,7 +90,9 @@ func TestDeploymentStateImportsHistoryWithoutChangingSecret(t *testing.T) {
if err := os.WriteFile(filepath.Join(target, "ssl", "credential.key"), key, 0600); err != nil {
t.Fatal(err)
}
writeRuntimeFixture(t, target, current)
targetConfig := cloneRuntimeConfig(current)
targetConfig.Root.Database = DatabaseConfig{Type: DatabaseTypeSQLite, LocalRef: "smail.db"}
writeRuntimeFixture(t, target, targetConfig)
if err := ImportDeploymentHistory(source, target, validation); err != nil {
t.Fatal(err)
}