forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v6] Add SQL and ARM to smoke test (Azure#646)
* Add SQL and ARM to smoke test * Fix name * Pass param * dedupe storage * Update grouping * Add one more tag
- Loading branch information
Showing
373 changed files
with
145,460 additions
and
55 deletions.
There are no files selected for viewing
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,16 @@ | ||
parameters: | ||
name: "" | ||
tag: "" | ||
|
||
jobs: | ||
- job: ${{ parameters.name }} | ||
steps: | ||
- template: build.yml | ||
- script: npm run clone:specs | ||
displayName: "Clone Specs Repository" | ||
|
||
- script: npm run smoke-test -- --tag=${{ parameters.tag }} | ||
displayName: "Run Smoke Tests" | ||
|
||
- script: npm run check:tree | ||
displayName: "Check git Tree" |
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
21 changes: 21 additions & 0 deletions
21
test/smoke/generated/arm-package-deploymentscripts-2019-10-preview/LICENSE.txt
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,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
27
test/smoke/generated/arm-package-deploymentscripts-2019-10-preview/README.md
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,27 @@ | ||
## Azure DeploymentScriptsClient SDK for JavaScript | ||
|
||
This package contains an isomorphic SDK for DeploymentScriptsClient. | ||
|
||
### Currently supported environments | ||
|
||
- Node.js version 8.x.x or higher | ||
- Browser JavaScript | ||
|
||
### How to Install | ||
|
||
```bash | ||
npm install arm-package-deploymentscripts-2019-10-preview | ||
``` | ||
|
||
### 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) | ||
|
||
|
||
 |
58 changes: 58 additions & 0 deletions
58
test/smoke/generated/arm-package-deploymentscripts-2019-10-preview/package.json
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,58 @@ | ||
{ | ||
"name": "arm-package-deploymentscripts-2019-10-preview", | ||
"author": "Microsoft Corporation", | ||
"description": "The APIs listed in this specification can be used to manage Deployment Scripts resource through the Azure Resource Manager.", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"@azure/core-lro": "^1.0.1", | ||
"@azure/core-http": "^1.1.1", | ||
"tslib": "^1.9.3" | ||
}, | ||
"keywords": [ | ||
"node", | ||
"azure", | ||
"typescript", | ||
"browser", | ||
"isomorphic" | ||
], | ||
"license": "MIT", | ||
"main": "./dist/arm-package-deploymentscripts-2019-10-preview.js", | ||
"module": "./esm/deploymentScriptsClient.js", | ||
"types": "./esm/deploymentScriptsClient.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" | ||
}, | ||
"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", | ||
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-package-deploymentscripts-2019-10-preview.js.map'\" -o ./dist/arm-package-deploymentscripts-2019-10-preview.min.js ./dist/arm-package-deploymentscripts-2019-10-preview.js", | ||
"prepack": "npm install && npm run build" | ||
}, | ||
"sideEffects": false, | ||
"autoPublish": true | ||
} |
39 changes: 39 additions & 0 deletions
39
test/smoke/generated/arm-package-deploymentscripts-2019-10-preview/rollup.config.js
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,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/deploymentScriptsClient.js", | ||
external: ["@azure/core-http", "@azure/core-arm"], | ||
output: { | ||
file: "./dist/arm-package-deploymentscripts-2019-10-preview.js", | ||
format: "umd", | ||
name: "ArmPackageDeploymentscripts201910Preview", | ||
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; |
43 changes: 43 additions & 0 deletions
43
...ke/generated/arm-package-deploymentscripts-2019-10-preview/src/deploymentScriptsClient.ts
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,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 * as coreHttp from "@azure/core-http"; | ||
import * as operations from "./operations"; | ||
import * as Models from "./models"; | ||
import * as Mappers from "./models/mappers"; | ||
import { DeploymentScriptsClientContext } from "./deploymentScriptsClientContext"; | ||
import { DeploymentScriptsClientOptionalParams } from "./models"; | ||
|
||
class DeploymentScriptsClient extends DeploymentScriptsClientContext { | ||
/** | ||
* Initializes a new instance of the DeploymentScriptsClient class. | ||
* @param credentials Subscription credentials which uniquely identify client subscription. | ||
* @param subscriptionId Subscription Id which forms part of the URI for every service call. | ||
* @param options The parameter options | ||
*/ | ||
constructor( | ||
credentials: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials, | ||
subscriptionId: string, | ||
options?: DeploymentScriptsClientOptionalParams | ||
) { | ||
super(credentials, subscriptionId, options); | ||
this.deploymentScripts = new operations.DeploymentScripts(this); | ||
} | ||
|
||
deploymentScripts: operations.DeploymentScripts; | ||
} | ||
|
||
// Operation Specifications | ||
|
||
export { | ||
DeploymentScriptsClient, | ||
DeploymentScriptsClientContext, | ||
Models as DeploymentScriptsModels, | ||
Mappers as DeploymentScriptsMappers | ||
}; | ||
export * from "./operations"; |
70 changes: 70 additions & 0 deletions
70
...rated/arm-package-deploymentscripts-2019-10-preview/src/deploymentScriptsClientContext.ts
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,70 @@ | ||
/* | ||
* 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 * as coreHttp from "@azure/core-http"; | ||
import { DeploymentScriptsClientOptionalParams } from "./models"; | ||
import { lroPolicy } from "./lro"; | ||
|
||
const packageName = "arm-package-deploymentscripts-2019-10-preview"; | ||
const packageVersion = "1.0.0"; | ||
|
||
export class DeploymentScriptsClientContext extends coreHttp.ServiceClient { | ||
$host: string; | ||
subscriptionId: string; | ||
apiVersion: string; | ||
|
||
/** | ||
* Initializes a new instance of the DeploymentScriptsClientContext class. | ||
* @param credentials Subscription credentials which uniquely identify client subscription. | ||
* @param subscriptionId Subscription Id which forms part of the URI for every service call. | ||
* @param options The parameter options | ||
*/ | ||
constructor( | ||
credentials: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials, | ||
subscriptionId: string, | ||
options?: DeploymentScriptsClientOptionalParams | ||
) { | ||
if (credentials === undefined) { | ||
throw new Error("'credentials' cannot be null"); | ||
} | ||
if (subscriptionId === undefined) { | ||
throw new Error("'subscriptionId' cannot be null"); | ||
} | ||
|
||
// Initializing default values for options | ||
if (!options) { | ||
options = {}; | ||
} | ||
|
||
if (!options.userAgent) { | ||
const defaultUserAgent = coreHttp.getDefaultUserAgentValue(); | ||
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; | ||
} | ||
|
||
const defaultPipelines = coreHttp.createPipelineFromOptions(options) | ||
.requestPolicyFactories as coreHttp.RequestPolicyFactory[]; | ||
|
||
options = { | ||
...options, | ||
requestPolicyFactories: [lroPolicy(), ...defaultPipelines] | ||
}; | ||
|
||
super(credentials, options); | ||
|
||
this.requestContentType = "application/json; charset=utf-8"; | ||
|
||
this.baseUri = options.endpoint || "{$host}"; | ||
|
||
// Parameter assignments | ||
this.subscriptionId = subscriptionId; | ||
|
||
// Assigning values to Constant parameters | ||
this.$host = options.$host || "https://management.azure.com"; | ||
this.apiVersion = options.apiVersion || "2019-10-01-preview"; | ||
} | ||
} |
Oops, something went wrong.