Skip to content

Commit 528655a

Browse files
authored
Merge branch 'main' into gladjohn/remove_region_requirement
2 parents 30dbfd1 + 71d7fad commit 528655a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/Microsoft.Identity.Test.E2e/ManagedIdentityImdsV2Tests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,12 @@ private static async Task CallAkvSecretAsync(
362362
using var response = await httpClient.GetAsync(new Uri(secretUrl)).ConfigureAwait(false);
363363
var responseContent = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
364364

365+
if ((int)response.StatusCode >= 500)
366+
{
367+
Assert.Inconclusive(
368+
$"AKV service returned a server error (inconclusive): {(int)response.StatusCode} {response.StatusCode}. Body: {responseContent}");
369+
}
370+
365371
Assert.IsTrue(
366372
response.IsSuccessStatusCode,
367373
$"AKV secret GET failed: {(int)response.StatusCode} {response.StatusCode}. Body: {responseContent}");

tests/Microsoft.Identity.Test.Integration.netcore/HeadlessTests/RuntimeBrokerTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public async Task WamSilentAuthLoginHintNoAccontInCacheAsync()
205205
}
206206
}
207207

208+
[DoNotRunOnLinux] // WAM broker tests fail on Linux due to DBus communication issues
208209
[IgnoreOnOneBranch]
209210
[TestMethod]
210211
public async Task WamUsernamePasswordRequestAsync()
@@ -304,6 +305,7 @@ public async Task WamWithSSHCertificateAuthenticationSchemeAsync()
304305
Assert.AreEqual("SshCert", result.TokenType);
305306
}
306307

308+
[DoNotRunOnLinux] // WAM broker tests fail on Linux due to DBus communication issues
307309
[IgnoreOnOneBranch]
308310
[TestMethod]
309311
public async Task WamUsernamePasswordWithForceRefreshAsync()
@@ -357,6 +359,7 @@ public async Task WamUsernamePasswordWithForceRefreshAsync()
357359
Assert.AreNotEqual(ropcToken, result.AccessToken);
358360
}
359361

362+
[DoNotRunOnLinux] // WAM broker tests fail on Linux due to DBus communication issues
360363
[IgnoreOnOneBranch]
361364
[TestMethod]
362365
public async Task WamUsernamePasswordRequestAsync_WithPiiAsync()
@@ -454,6 +457,7 @@ public async Task WamListWindowsWorkAndSchoolAccountsAsync()
454457
Assert.AreEqual(user.Upn, account.Username);
455458
}
456459

460+
[DoNotRunOnLinux] // WAM broker tests fail on Linux due to DBus communication issues
457461
[IgnoreOnOneBranch]
458462
[TestMethod]
459463
[DataRow(null)]

0 commit comments

Comments
 (0)