mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 23:39:51 +01:00
CP-36392: Amend WLB tests to account for deleted property
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
This commit is contained in:
parent
16d7f74158
commit
91f4a76f22
@ -42,7 +42,7 @@ namespace XenAdminTests.UnitTests.WlbTests
|
|||||||
public class WlbPoolConfigurationTests
|
public class WlbPoolConfigurationTests
|
||||||
{
|
{
|
||||||
private WlbPoolConfiguration wlbPool;
|
private WlbPoolConfiguration wlbPool;
|
||||||
private const int NUMBER_OF_PROPERTIES = 33;
|
private const int NUMBER_OF_PROPERTIES = 32;
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void NullCtorThrows()
|
public void NullCtorThrows()
|
||||||
@ -114,7 +114,6 @@ namespace XenAdminTests.UnitTests.WlbTests
|
|||||||
{
|
{
|
||||||
//Simple setters.....
|
//Simple setters.....
|
||||||
{"OptimizationMode", "MaximizeDensity"}, //PerformanceMode
|
{"OptimizationMode", "MaximizeDensity"}, //PerformanceMode
|
||||||
{"MetricGroomingPeriod", "2.0"},
|
|
||||||
{"RecentMoveMinutes", "2.0"},
|
{"RecentMoveMinutes", "2.0"},
|
||||||
//{"ReportingUseRSServer", "false"},
|
//{"ReportingUseRSServer", "false"},
|
||||||
{"ReportingSMTPServer", "some string"},
|
{"ReportingSMTPServer", "some string"},
|
||||||
@ -136,7 +135,6 @@ namespace XenAdminTests.UnitTests.WlbTests
|
|||||||
var data = new MRInSensitiveData
|
var data = new MRInSensitiveData
|
||||||
{
|
{
|
||||||
PerformanceMode = WlbPoolPerformanceMode.MaximizePerformance,
|
PerformanceMode = WlbPoolPerformanceMode.MaximizePerformance,
|
||||||
MetricGroomingPeriod = 5.0,
|
|
||||||
RecentMoveMinutes = 6.0,
|
RecentMoveMinutes = 6.0,
|
||||||
//ReportingUseRSServer = true,
|
//ReportingUseRSServer = true,
|
||||||
ReportingSMTPServer = "who knows what?!",
|
ReportingSMTPServer = "who knows what?!",
|
||||||
@ -198,9 +196,7 @@ namespace XenAdminTests.UnitTests.WlbTests
|
|||||||
private struct MRInSensitiveData
|
private struct MRInSensitiveData
|
||||||
{
|
{
|
||||||
public WlbPoolPerformanceMode PerformanceMode;
|
public WlbPoolPerformanceMode PerformanceMode;
|
||||||
public double MetricGroomingPeriod;
|
|
||||||
public double RecentMoveMinutes;
|
public double RecentMoveMinutes;
|
||||||
//public bool ReportingUseRSServer;
|
|
||||||
public string ReportingSMTPServer;
|
public string ReportingSMTPServer;
|
||||||
public int HostCpuThresholdCritical;
|
public int HostCpuThresholdCritical;
|
||||||
public double HostMemoryThresholdCritical;
|
public double HostMemoryThresholdCritical;
|
||||||
|
Loading…
Reference in New Issue
Block a user