You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NewDirectConnectionWithV6 should fail with high BandwidthInMbps message
143
160
#>
144
161
functionTest-NewDirectConnectionHighBandwidth
145
162
{
163
+
$asn= makePeerAsn 65000
146
164
#Hard Coded locations becuase of limitations in locations
147
165
$kind= isDirect $true;
148
166
$loc="Los Angeles"
@@ -165,13 +183,17 @@ function Test-NewDirectConnectionHighBandwidth
165
183
Write-Debug"Created maxAdvertised $maxv4$maxv6"
166
184
#create Connection
167
185
Assert-ThrowsContains { New-AzPeeringDirectConnectionObject-PeeringDbFacilityId $facilityId-SessionPrefixV6 $sessionv6-MaxPrefixesAdvertisedIPv6 $maxv6-BandwidthInMbps $bandwidth-MD5AuthenticationKey $md5 } "The $bandwidth argument is greater than the maximum allowed range of 100000"
186
+
187
+
removePeerAsn $asn
188
+
168
189
}
169
190
<#
170
191
.SYNOPSIS
171
192
NewDirectConnectionWithV6 should fail with low BandwidthInMbps message
172
193
#>
173
194
functionTest-NewDirectConnectionLowBandwidth
174
195
{
196
+
$asn= makePeerAsn 65000
175
197
#Hard Coded locations becuase of limitations in locations
176
198
$kind= isDirect $true;
177
199
$loc="Ashburn"
@@ -192,14 +214,18 @@ function Test-NewDirectConnectionLowBandwidth
192
214
$maxv6= maxAdvertisedIpv6
193
215
Write-Debug"Created maxAdvertised $maxv4$maxv6"
194
216
#create Connection
195
-
Assert-ThrowsContains {New-AzPeeringDirectConnectionObject-PeeringDbFacilityId $facilityId-SessionPrefixV6 $sessionv6-MaxPrefixesAdvertisedIPv6 $maxv6-BandwidthInMbps $wrongBandwidth-MD5AuthenticationKey $md5} "The $wrongBandwidth argument is less than the minimum allowed range of 10000"
217
+
Assert-ThrowsContains {New-AzPeeringDirectConnectionObject-PeeringDbFacilityId $facilityId-SessionPrefixV6 $sessionv6-MaxPrefixesAdvertisedIPv6 $maxv6-BandwidthInMbps $wrongBandwidth-MD5AuthenticationKey $md5} "The $wrongBandwidth argument is less than the minimum allowed range of 10000"
218
+
219
+
removePeerAsn $asn
220
+
196
221
}
197
222
<#
198
223
.SYNOPSIS
199
224
NewDirectConnectionWithV6 should fail with wrong IP
200
225
#>
201
226
functionTest-NewDirectConnectionWrongV6
202
227
{
228
+
$asn= makePeerAsn 65000
203
229
#Hard Coded locations becuase of limitations in locations
204
230
$kind= isDirect $true;
205
231
$loc="Ashburn"
@@ -220,13 +246,17 @@ function Test-NewDirectConnectionWrongV6
Assert-ThrowsContains {New-AzPeeringDirectConnectionObject-PeeringDBFacilityId $facilityId-BandwidthInMbps $bandwidth-SessionPrefixV4 4.4.4.4-MicrosoftProvidedIPAddress} "Parameter set cannot be resolved using the specified named parameters"
Assert-ThrowsContains {New-AzPeeringDirectConnectionObject-PeeringDBFacilityId $facilityId-BandwidthInMbps $bandwidth-SessionPrefixV6 "fe01::40ef"-MicrosoftProvidedIPAddress} "Parameter set cannot be resolved using the specified named parameters"
0 commit comments