31
pluginName string,
32
sqlQuery string,
34
>
return &SetupSchemaTestSuite{
35
>
host: host,
36
>
port: port,
37
>
pluginName: pluginName,
38
>
sqlQuery: sqlQuery,
39
>
}
40
>
}
41
42
// SetupSuite setup test suite
44
>
conn, err := newTestConn("", s.host, s.port, s.pluginName)
45
>
if err != nil {
46
s.Fail("error creating sql connection:%v", err)
47
}
49
>
s.SetupSuiteBase(conn, s.pluginName, test.ConnectParams{
50
>
Host: s.host,
51
>
Port: s.port,
52
>
User: testUser,
53
>
Password: testPassword,
54
>
})
55
}
56
57
// TearDownSuite tear down test suite
59
>
s.TearDownSuiteBase()
60
>
}
61
62
// TestCreateDatabase test