fix: test
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
270e62e142
commit
e43e8c3959
|
@ -31,7 +31,7 @@ func TestMysqlDumper_buildDumpArgs(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
want: []string{"--lock-tables=0", "--dump-date", "-u", "loremipsum", "-p" + "notapassword", "--port", "1234", "-h", "1.2.3.4", "ipsum"},
|
want: []string{"--lock-tables=0", "--dump-date", "--single-transaction", "--source-data=2", "--routines", "--triggers", "--events", "-u", "loremipsum", "-p" + "notapassword", "--port", "1234", "-h", "1.2.3.4", "ipsum"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "no user",
|
name: "no user",
|
||||||
|
@ -45,7 +45,7 @@ func TestMysqlDumper_buildDumpArgs(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
want: []string{"--lock-tables=0", "--dump-date", "-u", "root", "-p" + "notapassword", "--port", "1234", "-h", "1.2.3.4", "ipsum"},
|
want: []string{"--lock-tables=0", "--dump-date", "--single-transaction", "--source-data=2", "--routines", "--triggers", "--events", "-u", "root", "-p" + "notapassword", "--port", "1234", "-h", "1.2.3.4", "ipsum"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "no password",
|
name: "no password",
|
||||||
|
@ -59,7 +59,7 @@ func TestMysqlDumper_buildDumpArgs(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
want: []string{"--lock-tables=0", "--dump-date", "-u", "loremipsum", "--port", "1234", "-h", "1.2.3.4", "ipsum"},
|
want: []string{"--lock-tables=0", "--dump-date", "--single-transaction", "--source-data=2", "--routines", "--triggers", "--events", "-u", "loremipsum", "--port", "1234", "-h", "1.2.3.4", "ipsum"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "no password, but root",
|
name: "no password, but root",
|
||||||
|
@ -74,7 +74,7 @@ func TestMysqlDumper_buildDumpArgs(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
want: []string{"--lock-tables=0", "--dump-date", "-u", "loremipsum", "-p" + "roooot", "--port", "1234", "-h", "1.2.3.4", "ipsum"},
|
want: []string{"--lock-tables=0", "--dump-date", "--single-transaction", "--source-data=2", "--routines", "--triggers", "--events", "-u", "loremipsum", "-p" + "roooot", "--port", "1234", "-h", "1.2.3.4", "ipsum"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "no port",
|
name: "no port",
|
||||||
|
@ -88,7 +88,7 @@ func TestMysqlDumper_buildDumpArgs(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
want: []string{"--lock-tables=0", "--dump-date", "-u", "loremipsum", "-p" + "notapassword", "--port", "3306", "-h", "1.2.3.4", "ipsum"},
|
want: []string{"--lock-tables=0", "--dump-date", "--single-transaction", "--source-data=2", "--routines", "--triggers", "--events", "-u", "loremipsum", "-p" + "notapassword", "--port", "3306", "-h", "1.2.3.4", "ipsum"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "no db",
|
name: "no db",
|
||||||
|
@ -102,7 +102,7 @@ func TestMysqlDumper_buildDumpArgs(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
want: []string{"--lock-tables=0", "--dump-date", "-u", "loremipsum", "-p" + "notapassword", "--port", "1234", "-h", "1.2.3.4", "--all-databases"},
|
want: []string{"--lock-tables=0", "--dump-date", "--single-transaction", "--source-data=2", "--routines", "--triggers", "--events", "-u", "loremipsum", "-p" + "notapassword", "--port", "1234", "-h", "1.2.3.4", "--all-databases"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
|
|
Loading…
Reference in New Issue