Skip to content

Commit 446c758

Browse files
author
Jose Ramirez
committed
Fixed failing unit tests due to the allowpublickeyretrieval flag bein set to false by default.
1 parent 0dee607 commit 446c758

15 files changed

+27
-28
lines changed

Tests/MySql.Data.Tests/BlobTestsPipe.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2013, 2018, Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -38,7 +38,7 @@ public class BlobTestsPipe : BlobTests
3838
{
3939
protected override string OnGetConnectionStringInfo()
4040
{
41-
return String.Format("protocol=pipe;pipe name={0};ssl mode=none;", st.pipeName);
41+
return String.Format("protocol=pipe;pipe name={0};ssl mode=none;allowpublickeyretrieval=true;", st.pipeName);
4242
}
4343
}
4444
#endregion

Tests/MySql.Data.Tests/BlobTestsPipeCompressed.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2013, 2018, Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -38,7 +38,7 @@ public class BlobTestsPipeCompressed : BlobTests
3838
{
3939
protected override string OnGetConnectionStringInfo()
4040
{
41-
return String.Format("protocol=pipe;pipe name={0};compress=true;ssl mode=none;", st.pipeName);
41+
return String.Format("protocol=pipe;pipe name={0};compress=true;ssl mode=none;allowpublickeyretrieval=true;", st.pipeName);
4242
}
4343
}
4444
#endregion

Tests/MySql.Data.Tests/BlobTestsSharedMemory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class BlobTestsSharedMemory : BlobTests
3838
{
3939
protected override string OnGetConnectionStringInfo()
4040
{
41-
return String.Format("protocol=memory; shared memory name={0};ssl mode=none;", st.memoryName);
41+
return String.Format("protocol=memory; shared memory name={0};ssl mode=none;allowpublickeyretrieval=true;", st.memoryName);
4242
}
4343
}
4444
#endregion

Tests/MySql.Data.Tests/BlobTestsSharedMemoryCompressed.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2013, 2018, Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -38,7 +38,7 @@ public class BlobTestsSharedMemoryCompressed : BlobTests
3838
{
3939
protected override string OnGetConnectionStringInfo()
4040
{
41-
return String.Format("protocol=memory; shared memory name={0};compress=true;ssl mode=none;", st.memoryName);
41+
return String.Format("protocol=memory; shared memory name={0};compress=true;ssl mode=none;allowpublickeyretrieval=true;", st.memoryName);
4242
}
4343
}
4444
#endregion

Tests/MySql.Data.Tests/MySqlCommandTestsPipe.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2013, 2018, Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -37,7 +37,7 @@ public class MySqlCommandTestsPipe : MySqlCommandTests
3737
{
3838
protected override string OnGetConnectionStringInfo()
3939
{
40-
return String.Format("protocol=namedpipe;pipe name={0};ssl mode=none;", st.pipeName);
40+
return String.Format("protocol=namedpipe;pipe name={0};ssl mode=none;allowpublickeyretrieval=true;", st.pipeName);
4141
}
4242
}
4343
#endregion

Tests/MySql.Data.Tests/MySqlCommandTestsPipeCompressed.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2013, 2018, Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -37,7 +37,7 @@ public class MySqlCommandTestsPipeCompressed : MySqlCommandTests
3737
{
3838
protected override string OnGetConnectionStringInfo()
3939
{
40-
return String.Format("protocol=namedpipe;pipe name={0};compress=true;ssl mode=none;", st.pipeName);
40+
return String.Format("protocol=namedpipe;pipe name={0};compress=true;ssl mode=none;allowpublickeyretrieval=true;", st.pipeName);
4141
}
4242
}
4343
#endregion

Tests/MySql.Data.Tests/MySqlCommandTestsSharedMemory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2013, 2018, Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -37,7 +37,7 @@ public class MySqlCommandTestsSharedMemory : MySqlCommandTests
3737
{
3838
protected override string OnGetConnectionStringInfo()
3939
{
40-
return String.Format("protocol=sharedmemory; shared memory name={0};ssl mode=none;", st.memoryName);
40+
return String.Format("protocol=sharedmemory; shared memory name={0};ssl mode=none;allowpublickeyretrieval=true;", st.memoryName);
4141
}
4242
}
4343
#endregion

Tests/MySql.Data.Tests/MySqlCommandTestsSharedMemoryCompressed.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2013, 2018, Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -37,7 +37,7 @@ public class MySqlCommandTestsSharedMemoryCompressed : MySqlCommandTests
3737
{
3838
protected override string OnGetConnectionStringInfo()
3939
{
40-
return String.Format("protocol=sharedmemory; shared memory name={0};compress=true;ssl mode=none;", st.memoryName);
40+
return String.Format("protocol=sharedmemory; shared memory name={0};compress=true;ssl mode=none;allowpublickeyretrieval=true;", st.memoryName);
4141
}
4242
}
4343
#endregion

Tests/MySql.Data.Tests/PreparedStatementsPipe.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2013, 2018, Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -36,7 +36,7 @@ public class PreparedStatementsPipe : PreparedStatements
3636
{
3737
protected override string OnGetConnectionStringInfo()
3838
{
39-
return string.Format(";ignore prepare=false;protocol=pipe;pipe name={0};ssl mode=none;", st.pipeName);
39+
return string.Format(";ignore prepare=false;protocol=pipe;pipe name={0};ssl mode=none;allowpublickeyretrieval=true;", st.pipeName);
4040
}
4141
}
4242
}

Tests/MySql.Data.Tests/PreparedStatementsPipeCompressed.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2013, 2018, Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -36,7 +36,7 @@ public class PreparedStatementsPipeCompressed : PreparedStatements
3636
{
3737
protected override string OnGetConnectionStringInfo()
3838
{
39-
return string.Format(";ignore prepare=false;protocol=pipe;pipe name={0};compress=true;ssl mode=none;", st.pipeName);
39+
return string.Format(";ignore prepare=false;protocol=pipe;pipe name={0};compress=true;ssl mode=none;allowpublickeyretrieval=true;", st.pipeName);
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)