Skip to content

Commit

Permalink
try additional-args ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermsi1337 committed Feb 12, 2025
1 parent a516f67 commit 2d1e404
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion pkg/source/mysqldump/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ type Flags struct {
SslCrl string `flag:"--ssl-crl="`
SslCrlPath string `flag:"--ssl-crlpath="`
SslKey string `flag:"--ssl-key="`
Ssl *int `flag:"--ssl="`
Tab string `flag:"--tab="`
TLSCipherSuites string `flag:"--tls-ciphersuites="`
TLSVersion string `flag:"--tls-version="`
Expand Down
1 change: 0 additions & 1 deletion pkg/source/mysqlrestore/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ type Flags struct {
ServerPublicKeyPath string `flag:"--server-public-key-path="`
SharedMemoryBaseName string `flag:"--shared-memory-base-name="`
Socket string `flag:"--socket="`
Ssl *int `flag:"--ssl="`
SslCa string `flag:"--ssl-ca="`
SslCaPath string `flag:"--ssl-capath="`
SslCert string `flag:"--ssl-cert="`
Expand Down
14 changes: 6 additions & 8 deletions test/pkg/source/mysqltest/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,12 @@ func (mySQLDumpAndRestoreTestSuite *MySQLDumpAndRestoreTestSuite) TestMySQLDumpA
}()

// backup test data with brudi and retain test data for verification
var testData []TestStruct
testData, err = mySQLDoBackup(ctx, true, resticContainer, backupPathZip)
mySQLDumpAndRestoreTestSuite.Require().NoError(err)
testData, backupErr := mySQLDoBackup(ctx, true, resticContainer, backupPathZip)
mySQLDumpAndRestoreTestSuite.Require().NoError(backupErr)

// restore database from backup and pull test data from it for verification
var restoreResult []TestStruct
restoreResult, err = mySQLDoRestore(ctx, true, resticContainer, backupPathZip)
mySQLDumpAndRestoreTestSuite.Require().NoError(err)
restoreResult, restoreErr := mySQLDoRestore(ctx, true, resticContainer, backupPathZip)
mySQLDumpAndRestoreTestSuite.Require().NoError(restoreErr)

mySQLDumpAndRestoreTestSuite.Require().True(reflect.DeepEqual(testData, restoreResult))
}
Expand Down Expand Up @@ -399,7 +397,7 @@ mysqldump:
allDatabases: true
resultFile: %s
ssl: 0
additionalArgs: []
additionalArgs: ["--ssl=0"]
mysqlrestore:
options:
flags:
Expand All @@ -409,7 +407,7 @@ mysqlrestore:
user: %s
Database: %s
ssl: 0
additionalArgs: []
additionalArgs: ["--ssl=0"]
sourceFile: %s%s
`, hostName, container.Port, mySQLRootPW, mySQLRoot, path,
hostName, container.Port, mySQLRootPW, mySQLRoot, mySQLDatabase, path,
Expand Down

0 comments on commit 2d1e404

Please sign in to comment.