1 message in com.mysql.lists.dotnetConnector/NET commit: r132 - in branc...| From | Sent On | Attachments |
|---|---|---|
| rbur...@mysql.com | 16 Aug 2005 15:24 |
| Subject: | Connector/NET commit: r132 - in branches/1.0: . TestSuite![]() |
|---|---|
| From: | rbur...@mysql.com (rbur...@mysql.com) |
| Date: | 08/16/2005 03:24:26 PM |
| List: | com.mysql.lists.dotnet |
Modified:
branches/1.0/MySql.Data.csproj
branches/1.0/TestSuite/BaseTest.cs
branches/1.0/TestSuite/ConnectionTests.cs
Log:
MySql.Data.csproj - removed protocoltests.cs from the test suite
BaseTest.cs - not reading user and password from config file anymore
ConnectionTests.cs - deleting anonymous accounts from grant tables so my
connection tests will work
Modified: branches/1.0/MySql.Data.csproj =================================================================== --- branches/1.0/MySql.Data.csproj 2005-08-16 20:39:45 UTC (rev 131) +++ branches/1.0/MySql.Data.csproj 2005-08-16 22:24:48 UTC (rev 132) @@ -104,6 +104,10 @@ BuildAction = "None" /> <File + RelPath = "Client.build" + BuildAction = "None" + /> + <File RelPath = "README" BuildAction = "None" />
Modified: branches/1.0/TestSuite/BaseTest.cs =================================================================== --- branches/1.0/TestSuite/BaseTest.cs 2005-08-16 20:39:45 UTC (rev 131) +++ branches/1.0/TestSuite/BaseTest.cs 2005-08-16 22:24:48 UTC (rev 132) @@ -37,7 +37,7 @@ protected string host; protected string user; protected string password; - protected string nopassuser; + //protected string nopassuser; protected string otherkeys;
public BaseTest() @@ -59,9 +59,8 @@ try { host = ConfigurationSettings.AppSettings["host"]; - user = ConfigurationSettings.AppSettings["user"]; - password = ConfigurationSettings.AppSettings["password"]; - nopassuser = ConfigurationSettings.AppSettings["nopassuser"]; + user = "root"; + password = ""; otherkeys = ConfigurationSettings.AppSettings["otherkeys"]; string connString = GetConnectionString(true); conn = new MySqlConnection( connString );
Modified: branches/1.0/TestSuite/ConnectionTests.cs =================================================================== --- branches/1.0/TestSuite/ConnectionTests.cs 2005-08-16 20:39:45 UTC (rev 131) +++ branches/1.0/TestSuite/ConnectionTests.cs 2005-08-16 22:24:48 UTC (rev 132) @@ -80,11 +80,13 @@
[Test()] [ExpectedException(typeof(MySqlException))] - [Explicit] public void TestConnectingSocketBadUserName() { string host = ConfigurationSettings.AppSettings["host"];
+ execSQL("DELETE FROM mysql.user WHERE length(user) = 0"); + execSQL("FLUSH PRIVILEGES"); + string connStr = "server={0};user id=dummy;password=;database=Test"; MySqlConnection c = new MySqlConnection( String.Format(connStr, host));




