[AppConfig, EventGrid, KeyVault, Tables] Run format (#14326)

This commit is contained in:
Ramya Rao 2021-03-16 22:10:14 -07:00 коммит произвёл GitHub
Родитель 326c8d276f
Коммит c2c0ab0e94
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 19 добавлений и 14 удалений

Просмотреть файл

@ -41,7 +41,7 @@ describe("tracingHelpers", () => {
{
tracingOptions: {}
},
async (_newOptions, _span) => { },
async (_newOptions, _span) => {},
fakeCreateSpan
);

Просмотреть файл

@ -5,7 +5,7 @@ import {
PipelineResponse,
PipelineRequest,
SendRequest,
PipelinePolicy,
PipelinePolicy
} from "@azure/core-rest-pipeline";
export const CloudEventBatchContentType = "application/cloudevents-batch+json; charset=utf-8";
@ -65,6 +65,6 @@ export function cloudEventDistributedTracingEnricherPolicy(): PipelinePolicy {
}
return next(request);
},
}
};
}

Просмотреть файл

@ -6,7 +6,7 @@ import {
PipelineResponse,
PipelineRequest,
SendRequest,
PipelinePolicy,
PipelinePolicy
} from "@azure/core-rest-pipeline";
import { isKeyCredentialLike } from "./util";
@ -43,6 +43,6 @@ export function eventGridCredentialPolicy(
}
return next(request);
},
}
};
}

Просмотреть файл

@ -7,12 +7,12 @@ import {
PipelineRequest,
PipelineResponse,
createPipelineRequest,
SendRequest,
SendRequest
} from "@azure/core-rest-pipeline";
const CloudEventBatchContentType = "application/cloudevents-batch+json; charset=utf-8";
describe("CloudEventDistributedTracingEnricherPolicy", function () {
describe("CloudEventDistributedTracingEnricherPolicy", function() {
const emptyResponse: SendRequest = (request: PipelineRequest): Promise<PipelineResponse> => {
return Promise.resolve({ request: request, status: 200, headers: request.headers });
};
@ -69,9 +69,9 @@ describe("CloudEventDistributedTracingEnricherPolicy", function () {
request.body = JSON.stringify([
{
traceparent,
tracestate,
tracestate
},
{},
{}
]);
const resp = await policy.sendRequest(request, emptyResponse);

Просмотреть файл

@ -26,7 +26,7 @@ describe("Challenge based authentication tests", () => {
let testClient: TestClient;
let recorder: Recorder;
beforeEach(async function () {
beforeEach(async function() {
const authentication = await authenticate(this);
secretSuffix = authentication.secretSuffix;
client = authentication.client;
@ -34,13 +34,13 @@ describe("Challenge based authentication tests", () => {
recorder = authentication.recorder;
});
afterEach(async function () {
afterEach(async function() {
await recorder.stop();
});
// The tests follow
it("Authentication should work for parallel requests", async function () {
it("Authentication should work for parallel requests", async function() {
const secretName = testClient.formatName(
`${secretPrefix}-${this!.test!.title}-${secretSuffix}`
);
@ -73,7 +73,7 @@ describe("Challenge based authentication tests", () => {
sandbox.restore();
});
it("Once authenticated, new requests should not authenticate again", async function () {
it("Once authenticated, new requests should not authenticate again", async function() {
// Our goal is to intercept how our pipelines are storing the challenge.
// The first network call should indeed set the challenge in memory.
// Subsequent network calls should not set new challenges.

Просмотреть файл

@ -1,7 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { PipelineResponse, PipelineRequest, SendRequest, PipelinePolicy } from "@azure/core-rest-pipeline";
import {
PipelineResponse,
PipelineRequest,
SendRequest,
PipelinePolicy
} from "@azure/core-rest-pipeline";
import { TablesSharedKeyCredentialLike } from "./TablesSharedKeyCredential";
import { HeaderConstants } from "./utils/constants";
import { URL } from "./utils/url";