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-resources-profile-2020-09-01-hybrid @azure/arm-resources @azure/arm-resourcemover @azure/arm-resourcehealth @azure/arm-resourcegraph @azure/arm-vmwarecloudsimple
45 lines
1.2 KiB
TypeScript
45 lines
1.2 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 {
|
|
Recorder,
|
|
RecorderStartOptions} from "@azure-tools/test-recorder";
|
|
import { describe, it, beforeEach, afterEach } 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 () => {
|
|
console.log("Hi, I'm a test!");
|
|
});
|
|
});
|