Skip to content

Commit

Permalink
Test coverage for LRO Parametrized endpoints (#788)
Browse files Browse the repository at this point in the history
* LRO Parametrized endpoints

* Remove timeout in test
  • Loading branch information
joheredi authored Nov 5, 2020
1 parent fce7fe1 commit bbe5d74
Show file tree
Hide file tree
Showing 28 changed files with 1,451 additions and 10 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@azure-tools/autorest-extension-base": "^3.1.246",
"@azure-tools/codegen": "^2.4.267",
"@azure-tools/codemodel": "^4.13.339",
"@azure/core-http": "1.2.0-alpha.20201030.2",
"@azure/core-http": "1.2.0-alpha.20201105.1",
"@azure/core-lro": "^1.0.1",
"@azure/core-paging": "^1.0.0",
"@azure/logger": "^1.0.0",
Expand All @@ -47,7 +47,7 @@
"devDependencies": {
"@autorest/test-server": "^3.0.27",
"@azure/abort-controller": "^1.0.1",
"@microsoft.azure/autorest.testserver": "^2.10.61",
"@microsoft.azure/autorest.testserver": "^2.10.62",
"@types/chai": "^4.2.8",
"@types/express": "^4.17.2",
"@types/js-yaml": "3.12.1",
Expand Down
21 changes: 21 additions & 0 deletions test/integration/generated/lroParametrizedEndpoints/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
27 changes: 27 additions & 0 deletions test/integration/generated/lroParametrizedEndpoints/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Azure LroParametrizedEndpointsClient SDK for JavaScript

This package contains an isomorphic SDK for LroParametrizedEndpointsClient.

### Currently supported environments

- Node.js version 8.x.x or higher
- Browser JavaScript

### How to Install

```bash
npm install lro-parameterized-endpoints
```

### How to use

#### Sample code

Refer the sample code in the [azure-sdk-for-js-samples](https://github.com/Azure/azure-sdk-for-js-samples) repository.

## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcdn%2Farm-cdn%2FREADME.png)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./esm/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./esm/index.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
}
}
}
52 changes: 52 additions & 0 deletions test/integration/generated/lroParametrizedEndpoints/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "lro-parameterized-endpoints",
"author": "Microsoft Corporation",
"description": "Test Infrastructure for AutoRest",
"version": "1.0.0-preview1",
"dependencies": {
"@azure/core-lro": "^1.0.1",
"@azure/core-http": "^1.1.4",
"tslib": "^1.9.3"
},
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
"main": "./dist/lro-parameterized-endpoints.js",
"module": "./esm/index.js",
"types": "./esm/index.d.ts",
"devDependencies": {
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
"esm/**/*.js",
"esm/**/*.js.map",
"esm/**/*.d.ts",
"esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
"rollup.config.js",
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/lro-parameterized-endpoints.js.map'\" -o ./dist/lro-parameterized-endpoints.min.js ./dist/lro-parameterized-endpoints.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
},
"sideEffects": false,
"autoPublish": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* 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 rollup from "rollup";
import nodeResolve from "rollup-plugin-node-resolve";
import sourcemaps from "rollup-plugin-sourcemaps";

/**
* @type {rollup.RollupFileOptions}
*/
const config = {
input: "./esm/lroParametrizedEndpointsClient.js",
external: ["@azure/core-http", "@azure/core-arm"],
output: {
file: "./dist/lro-parameterized-endpoints.js",
format: "umd",
name: "LroParameterizedEndpoints",
sourcemap: true,
globals: {
"@azure/core-http": "coreHttp",
"@azure/core-arm": "coreArm"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/ `
},
plugins: [nodeResolve({ module: true }), sourcemaps()]
};

export default config;
11 changes: 11 additions & 0 deletions test/integration/generated/lroParametrizedEndpoints/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* 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.
*/

export * from "./models";
export { LroParametrizedEndpointsClient } from "./lroParametrizedEndpointsClient";
export { LroParametrizedEndpointsClientContext } from "./lroParametrizedEndpointsClientContext";
Loading

0 comments on commit bbe5d74

Please sign in to comment.