diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e1283c76cb50..b588dcbc631b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2988,7 +2988,7 @@ packages: dev: false /array-flatten/1.1.1: - resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=} + resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} dev: false /array-includes/3.1.5: @@ -3249,7 +3249,7 @@ packages: dev: false /buffer-equal-constant-time/1.0.1: - resolution: {integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=} + resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} dev: false /buffer-from/1.1.2: @@ -3399,7 +3399,7 @@ packages: dev: false /charenc/0.0.2: - resolution: {integrity: sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=} + resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==} dev: false /check-error/1.0.2: @@ -3542,7 +3542,7 @@ packages: dev: false /concat-map/0.0.1: - resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: false /concurrently/6.5.1: @@ -3605,7 +3605,7 @@ packages: dev: false /cookie-signature/1.0.6: - resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=} + resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} dev: false /cookie/0.4.2: @@ -3707,7 +3707,7 @@ packages: dev: false /crypt/0.0.2: - resolution: {integrity: sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=} + resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==} dev: false /csv-parse/5.3.0: @@ -3961,7 +3961,7 @@ packages: dependencies: semver: 7.3.7 shelljs: 0.8.5 - typescript: 4.9.0-dev.20221012 + typescript: 4.9.0-dev.20221014 dev: false /downlevel-dts/0.8.0: @@ -3980,11 +3980,11 @@ packages: dev: false /edge-launcher/1.2.2: - resolution: {integrity: sha1-60Cq+9Bnpup27/+rBke81VCbN7I=} + resolution: {integrity: sha512-JcD5WBi3BHZXXVSSeEhl6sYO8g5cuynk/hifBzds2Bp4JdzCGLNMHgMCKu5DvrO1yatMgF0goFsxXRGus0yh1g==} dev: false /ee-first/1.1.1: - resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false /electron-to-chromium/1.4.270: @@ -4869,7 +4869,7 @@ packages: dev: false /fresh/0.5.2: - resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=} + resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} dev: false @@ -5009,7 +5009,7 @@ packages: dev: false /github-from-package/0.0.0: - resolution: {integrity: sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=} + resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} dev: false /glob-parent/5.1.2: @@ -6439,7 +6439,7 @@ packages: dev: false /media-typer/0.3.0: - resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=} + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} dev: false @@ -6449,7 +6449,7 @@ packages: dev: false /merge-descriptors/1.0.1: - resolution: {integrity: sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=} + resolution: {integrity: sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==} dev: false /merge-source-map/1.1.0: @@ -8958,8 +8958,8 @@ packages: hasBin: true dev: false - /typescript/4.9.0-dev.20221012: - resolution: {integrity: sha512-EqJR8s/4zlC8nKMNB3ImSY/lv0bKnEJ2H4UPHzDC306qKgIRexh2Q/446811kG++20Q4TiFhV7LjLSBtgA3OrA==} + /typescript/4.9.0-dev.20221014: + resolution: {integrity: sha512-ebA2VEN581QQgXuSKufDTHjNmafCqBIoWOLxUlhRu27+5iQLR4ExhVoIRQFn03KnHzTzIbbJ3OOy407F3kzc6A==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -9086,7 +9086,7 @@ packages: dev: false /utils-merge/1.0.1: - resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=} + resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} dev: false @@ -10035,7 +10035,7 @@ packages: dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-rkK0ypNoOhHvruyxIyyH+N8XUFphLQ8z02Q0uQqWnIDQW50X1cwl6bFWcYUJBl7gLOyV+skoE2ZqsCia9AnieQ==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-Pfgy/r5JfXGBM5720c6esINeWW/EUncd4y2+0Y7T+E0B7ozWz6y0StR4+yPnTpN4u6tZ0ulVYZth7jIuSwKe/g==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: @@ -10084,13 +10084,12 @@ packages: transitivePeerDependencies: - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-DRSf4AXx1i6vdEUJ3HIa0htTqUEpPzEpHn65/yErgss4fxsLghQzvu3X/8qBle3kE3ZGGjIPhSBa1wc7Rd8ZAw==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-jqmIDLMn9zrmJCg0fs78brOpLci8Fkp7xk9JuQU6jE+afCh7n8E86g4fscH1wbTIeVUYwsCHX+/FOkTlSc5N8A==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -13376,12 +13375,12 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-ZZl8BKxQu7LlJNAxLf1V9wFf9QLTS7izbVuHNM4UVW5pzqcW2yzyJA+tugIvV98YPhTe8giAjeM5/vMuTYqCyA==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-Mi5MiIsgjqh2VZEA8ieezIaXeRN2vHY1gnvCsO78EgA+sxBkqH6W8E8DGtz6FXVCC1fxIb+HFv5v8ltSmV1HNg==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: '@azure/identity': 2.1.0 - '@microsoft/api-extractor': 7.32.0 + '@microsoft/api-extractor': 7.18.11 '@rollup/plugin-commonjs': 21.1.0_rollup@2.79.1 '@rollup/plugin-json': 4.1.0_rollup@2.79.1 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 @@ -13395,7 +13394,7 @@ packages: rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_rollup@2.79.1 tslib: 2.4.0 - typescript: 4.6.4 + typescript: 4.2.4 uglify-js: 3.17.2 transitivePeerDependencies: - '@types/node' @@ -16918,7 +16917,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-zgVKR5U2UhMAaDAwkGBfwH4MvNyV8uPFyg4JVK5zxRA5Vad2+N3ICIwqPq9SsmrDzuVBQsMeYd5jwlFI9/OhJA==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-/u+qFaePWZak/yvyT/sBIc29ivztzVchhVkstP1jN/EyIbKIcW+fe3rAObZYGvSblOYppXxqfaeMU67rK9en3w==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -16965,7 +16964,6 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false @@ -17821,7 +17819,7 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-NF3pWFm+ODKaJQc7MMoI4Hukq5DOvBI6oQqiKD2gmpLB/ZVR0WNg18qXL6/lDFezbEs10C9zt1NGwedJs4MIow==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-v3glHx0xQIrA2MuKdkiOj3A4teHM1h05OC94rPJ6qNCwRGiIMzSUVx33YKVza11yocKJGrdU4+I3LH5XYEmIbA==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: @@ -18516,7 +18514,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-aR9T7XChQoryrxSyq8rZXfXUriLlSjeNOpf6PX/LZpnSg1SfgPeMaDqxEVWZmc2TlHmWtJnDYG8s7j+Kaj7zww==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-Psn6K/3THyGuRCfv/mktb4rGiQHR4gBpAaViWzb7czmux3wBLqhwloha9udjda87QbP1/BW4cZ6LRkirc4X0VA==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -18782,7 +18780,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-ibLqavJmz+7Ul84VyziwP6x4nctI5VajoWygTZsnuXwPneR9COAWgPG65QM40kmZdmruJLl4GbiUiDeOhwz7kw==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-P8uWdkfKregOUP0n0G179PH8y1LGfKMi5SsL+R0jQqJ3A5WllRAhBAg6zZW4IkFoSYQlQTrIfDYRYjDdFXa0Lg==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -18895,7 +18893,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-vjX6d95CLgz2zkhd2q0NGLhLRiFUaKxtHhqalMYYMZ9RT3Vgr2/zBsPSqaLatH2LBhcSWt50WHkpGIEuwDWBfA==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-OML4LEzvG8wr5fGH6uceYlC3Shye+Yd9u1KcW91kyKtVElfqYFTxzKMaqezNbozDc9iHA0CTBgP21px2hazRnQ==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -18951,7 +18949,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-vRdZI1Sx1iejJ/lTOc7n5Heibue7R1D3Q5vlXXnLiHOvs25JZOwRFMbW+JhrcVro8inhybwZfvqoZ6X3KWNupA==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-xFBKk2mdftH6wPaWEh7Hc7fo+1swxE5WSIAfxZsQBZzxmeJSyr9NpPmj2P39hmzlMVNby7yPR7wtutZw1767bA==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index 03f20ca61a2c..758832faa48a 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "065b070773ed6fa98ede768ad602f4c4d2edf739", + "commit": "ee679ba59913797507f3bfcf191a6ad53d1a1306", "readme": "specification/network/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\network\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1.20220727.1 --generate-sample=true", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --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/network/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.1.20220727.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.4", + "use": "@autorest/typescript@6.0.0-rc.1" } \ No newline at end of file diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index f7fb419649e9..86f30562e918 100644 --- a/sdk/network/arm-network/package.json +++ b/sdk/network/arm-network/package.json @@ -28,7 +28,7 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-network.d.ts", "devDependencies": { - "@microsoft/api-extractor": "^7.31.1", + "@microsoft/api-extractor": "7.18.11", "@rollup/plugin-commonjs": "^21.0.1", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-multi-entry": "^4.1.0", @@ -36,7 +36,7 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.6.0", + "typescript": "~4.2.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", @@ -109,13 +109,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-network?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/network/arm-network/review/arm-network.api.md b/sdk/network/arm-network/review/arm-network.api.md index a15699133e8d..69d774c8cc0b 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -120,7 +120,6 @@ export interface AdminRule extends BaseAdminRule { destinationPortRanges?: string[]; destinations?: AddressPrefixItem[]; direction?: SecurityConfigurationRuleDirection; - kind: "Custom"; priority?: number; protocol?: SecurityConfigurationRuleProtocol; readonly provisioningState?: ProvisioningState; @@ -3017,7 +3016,6 @@ export interface DefaultAdminRule extends BaseAdminRule { readonly destinations?: AddressPrefixItem[]; readonly direction?: SecurityConfigurationRuleDirection; flag?: string; - kind: "Default"; readonly priority?: number; readonly protocol?: SecurityConfigurationRuleProtocol; readonly provisioningState?: ProvisioningState; diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index 2b6b40d13e2c..e84949a410a1 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -11183,8 +11183,6 @@ export interface NetworkRule extends FirewallPolicyRule { /** Network admin rule. */ export interface AdminRule extends BaseAdminRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Custom"; /** A description for this rule. Restricted to 140 chars. */ description?: string; /** Network protocol this rule applies to. */ @@ -11212,8 +11210,6 @@ export interface AdminRule extends BaseAdminRule { /** Network default admin rule. */ export interface DefaultAdminRule extends BaseAdminRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Default"; /** * A description for this rule. Restricted to 140 chars. * NOTE: This property will not be serialized. It can only be populated by the server. diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index 221dcb1c98e5..afc749b411a2 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -29767,8 +29767,8 @@ export const AdminRule: coreClient.CompositeMapper = { type: { name: "Composite", className: "AdminRule", - uberParent: "BaseAdminRule", - polymorphicDiscriminator: BaseAdminRule.type.polymorphicDiscriminator, + uberParent: "ChildResource", + polymorphicDiscriminator: ChildResource.type.polymorphicDiscriminator, modelProperties: { ...BaseAdminRule.type.modelProperties, description: { @@ -29867,8 +29867,8 @@ export const DefaultAdminRule: coreClient.CompositeMapper = { type: { name: "Composite", className: "DefaultAdminRule", - uberParent: "BaseAdminRule", - polymorphicDiscriminator: BaseAdminRule.type.polymorphicDiscriminator, + uberParent: "ChildResource", + polymorphicDiscriminator: ChildResource.type.polymorphicDiscriminator, modelProperties: { ...BaseAdminRule.type.modelProperties, description: { @@ -30108,6 +30108,6 @@ export let discriminators = { "FirewallPolicyRule.ApplicationRule": ApplicationRule, "FirewallPolicyRule.NatRule": NatRule, "FirewallPolicyRule.NetworkRule": NetworkRule, - "BaseAdminRule.Custom": AdminRule, - "BaseAdminRule.Default": DefaultAdminRule + "ChildResource.Custom": AdminRule, + "ChildResource.Default": DefaultAdminRule }; diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 742c8eee424b..f59b44dc7bd6 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -378,34 +378,27 @@ export class NetworkManagementClient extends coreClient.ServiceClient { }; super(optionsWithDefaults); - let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName ); - } - if ( - !options || - !options.pipeline || - options.pipeline.getOrderedPolicies().length == 0 || - !bearerTokenAuthenticationPolicyFound - ) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credentials, - scopes: `${optionsWithDefaults.credentialScopes}`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); + if (!bearerTokenAuthenticationPolicyFound) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + scopes: `${optionsWithDefaults.baseUri}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); + } } // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/sdk/network/arm-network/test/sampleTest.ts b/sdk/network/arm-network/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/network/arm-network/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * 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, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + 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 +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/network/arm-network/tsconfig.json b/sdk/network/arm-network/tsconfig.json index 094dfbf3dbe3..3e6ae96443f3 100644 --- a/sdk/network/arm-network/tsconfig.json +++ b/sdk/network/arm-network/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-network": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"