Skip to content

Commit 22b022e

Browse files
committed
bypassing bug in ApiExclusion Logic
1 parent fe417a1 commit 22b022e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/ScenarioTest.ResourceManager/PermissiveRecordMatcherWithResourceApiExlcusion.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ public static bool ContainsIgnoredProvider(
167167
// If we're looking at a specific provider and we have top level resource from this provider to ignore
168168
foreach (var resourceToIgnore in resourcesToIgnore)
169169
{
170+
if (requestUri.Contains("/databases") &&
171+
requestUri.Contains("/providers/Microsoft.Sql/managedInstances/"))
172+
{
173+
apiVersion = String.Empty;
174+
return true;
175+
}
176+
170177
string[] segments = requestUri.Split(new char[] { '/' }, options: StringSplitOptions.RemoveEmptyEntries);
171178

172179
// /subscriptions/.../resourceGroups/.../providers/Microsoft.X/resourceType...?api-version=Y

0 commit comments

Comments
 (0)