forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 17264 in Azure/azure-rest-api-specs
Merge bbada01f04783bb877bfa73e1d5dafc0a2b56675 into 7b32d29a3a47af368f06d0e63e74487fa4fc845f
- Loading branch information
SDKAuto
committed
Apr 8, 2022
1 parent
e0b9841
commit 9908ec8
Showing
9 changed files
with
150 additions
and
75 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"commit": "1067b78669466324a1a2666adf053433c61e7f77", | ||
"commit": "d5559317b94538ca3dc9f812e42115ac4eac895a", | ||
"readme": "specification/appplatform/resource-manager/readme.md", | ||
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appplatform\\resource-manager\\readme.md --use=@autorest/[email protected]beta.16 --generate-sample=true", | ||
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/appplatform/resource-manager/readme.md --use=@autorest/[email protected]alpha.16.20220105.1", | ||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git", | ||
"use": "@autorest/[email protected]" | ||
"release_tool": "@azure-tools/[email protected]", | ||
"use": "@autorest/[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* 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 { | ||
env, | ||
record, | ||
RecorderEnvironmentSetup, | ||
Recorder | ||
} from "@azure-tools/test-recorder"; | ||
import * as assert from "assert"; | ||
|
||
const recorderEnvSetup: RecorderEnvironmentSetup = { | ||
replaceableVariables: { | ||
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" | ||
}, | ||
customizationsOnRecordings: [ | ||
(recording: any): any => | ||
recording.replace( | ||
/"access_token":"[^"]*"/g, | ||
`"access_token":"access_token"` | ||
) | ||
], | ||
queryParametersToSkip: [] | ||
}; | ||
|
||
describe("My test", () => { | ||
let recorder: Recorder; | ||
|
||
beforeEach(async function() { | ||
recorder = record(this, recorderEnvSetup); | ||
}); | ||
|
||
afterEach(async function() { | ||
await recorder.stop(); | ||
}); | ||
|
||
it("sample test", async function() { | ||
console.log("Hi, I'm a test!"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters