From 5fa90e6fb7f38d56221861a0dfb69e63bce8d8ad Mon Sep 17 00:00:00 2001 From: Mihaela Stoica Date: Tue, 21 Mar 2017 19:45:43 +0000 Subject: [PATCH 1/2] CP-21178: : Fix the unit tests Signed-off-by: Mihaela Stoica --- .../UnitTests/AlertTests/XenServerUpdateAlertTests.cs | 8 ++++---- .../UnitTests/BatchUpdatesTests/BatchUpdatesTests.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/XenAdminTests/UnitTests/AlertTests/XenServerUpdateAlertTests.cs b/XenAdminTests/UnitTests/AlertTests/XenServerUpdateAlertTests.cs index 4654e9152..f86266934 100644 --- a/XenAdminTests/UnitTests/AlertTests/XenServerUpdateAlertTests.cs +++ b/XenAdminTests/UnitTests/AlertTests/XenServerUpdateAlertTests.cs @@ -55,7 +55,7 @@ namespace XenAdminTests.UnitTests.AlertTests [Test] public void TestAlertWithConnectionAndHosts() { - XenServerVersion ver = new XenServerVersion("1.2.3", "name", true, false, "http://url", new List(), new List(), new DateTime(2011, 4, 1).ToString(), "123"); + XenServerVersion ver = new XenServerVersion("1.2.3", "name", true, false, "http://url", new List(), new List(), new DateTime(2011, 4, 1).ToString(), "123", ""); var alert = new XenServerVersionAlert(ver); alert.IncludeConnection(connA.Object); alert.IncludeConnection(connB.Object); @@ -83,7 +83,7 @@ namespace XenAdminTests.UnitTests.AlertTests [Test] public void TestAlertWithHostsAndNoConnection() { - XenServerVersion ver = new XenServerVersion("1.2.3", "name", true, false, "http://url", new List(), new List(), new DateTime(2011, 4, 1).ToString(), "123"); + XenServerVersion ver = new XenServerVersion("1.2.3", "name", true, false, "http://url", new List(), new List(), new DateTime(2011, 4, 1).ToString(), "123", ""); var alert = new XenServerVersionAlert(ver); alert.IncludeHosts(new List { hostA.Object, hostB.Object }); @@ -109,7 +109,7 @@ namespace XenAdminTests.UnitTests.AlertTests [Test] public void TestAlertWithConnectionAndNoHosts() { - XenServerVersion ver = new XenServerVersion("1.2.3", "name", true, false, "http://url", new List(), new List(), new DateTime(2011, 4, 1).ToString(), "123"); + XenServerVersion ver = new XenServerVersion("1.2.3", "name", true, false, "http://url", new List(), new List(), new DateTime(2011, 4, 1).ToString(), "123", ""); var alert = new XenServerVersionAlert(ver); alert.IncludeConnection(connA.Object); alert.IncludeConnection(connB.Object); @@ -136,7 +136,7 @@ namespace XenAdminTests.UnitTests.AlertTests [Test] public void TestAlertWithNoConnectionAndNoHosts() { - XenServerVersion ver = new XenServerVersion("1.2.3", "name", true, false, "http://url", new List(), new List(), new DateTime(2011, 4, 1).ToString(), "123"); + XenServerVersion ver = new XenServerVersion("1.2.3", "name", true, false, "http://url", new List(), new List(), new DateTime(2011, 4, 1).ToString(), "123", ""); var alert = new XenServerVersionAlert(ver); IUnitTestVerifier validator = new VerifyGetters(alert); diff --git a/XenAdminTests/UnitTests/BatchUpdatesTests/BatchUpdatesTests.cs b/XenAdminTests/UnitTests/BatchUpdatesTests/BatchUpdatesTests.cs index 9923a4158..fd53f2f60 100644 --- a/XenAdminTests/UnitTests/BatchUpdatesTests/BatchUpdatesTests.cs +++ b/XenAdminTests/UnitTests/BatchUpdatesTests/BatchUpdatesTests.cs @@ -76,7 +76,7 @@ namespace XenAdminTests.UnitTests { var serverVersions = new List(); - var version = new XenServerVersion("7.0.0", "XenServer Test 7", true, false, "", new List(), new List(), DateTime.MinValue.ToString(), "buildNo"); + var version = new XenServerVersion("7.0.0", "XenServer Test 7", true, false, "", new List(), new List(), DateTime.MinValue.ToString(), "buildNo", ""); for (int ii = 0; ii < numberOfPatches; ii++) { var patch = new XenServerPatch("patch_uuid_" + ii, "patch name " + ii, "patch description" + ii, "", "", "1.0", "", "", "1970-01-01T00:00:00Z", "", "1000"); From aaa3ff3f03b3e711b403e5010fe4ddd0589b4d02 Mon Sep 17 00:00:00 2001 From: Mihaela Stoica Date: Tue, 21 Mar 2017 19:51:19 +0000 Subject: [PATCH 2/2] CP-21176: Fix the XenCenterUpdateAlertTests Signed-off-by: Mihaela Stoica --- XenAdminTests/UnitTests/AlertTests/XenCenterUpdateAlertTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XenAdminTests/UnitTests/AlertTests/XenCenterUpdateAlertTests.cs b/XenAdminTests/UnitTests/AlertTests/XenCenterUpdateAlertTests.cs index a642ba2f6..f37cba6f7 100644 --- a/XenAdminTests/UnitTests/AlertTests/XenCenterUpdateAlertTests.cs +++ b/XenAdminTests/UnitTests/AlertTests/XenCenterUpdateAlertTests.cs @@ -52,7 +52,7 @@ namespace XenAdminTests.UnitTests.AlertTests HelpID = "XenCenterUpdateAlert", Description = "xc is now available. Download the new version from the " + XenAdmin.Branding.COMPANY_NAME_SHORT + " website.", HelpLinkText = "Help", - Title = "New " + XenAdmin.Branding.BRAND_CONSOLE + " Available", + Title = "xc is now available", Priority = "Priority5" }); }