迁移测试并禁止私钥认证

This commit is contained in:
xuans committed 2026-10-02 03:12:33 +08:00
1 parent 48fc5eb395
commit e6478ab303
18 files changed
+160 -475

No files matched your search

@@ -150,7 +150,7 @@ func checkProjectLifecycle(t *testing.T, makeConfig func(*testing.T) config.Data
}
case "server":
resource := deployment.Server{ID: "server-a", Name: "项目服务器", Address: "192.0.2.10", Port: 22, Username: "deploy",
PrivateKeyRef: "secret://ssh/test", HostKeyFingerprint: "SHA256:test", CertificatePath: "/test/cert.pem",
AuthMethod: deployment.SSHAuthPassword, PasswordRef: "secret://ssh/password/test", HostKeyFingerprint: "SHA256:test", CertificatePath: "/test/cert.pem",
PrivateKeyPath: "/test/key.pem", CertificateChainPath: "/test/chain.pem", WebServer: deployment.WebServerNginx}
resource.ProjectID = item.ID
if err := NewSQLServerRepository(db, driver).CreateServer(t.Context(), resource); err != nil {