统一单数据库部署并完成三种数据库云端验证
This commit is contained in:
1 parent
a8e32774a8
commit
9b7479ec4c
18 files changed
+724
-66
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user