Skip to content

Commit 1cfd443

Browse files
Ja bist du narrischJa bist du narrisch
authored andcommitted
Removed MySQL Tests according to chat with yogibear
1 parent c1dd357 commit 1cfd443

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed
Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
using System;
2-
using System.Data;
3-
using Migrator.Framework;
4-
using Migrator.Providers;
5-
using Migrator.Providers.Mysql;
6-
using Migrator.Tests.Settings;
7-
using Migrator.Tests.Settings.Config;
8-
using NUnit.Framework;
9-
10-
namespace Migrator.Tests.Providers.MySQL;
11-
12-
[TestFixture]
13-
[Category("MySql")]
14-
public class MySqlTransformationProviderTest : TransformationProviderConstraintBase
15-
{
16-
[SetUp]
17-
public void SetUp()
18-
{
19-
var configReader = new ConfigurationReader();
20-
var connectionString = configReader.GetDatabaseConnectionConfigById(DatabaseConnectionConfigIds.MySQLId)
21-
?.ConnectionString;
22-
23-
if (string.IsNullOrEmpty(connectionString))
24-
{
25-
throw new IgnoreException("No MySQL ConnectionString is Set.");
26-
}
27-
28-
DbProviderFactories.RegisterFactory("MySql.Data.MySqlClient", () => MySql.Data.MySqlClient.MySqlClientFactory.Instance);
29-
30-
Provider = new MySqlTransformationProvider(new MysqlDialect(), connectionString, "default", null);
31-
32-
AddDefaultTable();
33-
}
34-
35-
[TearDown]
36-
public override void TearDown()
37-
{
38-
DropTestTables();
39-
}
40-
41-
// [Test,Ignore("MySql doesn't support check constraints")]
42-
public override void CanAddCheckConstraint()
43-
{
44-
}
45-
46-
[Test]
47-
public void AddTableWithMyISAMEngine()
48-
{
49-
Provider.AddTable("Test", "MyISAM",
50-
new Column("Id", DbType.Int32, ColumnProperty.NotNull),
51-
new Column("name", DbType.String, 50)
52-
);
53-
}
54-
55-
[Test]
56-
[Ignore("needs to be fixed")]
57-
public override void RemoveForeignKey()
58-
{
59-
//Foreign Key exists method seems not to return the key, but the ConstraintExists does
60-
}
61-
}
1+
// using System;
2+
// using System.Data;
3+
// using Migrator.Framework;
4+
// using Migrator.Providers;
5+
// using Migrator.Providers.Mysql;
6+
// using Migrator.Tests.Settings;
7+
// using Migrator.Tests.Settings.Config;
8+
// using NUnit.Framework;
9+
10+
// namespace Migrator.Tests.Providers.MySQL;
11+
12+
// [TestFixture]
13+
// [Category("MySql")]
14+
// public class MySqlTransformationProviderTest : TransformationProviderConstraintBase
15+
// {
16+
// [SetUp]
17+
// public void SetUp()
18+
// {
19+
// var configReader = new ConfigurationReader();
20+
// var connectionString = configReader.GetDatabaseConnectionConfigById(DatabaseConnectionConfigIds.MySQLId)
21+
// ?.ConnectionString;
22+
23+
// if (string.IsNullOrEmpty(connectionString))
24+
// {
25+
// throw new IgnoreException("No MySQL ConnectionString is Set.");
26+
// }
27+
28+
// DbProviderFactories.RegisterFactory("MySql.Data.MySqlClient", () => MySql.Data.MySqlClient.MySqlClientFactory.Instance);
29+
30+
// Provider = new MySqlTransformationProvider(new MysqlDialect(), connectionString, "default", null);
31+
32+
// AddDefaultTable();
33+
// }
34+
35+
// [TearDown]
36+
// public override void TearDown()
37+
// {
38+
// DropTestTables();
39+
// }
40+
41+
// // [Test,Ignore("MySql doesn't support check constraints")]
42+
// public override void CanAddCheckConstraint()
43+
// {
44+
// }
45+
46+
// [Test]
47+
// public void AddTableWithMyISAMEngine()
48+
// {
49+
// Provider.AddTable("Test", "MyISAM",
50+
// new Column("Id", DbType.Int32, ColumnProperty.NotNull),
51+
// new Column("name", DbType.String, 50)
52+
// );
53+
// }
54+
55+
// [Test]
56+
// [Ignore("needs to be fixed")]
57+
// public override void RemoveForeignKey()
58+
// {
59+
// //Foreign Key exists method seems not to return the key, but the ConstraintExists does
60+
// }
61+
// }

0 commit comments

Comments
 (0)