Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ljian3377 committed Oct 12, 2020
1 parent 42f3a1f commit 7c6984d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 4 additions & 8 deletions sdk/storage/storage-file-datalake/test/serviceclient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import * as assert from "assert";
import * as dotenv from "dotenv";

import { DataLakeServiceClient, ServiceListFileSystemsSegmentResponse } from "../src";
import {
getDataLakeServiceClient,
getDataLakeServiceClientWithDefaultCredential,
recorderEnvSetup
} from "./utils";
import { getDataLakeServiceClient, getTokenDataLakeServiceClient, recorderEnvSetup } from "./utils";

dotenv.config();

Expand Down Expand Up @@ -324,11 +320,11 @@ describe("DataLakeServiceClient", () => {
// });

it("getUserDelegationKey should work", async function() {
// Try to get serviceURL object with DefaultCredential
// when AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET environment variable is set
// Try to get serviceURL object with TokenCredential
// when DFS_ACCOUNT_TOKEN environment variable is set
let serviceURLWithToken: DataLakeServiceClient | undefined;
try {
serviceURLWithToken = getDataLakeServiceClientWithDefaultCredential();
serviceURLWithToken = getTokenDataLakeServiceClient();
} catch {}

// Requires bearer token for this case which cannot be generated in the runtime
Expand Down
2 changes: 2 additions & 0 deletions sdk/storage/storage-queue/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ extends:
parameters:
PackageName: "@azure/storage-queue"
ResourceServiceDirectory: storage
ResourceGroupLocation: canadacentral
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources-preview)

0 comments on commit 7c6984d

Please sign in to comment.