Skip to content

Commit e2b0484

Browse files
committed
Fix for NetAppFiles test
1 parent f723273 commit e2b0484

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/NetAppFiles/NetAppFiles.Test/ScenarioTests/VolumeTests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function Test-VolumeCrud
8383
# create the list of protocol types
8484
$protocolTypes = New-Object string[] 2
8585
$protocolTypes[0] = "NFSv3"
86-
$protocolTypes[1] = "NFSv4"
86+
$protocolTypes[1] = "NFSv4.1"
8787

8888
try
8989
{
@@ -112,8 +112,8 @@ function Test-VolumeCrud
112112
Assert-NotNull $retrievedVolume.ExportPolicy
113113
Assert-AreEqual $retrievedVolume.ExportPolicy.Rules[0].AllowedClients '0.0.0.0/0'
114114
Assert-AreEqual $retrievedVolume.ExportPolicy.Rules[1].AllowedClients '1.2.3.0/24'
115-
Assert-AreEqual $retrievedVolume.ProtocolTypes[0] 'NFSv3'
116-
Assert-AreEqual $retrievedVolume.ProtocolTypes[1] 'NFSv4.1'
115+
Assert-AreEqual $retrievedVolume.ProtocolTypes[0] $protocolTypes[0]
116+
Assert-AreEqual $retrievedVolume.ProtocolTypes[1] $protocolTypes[1]
117117
Assert-NotNull $retrievedVolume.MountTargets
118118

119119
# create second volume and check using the confirm flag
@@ -298,4 +298,4 @@ function Test-VolumePipelines
298298
# Cleanup
299299
Clean-ResourceGroup $resourceGroup
300300
}
301-
}
301+
}

0 commit comments

Comments
 (0)