From 66b70913ffafb53fb56f450010e06c80bc7fde23 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 22 Jun 2023 21:18:06 +0000 Subject: [PATCH] fix issue with missing live test parameter --- .../confidential-ledger-rest/test/public/usersEndpoint.spec.ts | 2 +- sdk/confidentialledger/test-resources.bicep | 1 + sdk/confidentialledger/tests.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/usersEndpoint.spec.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/usersEndpoint.spec.ts index 8705baa51e69..ef4c0db74e30 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/usersEndpoint.spec.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/usersEndpoint.spec.ts @@ -22,7 +22,7 @@ describe("Get user", function () { it("should obtain user data", async function () { // If using a test app, it needs to be the oid. - const userId = env.AZURE_CLIENT_OID ?? env.AZURE_CLIENT_ID ?? ""; + const userId = env.AZURE_CLIENT_OID; if (!userId) { this.skip(); } diff --git a/sdk/confidentialledger/test-resources.bicep b/sdk/confidentialledger/test-resources.bicep index a72371673503..07a8df8a4e8b 100644 --- a/sdk/confidentialledger/test-resources.bicep +++ b/sdk/confidentialledger/test-resources.bicep @@ -32,6 +32,7 @@ resource baseName_resource 'Microsoft.ConfidentialLedger/ledgers@2020-12-01-prev } } +output CONFIDENTIALLEDGER_CLIENT_OID string = testApplicationOid output LEDGER_NAME string = ledgerName output LEDGERURI string = ledgerUri output IDENTITY_SERVICE_URL string = 'https://identity.confidential-ledger.core.azure.com' diff --git a/sdk/confidentialledger/tests.yml b/sdk/confidentialledger/tests.yml index ade45b4bb5fc..9d11d33be163 100644 --- a/sdk/confidentialledger/tests.yml +++ b/sdk/confidentialledger/tests.yml @@ -8,6 +8,7 @@ stages: EnvVars: AZURE_CLIENT_ID: $(CONFIDENTIALLEDGER_CLIENT_ID) AZURE_TENANT_ID: $(CONFIDENTIALLEDGER_TENANT_ID) + AZURE_CLIENT_OID: $(CONFIDENTIALLEDGER_CLIENT_OID) AZURE_CLIENT_SECRET: $(CONFIDENTIALLEDGER_CLIENT_SECRET) LEDGER_URI: $(LEDGERURI) LEDGER_NAME: $(LEDGER_NAME)