Skip to content

Commit 0ab25e5

Browse files
author
Jiajun Wang
authored
Merge pull request #144 from Microsoft/staging
Fix found issues
2 parents d310303 + f465aa4 commit 0ab25e5

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

ProtocolTestManager/Plugins/FileServerPlugin/FileServerPlugin/FileServerValueDetector.cs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,8 @@ public List<string> GetHiddenProperties(List<CaseSelectRule> rules)
584584
string ruleName = rule.Name;
585585

586586
// SMB2 and FSA have many rules, put them in the beginning to reduce IF statement checker.
587-
if (ruleName.StartsWith("Feature.SMB2") && rule.Status == RuleStatus.Selected)
587+
if ((ruleName.StartsWith("Feature.Others.SMB2") || ruleName.StartsWith("Feature.Cluster Required.SMB2")) &&
588+
rule.Status == RuleStatus.Selected)
588589
{
589590
smb2Rules.Add(rule);
590591
if (rule.Status == RuleStatus.Selected)
@@ -593,18 +594,19 @@ public List<string> GetHiddenProperties(List<CaseSelectRule> rules)
593594
}
594595

595596
}
596-
else if (ruleName.StartsWith("Feature.FSA (File System Algorithms)") && rule.Status == RuleStatus.Selected)
597+
else if (ruleName.StartsWith("Feature.Others.FSA (File System Algorithms)") && rule.Status == RuleStatus.Selected)
597598
{
598599
isFsaSelected = true;
599600
}
600-
else if ((ruleName == "Feature.File Server Failover"
601-
|| ruleName == "Feature.SWN (Service Witness)"
602-
|| ruleName == "Feature.FSRVP (File Server Remote VSS)")
601+
else if ((ruleName == "Feature.Cluster Required.File Server Failover"
602+
|| ruleName == "Feature.Cluster Required.SWN (Service Witness)"
603+
|| ruleName == "Feature.Cluster Required.FSRVP (File Server Remote VSS)"
604+
|| ruleName == "Feature.Others.FSRVP (File Server Remote VSS)")
603605
&& rule.Status == RuleStatus.Selected)
604606
{
605607
isClusterSwnFsrvpSelected = true;
606608
}
607-
else if (ruleName == "Feature.DFSC (Distributed File System Referral)")
609+
else if (ruleName == "Feature.Others.DFSC (Distributed File System Referral)")
608610
{
609611
if (rule.Status == RuleStatus.Selected)
610612
{
@@ -615,14 +617,14 @@ public List<string> GetHiddenProperties(List<CaseSelectRule> rules)
615617
hiddenPropertiesList.AddRange(DetectorUtil.GetPropertiesByFile("MS-DFSC_ServerTestSuite.deployment.ptfconfig"));
616618
}
617619
}
618-
else if (ruleName.StartsWith("Feature.RSVD"))
620+
else if (ruleName.StartsWith("Feature.Cluster Required.RSVD"))
619621
{
620622
if (rule.Status == RuleStatus.Selected)
621623
{
622624
isRsvdSelected = true;
623625
}
624626
}
625-
else if (ruleName == "Feature.SQOS (Storage Quality of Service)")
627+
else if (ruleName == "Feature.Cluster Required.SQOS (Storage Quality of Service)")
626628
{
627629
if (rule.Status == RuleStatus.Selected)
628630
{
@@ -633,7 +635,7 @@ public List<string> GetHiddenProperties(List<CaseSelectRule> rules)
633635
hiddenPropertiesList.AddRange(DetectorUtil.GetPropertiesByFile("MS-SQOS_ServerTestSuite.deployment.ptfconfig"));
634636
}
635637
}
636-
else if (ruleName.StartsWith("Feature.Auth") && rule.Status == RuleStatus.Selected)
638+
else if (ruleName.StartsWith("Feature.Others.Auth") && rule.Status == RuleStatus.Selected)
637639
{
638640
isAuthSelected = true;
639641
}

ProtocolTestManager/Plugins/SMBDPlugin/SMBDPlugin/config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
</Rule>
4242

4343
<Rule name = "SMB2 over SMBD">
44-
<Rule name = "SMB 3.0 or Later">
44+
<Rule name = "SMB 30">
4545
<Rule name = "RDMA Channel">
4646
<Category name = "Smb2OverRdmaChannel"/>
4747
</Rule>
4848
<Rule name = "Multiple Channels">
4949
<Category name = "Smb2MultipleChannel"/>
5050
</Rule>
5151
</Rule>
52-
<Rule name = "SMB 3.0.2 or Later">
52+
<Rule name = "SMB 302">
5353
<Rule name = "RDMA Channel Remote Invalidation">
5454
<Category name = "Smb2OverRdmaChannelInvalidate"/>
5555
</Rule>

TestSuites/FileServer/docs/FileServerUserGuide.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,8 +1748,7 @@ Take the share named **SMBBasic** as an example:
17481748
> ![](./image/FileServerUserGuide/image1.png)Note
17491749
17501750
> &emsp;&emsp;Prior to creating the cluster, the shared storage needs to be created and added to the failover cluster nodes. For more information about how to do this, please see [5.3.11. Setup SAN Storage Server](#5.3.11)
1751-
1752-
![](./image/FileServerUserGuide/image117.png)
1751+
![](./image/FileServerUserGuide/image117.png)
17531752
17541753
4. Type the computer name of failover cluster nodes.
17551754
@@ -2380,4 +2379,4 @@ To debug a test case:
23802379
23812380
3. When you build the test project, the tests appear in **Test Explorer**. If Test Explorer is not visible, choose **Test** on the Visual Studio menu, choose **Windows**, and then choose **Test Explorer**.
23822381
2383-
4. Select your test cases from Test Explorer and run or debug them.
2382+
4. Select your test cases from Test Explorer and run or debug them.

0 commit comments

Comments
 (0)