diff --git a/sdk/storage/storage-file-datalake/src/clients.ts b/sdk/storage/storage-file-datalake/src/clients.ts index f982717505d3..684ab91069d3 100644 --- a/sdk/storage/storage-file-datalake/src/clients.ts +++ b/sdk/storage/storage-file-datalake/src/clients.ts @@ -70,7 +70,7 @@ import { toAclString, toPathGetAccessControlResponse, toPermissionsString, - toProperties, + toProperties } from "./transforms"; import { Batch } from "./utils/Batch"; @@ -81,14 +81,13 @@ import { FILE_MAX_SINGLE_UPLOAD_THRESHOLD, FILE_MAX_SIZE_BYTES, FILE_UPLOAD_DEFAULT_CHUNK_SIZE, - FILE_UPLOAD_MAX_CHUNK_SIZE, + FILE_UPLOAD_MAX_CHUNK_SIZE } from "./utils/constants"; import { createSpan } from "./utils/tracing"; import { appendToURLPath, setURLPath } from "./utils/utils.common"; import { fsStat, fsCreateReadStream } from "./utils/utils.node"; import { BufferScheduler } from "../../storage-common/src"; - /** * A DataLakePathClient represents a URL to the Azure Storage path (directory or file). * diff --git a/sdk/storage/storage-file-datalake/test/node/pathclient.spec.ts b/sdk/storage/storage-file-datalake/test/node/pathclient.spec.ts index 87e918c24348..7ca6fc22de69 100644 --- a/sdk/storage/storage-file-datalake/test/node/pathclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/node/pathclient.spec.ts @@ -10,7 +10,7 @@ import { DataLakeFileSystemClient, DataLakeServiceClient, PathAccessControlItem, - PathPermissions, + PathPermissions } from "../../src"; import { toAcl, toRemoveAcl } from "../../src/transforms"; import { bodyToString, getDataLakeServiceClient, recorderEnvSetup } from "../utils"; @@ -27,7 +27,7 @@ describe("DataLakePathClient Node.js only", () => { let recorder: any; - beforeEach(async function () { + beforeEach(async function() { recorder = record(this, recorderEnvSetup); serviceClient = getDataLakeServiceClient(); fileSystemName = recorder.getUniqueName("filesystem"); @@ -40,7 +40,7 @@ describe("DataLakePathClient Node.js only", () => { await fileClient.flush(content.length); }); - afterEach(async function () { + afterEach(async function() { await fileSystemClient.delete(); await recorder.stop(); }); @@ -54,8 +54,8 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: true, write: true, - execute: true, - }, + execute: true + } }, { accessControlType: "group", @@ -64,8 +64,8 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: true, write: false, - execute: true, - }, + execute: true + } }, { accessControlType: "other", @@ -74,9 +74,9 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: false, write: true, - execute: false, - }, - }, + execute: false + } + } ]; await fileClient.setAccessControl(acl); @@ -90,18 +90,18 @@ describe("DataLakePathClient Node.js only", () => { owner: { read: true, write: true, - execute: true, + execute: true }, group: { read: true, write: false, - execute: true, + execute: true }, other: { read: false, write: true, - execute: false, - }, + execute: false + } }); assert.deepStrictEqual(permissions.acl, acl); }); @@ -115,8 +115,8 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: true, write: true, - execute: true, - }, + execute: true + } }, { accessControlType: "group", @@ -125,8 +125,8 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: true, write: false, - execute: true, - }, + execute: true + } }, { accessControlType: "other", @@ -135,13 +135,13 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: false, write: true, - execute: false, - }, - }, + execute: false + } + } ]; await fileClient.setAccessControl(acl, { owner: "$superuser", - group: "$superuser", + group: "$superuser" }); const permissions = await fileClient.getAccessControl(); @@ -154,18 +154,18 @@ describe("DataLakePathClient Node.js only", () => { owner: { read: true, write: true, - execute: true, + execute: true }, group: { read: true, write: false, - execute: true, + execute: true }, other: { read: false, write: true, - execute: false, - }, + execute: false + } }); assert.deepStrictEqual(permissions.acl, acl); }); @@ -179,8 +179,8 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: true, write: true, - execute: false, - }, + execute: false + } }, { accessControlType: "group", @@ -189,8 +189,8 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: true, write: false, - execute: true, - }, + execute: true + } }, { accessControlType: "other", @@ -199,9 +199,9 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: false, write: true, - execute: true, - }, - }, + execute: true + } + } ]; const permissions: PathPermissions = { @@ -210,18 +210,18 @@ describe("DataLakePathClient Node.js only", () => { owner: { read: true, write: true, - execute: false, + execute: false }, group: { read: true, write: false, - execute: true, + execute: true }, other: { read: false, write: true, - execute: false, - }, + execute: false + } }; await fileClient.setPermissions(permissions); @@ -232,7 +232,7 @@ describe("DataLakePathClient Node.js only", () => { assert.deepStrictEqual(response.group, "$superuser"); assert.deepStrictEqual(response.permissions, { ...permissions, - other: { ...permissions.other, execute: true }, + other: { ...permissions.other, execute: true } }); assert.deepStrictEqual(response.acl, acl); }); @@ -246,8 +246,8 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: true, write: true, - execute: false, - }, + execute: false + } }, { accessControlType: "group", @@ -256,8 +256,8 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: true, write: false, - execute: true, - }, + execute: true + } }, { accessControlType: "other", @@ -266,9 +266,9 @@ describe("DataLakePathClient Node.js only", () => { permissions: { read: false, write: true, - execute: true, - }, - }, + execute: true + } + } ]; const permissions: PathPermissions = { @@ -277,18 +277,18 @@ describe("DataLakePathClient Node.js only", () => { owner: { read: true, write: true, - execute: false, + execute: false }, group: { read: true, write: false, - execute: true, + execute: true }, other: { read: false, write: true, - execute: false, - }, + execute: false + } }; await fileClient.setPermissions(permissions, { owner: "$superuser", group: "$superuser" }); @@ -299,7 +299,7 @@ describe("DataLakePathClient Node.js only", () => { assert.deepStrictEqual(response.group, "$superuser"); assert.deepStrictEqual(response.permissions, { ...permissions, - other: { ...permissions.other, execute: true }, + other: { ...permissions.other, execute: true } }); assert.deepStrictEqual(response.acl, acl); }); @@ -346,7 +346,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { let recorder: any; - beforeEach(async function () { + beforeEach(async function() { recorder = record(this, recorderEnvSetup); serviceClient = getDataLakeServiceClient(); fileSystemName = recorder.getUniqueName("filesystem"); @@ -359,7 +359,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { await fileClient.flush(content.length); }); - afterEach(async function () { + afterEach(async function() { await fileSystemClient.delete(); recorder.stop(); }); @@ -438,7 +438,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { maxBatches: 1, onProgress: () => { batchCounter++; - }, + } } ); @@ -476,7 +476,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { const cumulativeCounters: AccessControlChangeCounters = { changedDirectoriesCount: 0, changedFilesCount: 0, - failedChangesCount: 0, + failedChangesCount: 0 }; const result = await directoryClient.setAccessControlRecursive( toAcl( @@ -510,7 +510,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { ); batchCounter++; - }, + } } ); @@ -565,7 +565,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { continuation = progress.continuationToken; aborter.abort(); }, - abortSignal: aborter.signal, + abortSignal: aborter.signal } ); } catch (err) { @@ -578,7 +578,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---" ), { - continuationToken: continuation, + continuationToken: continuation } );