mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
https://github.com/Azure/azure-sdk-for-js/issues/32184 @azure/arm-deviceprovisioningservices @azure/arm-deviceupdate @azure/arm-devspaces @azure/arm-devtestlabs @azure/arm-digitaltwins
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
/*
|
|
* Copyright (c) Microsoft Corporation.
|
|
* Licensed under the MIT License.
|
|
*
|
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
*/
|
|
|
|
import type { RecorderStartOptions } from "@azure-tools/test-recorder";
|
|
import { Recorder } from "@azure-tools/test-recorder";
|
|
import { afterEach, beforeEach, describe, it, assert } from "vitest";
|
|
|
|
const replaceableVariables: Record<string, string> = {
|
|
AZURE_CLIENT_ID: "azure_client_id",
|
|
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
SUBSCRIPTION_ID: "azure_subscription_id",
|
|
};
|
|
|
|
const recorderOptions: RecorderStartOptions = {
|
|
envSetupForPlayback: replaceableVariables,
|
|
removeCentralSanitizers: [
|
|
"AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section
|
|
"AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section
|
|
],
|
|
};
|
|
|
|
describe("My test", () => {
|
|
let recorder: Recorder;
|
|
|
|
beforeEach(async (ctx) => {
|
|
recorder = new Recorder(ctx);
|
|
await recorder.start(recorderOptions);
|
|
});
|
|
|
|
afterEach(async () => {
|
|
await recorder.stop();
|
|
});
|
|
|
|
it("sample test", async () => {
|
|
assert(true);
|
|
});
|
|
});
|