Skip to content

Commit 5458178

Browse files
committed
tests
1 parent b2444f8 commit 5458178

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ namespace Microsoft.Identity.Test.E2E
1313
[TestClass]
1414
public class KeyGuardAttestationTests
1515
{
16-
// Create a KeyGuard-protected RSA key, using the same provider + flags we use elsewhere.
17-
// Provider name + flags mirror the KeyGuard helper in #5448:
18-
// - Provider: "Microsoft Software Key Storage Provider"
19-
// - Flags: Virtual Isolation (0x00020000) + Per-Boot Key (0x00040000)
20-
// See PR #5448 KeyGuardHelper.cs. :contentReference[oaicite:0]{index=0}
2116
private static CngKey CreateKeyGuardKey(string keyName)
2217
{
2318
const string ProviderName = "Microsoft Software Key Storage Provider";
@@ -77,10 +72,10 @@ public void Attest_KeyGuardKey_OnAzureArc_Succeeds()
7772
Assert.Inconclusive($"Set {"TOKEN_ATTESTATION_ENDPOINT"} on the Azure Arc agent to run this test.");
7873
}
7974

80-
// UAMI client id (optional). For SAMI it's typically unset.
81-
var clientId = Environment.GetEnvironmentVariable("MSI_CLIENT_ID") ?? string.Empty;
75+
var clientId = "MSI_CLIENT_ID";
76+
77+
string keyName = "MsalE2E_Keyguard";
8278

83-
string keyName = "MsalE2E_Keyguard_" + Guid.NewGuid().ToString("N");
8479
CngKey key = null;
8580
try
8681
{

0 commit comments

Comments
 (0)