Skip to content

Commit

Permalink
[v6] Add SQL and ARM to smoke test (Azure#646)
Browse files Browse the repository at this point in the history
* Add SQL and ARM to smoke test

* Fix name

* Pass param

* dedupe storage

* Update grouping

* Add one more tag
  • Loading branch information
joheredi authored May 18, 2020
1 parent fddeed5 commit a4df799
Show file tree
Hide file tree
Showing 373 changed files with 145,460 additions and 55 deletions.
41 changes: 22 additions & 19 deletions .scripts/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,34 @@ trigger:
- v6

pool:
vmImage: 'ubuntu-latest'
vmImage: "ubuntu-latest"

jobs:
- job: Build
steps:
- template: build.yml
- script: npm run test
displayName: 'Run Tests'
- template: build.yml
- script: npm run test
displayName: "Run Tests"

- script: npm run check:tree
displayName: 'Check git Tree'
- script: npm run check:tree
displayName: "Check git Tree"

- script: |
npm run coverage-push -- $(Build.Repository.Name) $(Build.SourceBranch) $(github-token) $(storage-coverage-user) $(storage-coverage-pass)
workingDirectory: node_modules/@microsoft.azure/autorest.testserver
displayName: 'Upload Coverage Report'
- script: |
npm run coverage-push -- $(Build.Repository.Name) $(Build.SourceBranch) $(github-token) $(storage-coverage-user) $(storage-coverage-pass)
workingDirectory: node_modules/@microsoft.azure/autorest.testserver
displayName: "Upload Coverage Report"
- job: SmokeTest
steps:
- template: build.yml
- script: npm run clone:specs
displayName: 'Clone Specs Repository'
- template: smoke-test.yml
parameters:
name: SmokeTest_1
tag: ci_1

- script: npm run smoke-test
displayName: 'Run Smoke Tests'
- template: smoke-test.yml
parameters:
name: SmokeTest_2
tag: ci_2

- script: npm run check:tree
displayName: 'Check git Tree'
- template: smoke-test.yml
parameters:
name: SmokeTest_3
tag: ci_3
16 changes: 16 additions & 0 deletions .scripts/smoke-test.yml
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"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ More information about these can be found [here](https://github.com/Azure/autore
```yaml
version: 3.0.6258
use-extension:
"@autorest/modelerfour": "4.13.351"
"@autorest/modelerfour": "4.13.358"

modelerfour:
# this runs a pre-namer step to clean up names
Expand Down
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.
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)


![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,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
}
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;
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";
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";
}
}
Loading

0 comments on commit a4df799

Please sign in to comment.