补齐人工处置PostgreSQL和MySQL实库执行器验证
This commit is contained in:
1 parent
0f2e6bfcce
commit
e0d16a6ab1
10 files changed
+539
-1
No files matched your search
@@ -77,6 +77,11 @@ func executorIntegrationFixture(t *testing.T) (*SQLDeploymentTransactionReposito
|
||||
_, db := newTaskRepositoryTest(t)
|
||||
t.Cleanup(func() { _ = db.Close() })
|
||||
repo := NewSQLDeploymentTransactionRepository(db)
|
||||
return seedRecoveryExecutor(t, repo, db)
|
||||
}
|
||||
|
||||
func seedRecoveryExecutor(t *testing.T, repo *SQLDeploymentTransactionRepository, db *sql.DB) (*SQLDeploymentTransactionRepository, *sql.DB, *deployment.Service, *executorIntegrationClient, deployment.Server, deployment.TransactionRecord) {
|
||||
t.Helper()
|
||||
server := deployment.Server{
|
||||
ID: "executor-server", Name: "executor-server", Address: "192.0.2.10", Port: 22, Username: "deploy",
|
||||
AuthMethod: deployment.SSHAuthPassword, PasswordRef: "secret://ssh/password/test", HostKeyFingerprint: "SHA256:test",
|
||||
|
||||
Reference in new issue
Block a user