mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CP-17752: make unit tests use a generic class of policy wizard and
added support for New Policy Wizard help document. Signed-off-by: Sharath Babu <Sharath.Babu@citrix.com>
This commit is contained in:
parent
32d5c15329
commit
2ad62fd48e
@ -657,6 +657,24 @@
|
||||
<data name="NewPolicyWizard_VirtualMachinesPane" xml:space="preserve">
|
||||
<value>6535</value>
|
||||
</data>
|
||||
<data name="NewPolicyWizardSpecific_EmailalertsPane" xml:space="preserve">
|
||||
<value>6551</value>
|
||||
</data>
|
||||
<data name="NewPolicyWizardSpecific_FinishPane" xml:space="preserve">
|
||||
<value>6551</value>
|
||||
</data>
|
||||
<data name="NewPolicyWizardSpecific_PolicyNamePane" xml:space="preserve">
|
||||
<value>6551</value>
|
||||
</data>
|
||||
<data name="NewPolicyWizardSpecific_SnapshotfrequencyPane" xml:space="preserve">
|
||||
<value>6551</value>
|
||||
</data>
|
||||
<data name="NewPolicyWizardSpecific_SnapshottypePane" xml:space="preserve">
|
||||
<value>6551</value>
|
||||
</data>
|
||||
<data name="NewPolicyWizardSpecific_VMsPane" xml:space="preserve">
|
||||
<value>6551</value>
|
||||
</data>
|
||||
<data name="NewPoolDialog" xml:space="preserve">
|
||||
<value>5100</value>
|
||||
</data>
|
||||
|
@ -261,8 +261,18 @@ namespace XenAdmin.Wizards.NewPolicyWizard
|
||||
|
||||
protected override string WizardPaneHelpID()
|
||||
{
|
||||
return CurrentStepTabPage is RBACWarningPage ? FormatHelpId("Rbac") : base.WizardPaneHelpID();
|
||||
if (CurrentStepTabPage is RBACWarningPage)
|
||||
{
|
||||
return FormatHelpId("Rbac");
|
||||
}
|
||||
|
||||
else if (!VMGroup<T>.isVMPolicyVMPP)
|
||||
{
|
||||
return "NewPolicyWizardSpecific_" + CurrentStepTabPage.HelpID + "Pane";
|
||||
}
|
||||
|
||||
return "NewPolicyWizard_" + CurrentStepTabPage.HelpID + "Pane";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,9 +38,9 @@ namespace XenAdminTests.WizardTests.cowleyPolicies_xml
|
||||
{
|
||||
|
||||
[TestFixture, Category(TestCategories.UICategoryB)]
|
||||
class NewPolicyWizardTest : WizardTest<NewPolicyWizard>
|
||||
class NewPolicyWizardSpecific<VMPP> : WizardTest<NewPolicyWizard>
|
||||
{
|
||||
public NewPolicyWizardTest()
|
||||
public NewPolicyWizardSpecific()
|
||||
: base(new string[] { "Policy Name", "Protected VMs", "Snapshot Type", "Snapshot Schedule","Archive Options","Email Alerts","Finish" }
|
||||
, true, false)
|
||||
{ }
|
||||
|
Loading…
Reference in New Issue
Block a user