Skip to content

Commit 61fee37

Browse files
[Identity] fix the certificate env var for internal live test (Azure#22538)
1 parent d91e938 commit 61fee37

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sdk/identity/identity/test/internal/node/clientAssertionCredential.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import * as fs from "fs";
1717
import * as uuid from "uuid";
1818
import * as jwt from "jsonwebtoken";
1919
import ms from "ms";
20+
import * as path from "path";
2021

2122
describe("ClientAssertionCredential (internal)", function () {
2223
let cleanup: MsalTestCleanup;
@@ -82,9 +83,9 @@ describe("ClientAssertionCredential (internal)", function () {
8283
});
8384

8485
it("Sends the expected parameters", async function () {
85-
const tenantId = env.AZURE_TENANT_ID ?? "tenant";
86-
const clientId = env.AZURE_CLIENT_ID ?? "client";
87-
const certificatePath = env.AZURE_CLIENT_CERTIFICATE_PATH ?? "certificate-path";
86+
const tenantId = env.IDENTITY_SP_TENANT_ID || env.AZURE_TENANT_ID!;
87+
const clientId = env.IDENTITY_SP_CLIENT_ID || env.AZURE_CLIENT_ID!;
88+
const certificatePath = env.IDENTITY_SP_CERT_PEM || path.join("assets", "fake-cert.pem");
8889
const authorityHost = `https://login.microsoftonline.com/${tenantId}`;
8990

9091
async function getAssertion(): Promise<string> {

0 commit comments

Comments
 (0)