[AppConfig, EventGrid, KeyVault, Tables] Run format (#14326)
This commit is contained in:
Родитель
326c8d276f
Коммит
c2c0ab0e94
|
@ -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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче