From 2a89879a5f5b389b480f5ca185bce9c7ba4f945a Mon Sep 17 00:00:00 2001 From: Srinath Narayanan Date: Tue, 17 Nov 2020 11:29:46 -0800 Subject: [PATCH] renamed param --- .env.example | 2 +- test/notebooks/notebookTestUtils.ts | 4 ++-- test/notebooks/testExplorer/TestExplorer.ts | 4 ++-- test/notebooks/testExplorer/TestExplorerParams.ts | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index 138139fcc..2e6e7e5b9 100644 --- a/.env.example +++ b/.env.example @@ -3,7 +3,7 @@ PORTAL_RUNNER_PASSWORD= PORTAL_RUNNER_SUBSCRIPTION= PORTAL_RUNNER_RESOURCE_GROUP= PORTAL_RUNNER_DATABASE_ACCOUNT= -PORTAL_RUNNER_KEY= +PORTAL_RUNNER_DATABASE_ACCOUNT_KEY= PORTAL_RUNNER_CONNECTION_STRING= NOTEBOOKS_TEST_RUNNER_TENANT_ID= NOTEBOOKS_TEST_RUNNER_CLIENT_ID= diff --git a/test/notebooks/notebookTestUtils.ts b/test/notebooks/notebookTestUtils.ts index e083236b2..a9b58b1b3 100644 --- a/test/notebooks/notebookTestUtils.ts +++ b/test/notebooks/notebookTestUtils.ts @@ -14,7 +14,7 @@ export const getTestExplorerFrame = async (): Promise => { const notebooksTestRunnerClientId = process.env.NOTEBOOKS_TEST_RUNNER_CLIENT_ID; const notebooksTestRunnerClientSecret = process.env.NOTEBOOKS_TEST_RUNNER_CLIENT_SECRET; const portalRunnerDatabaseAccount = process.env.PORTAL_RUNNER_DATABASE_ACCOUNT; - const portalRunnerKey = process.env.PORTAL_RUNNER_KEY; + const portalRunnerDatabaseAccountKey = process.env.PORTAL_RUNNER_DATABASE_ACCOUNT_KEY; const portalRunnerSubscripton = process.env.PORTAL_RUNNER_SUBSCRIPTION; const portalRunnerResourceGroup = process.env.PORTAL_RUNNER_RESOURCE_GROUP; @@ -35,7 +35,7 @@ export const getTestExplorerFrame = async (): Promise => { TestExplorerParams.portalRunnerDatabaseAccount, encodeURI(portalRunnerDatabaseAccount) ); - testExplorerUrl.searchParams.append(TestExplorerParams.portalRunnerKey, encodeURI(portalRunnerKey)); + testExplorerUrl.searchParams.append(TestExplorerParams.portalRunnerDatabaseAccountKey, encodeURI(portalRunnerDatabaseAccountKey)); testExplorerUrl.searchParams.append(TestExplorerParams.portalRunnerSubscripton, encodeURI(portalRunnerSubscripton)); testExplorerUrl.searchParams.append( TestExplorerParams.portalRunnerResourceGroup, diff --git a/test/notebooks/testExplorer/TestExplorer.ts b/test/notebooks/testExplorer/TestExplorer.ts index bccb060a7..398383ac1 100644 --- a/test/notebooks/testExplorer/TestExplorer.ts +++ b/test/notebooks/testExplorer/TestExplorer.ts @@ -80,7 +80,7 @@ const initTestExplorer = async (): Promise => { const portalRunnerDatabaseAccount = decodeURIComponent( urlSearchParams.get(TestExplorerParams.portalRunnerDatabaseAccount) ); - const portalRunnerKey = decodeURIComponent(urlSearchParams.get(TestExplorerParams.portalRunnerKey)); + const portalRunnerDatabaseAccountKey = decodeURIComponent(urlSearchParams.get(TestExplorerParams.portalRunnerDatabaseAccountKey)); const portalRunnerSubscripton = decodeURIComponent(urlSearchParams.get(TestExplorerParams.portalRunnerSubscripton)); const portalRunnerResourceGroup = decodeURIComponent( urlSearchParams.get(TestExplorerParams.portalRunnerResourceGroup) @@ -115,7 +115,7 @@ const initTestExplorer = async (): Promise => { quotaId: "Internal_2014-09-01", addCollectionDefaultFlight: "2", isTryCosmosDBSubscription: false, - masterKey: portalRunnerKey, + masterKey: portalRunnerDatabaseAccountKey, loadDatabaseAccountTimestamp: 1604663109836, dataExplorerVersion: "1.0.1", sharedThroughputMinimum: 400, diff --git a/test/notebooks/testExplorer/TestExplorerParams.ts b/test/notebooks/testExplorer/TestExplorerParams.ts index bc628a5dc..1a3e239a7 100644 --- a/test/notebooks/testExplorer/TestExplorerParams.ts +++ b/test/notebooks/testExplorer/TestExplorerParams.ts @@ -2,8 +2,8 @@ export enum TestExplorerParams { notebooksTestRunnerTenantId = "notebooksTestRunnerTenantId", notebooksTestRunnerClientId = "notebooksTestRunnerClientId", notebooksTestRunnerClientSecret = "notebooksTestRunnerClientSecret", - portalRunnerDatabaseAccount = "notebooksAccountName", - portalRunnerKey = "notebooksAccountKey", - portalRunnerSubscripton = "notebooksAccountSubscriptonId", - portalRunnerResourceGroup = "notebooksAccountResourceGroup" + portalRunnerDatabaseAccount = "portalRunnerDatabaseAccount", + portalRunnerDatabaseAccountKey = "portalRunnerDatabaseAccountKey", + portalRunnerSubscripton = "portalRunnerSubscripton", + portalRunnerResourceGroup = "portalRunnerResourceGroup" }