Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
4cd8984
Luis swagger fixes (#5416)
diberry Mar 19, 2019
e61abec
Fix operation types (#5412)
zachraMSFT Mar 19, 2019
2f13167
graph: identifierUris should not be required (#5425)
yugangw-msft Mar 19, 2019
86b3031
Add service principals by app id microsoft.graph rbac (#5417)
ankushbindlish2 Mar 20, 2019
a36c4d6
[Hub Generated] Review request for Microsoft.MachineLearning to add v…
xinzouMicrosoft-zz Mar 20, 2019
55b0caf
Update to Release 3.5 standard (pre GA) (#5370)
leonardbf Mar 20, 2019
a9d602a
enable npm caching in travis (#5385)
jhendrixMSFT Mar 20, 2019
27af2f4
fix Go output folder for managed services (#5436)
jhendrixMSFT Mar 20, 2019
5cf04ee
[Hub Generated] Review request for Microsoft.Azure.Search.Service to …
brjohnstmsft Mar 20, 2019
6f9a9ad
EventHub: Added NetwrokruleSet API (#5364)
Mar 20, 2019
0972d9b
[Hub Generated] Review request for Microsoft.Consumption to add versi…
sandeepkatumalla Mar 21, 2019
4475d4e
[ACR] Update Webhook Event Target Schema to Add Name and Version (#5390)
jaysterp Mar 21, 2019
5324dfc
Modify the public swagger by reference to private swagger (#5382)
Yiliu-microsoft Mar 21, 2019
9dffbda
remove Anomaly Finder cause of rename (#5294)
moreOver0 Mar 21, 2019
13937ec
removing x-ms-pageable (#5439)
nirkum18 Mar 21, 2019
7e9794c
Servicebus : NetworkruleSet (#5361)
Mar 21, 2019
dc95e65
Adding swagger spec for healthcareapis resource manager and examples.…
YazanMSFT Mar 21, 2019
b3b97c2
Kusto: Suppress R2016 warning (#5366)
radennis Mar 21, 2019
a470ddc
[Storage] Add a new return code to Create Container, for container wh…
blueww Mar 21, 2019
56bbd2f
[SRP] update management policy example json to reflect Nov18 changes …
huizlAzure Mar 21, 2019
ee3e1a1
Update FrontDoor WAF API with new preview features (2019-03-01) (#5437)
eschwabe Mar 21, 2019
23d6a7c
Add Custom Vision 3.0 API (#5164)
areddish Mar 21, 2019
1e43718
Adding Specifications for Peering (#5343)
swetha-anantharajaiah Mar 21, 2019
0f9affc
Add preset enum ContentAwareEncodingExperimental (#5413)
Mar 21, 2019
88a9c90
[Hub Generated] Review request for Microsoft.CostManagement to add ve…
ariehf Mar 21, 2019
fc6fb48
Avocado (#5444)
sergey-shandar Mar 21, 2019
b1118e9
[ACR] Add Readonly RunErrorMessage to RunProperties (#5430)
jaysterp Mar 22, 2019
ae3f529
3 new APIs added to SignalR service and rename the sample files (#5091)
juniwang Mar 22, 2019
7782793
Fixed typos (#5452)
ajay-sainy Mar 22, 2019
9bfd9f1
Added feature revoke user delegation key (#5453)
JasonYang-MSFT Mar 22, 2019
23ba9ef
enable release_3_0 for Go SDK (#5455)
jhendrixMSFT Mar 22, 2019
beed341
Small correction to list handling (#5446)
leonardbf Mar 22, 2019
e5a6df2
New operations for adhealth (#5431)
binilkk Mar 22, 2019
aa2e344
typo: registraton -> registration (#5457)
nschonni Mar 22, 2019
fa49bf9
typo: informations -> information about (#5456)
nschonni Mar 22, 2019
02002de
Add Disk 2018-09 to Python (#5460)
lmazuel Mar 23, 2019
c07128d
Merge remote-tracking branch 'remotes/upstream/master' into merge-mas…
anton-evseev Mar 25, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: node_js
node_js:
- '10'
cache: npm
services:
- docker
env:
Expand Down
12 changes: 12 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ jobs:
- script: 'node scripts/modelValidation.js'
displayName: 'Model Validation'

- job: "Avocado"
pool:
vmImage: 'Ubuntu 16.04'
continueOnError: true
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
verbose: false
- script: './node_modules/.bin/ts-node scripts/avocado.ts'
displayName: 'Avocado'

- job: "BreakingChange"
condition: "not(variables['PRIVATE'])"
pool:
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@
"description": "Tests for Azure REST API Specifications",
"license": "MIT",
"devDependencies": {
"@azure/avocado": "^0.2.0",
"@azure/oad": "^0.2.1",
"@microsoft.azure/async-io": "^1.0.21",
"@microsoft.azure/literate": "^1.0.21",
"@microsoft.azure/polyfill": "^1.0.17",
"@ts-common/commonmark-to-markdown": "^1.1.10",
"@ts-common/fs": "0.1.0",
"@ts-common/fs": "0.1.1",
"@types/js-yaml": "^3.12.0",
"fs-extra": "^3.0.1",
"glob": "^5.0.14",
"js-yaml": "^3.12.2",
"js-yaml": "^3.13.0",
"json-schema-ref-parser": "^3.1.2",
"mocha": "*",
"@azure/oad": "^0.2.1",
"oav": "^0.14.5",
"oav": "^0.14.8",
"request": "^2.61.0",
"request-promise-native": "^1.0.5",
"ts-node": "^8.0.3",
"typescript": "^3.2.4",
"z-schema": "^3.25.1",
"ts-node": "^8.0.3"
"z-schema": "^3.25.1"
},
"dependencies": {
"@octokit/rest": "^15.2.6"
Expand Down
44 changes: 44 additions & 0 deletions scripts/avocado.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
const utils = require('../test/util/utils')
import * as path from "path"
import * as avocado from "@azure/avocado"
import * as openApiMarkDown from "@azure/openapi-markdown"
import * as yaml from "js-yaml"

async function main() {
const swaggersToProcess = utils.getFilesChangedInPR();
let errorNumbers = 0
const set = new Set<string>()
for (const swagger of swaggersToProcess) {
const rm = await openApiMarkDown.findReadMe(path.dirname(swagger))
if (rm === undefined) {
console.error(`No readme.md for ${swagger}`)
++errorNumbers
} else {
const dir = path.dirname(rm)
if (dir.includes("specification")) {
set.add(dir)
} else {
console.error(`No readme.md for ${swagger}`)
++errorNumbers
}
}
}
for (const swagger of set) {
try {
console.log(swagger)
const errors = avocado.avocado(swagger)
for await (const e of errors) {
console.error(yaml.safeDump(e))
++errorNumbers
}
} catch (e) {
console.error("fatal error:")
console.error(e)
++errorNumbers
}
}
console.log(`errors: ${errorNumbers}`)
return errorNumbers === 0 ? 0 : 1
}

main().then(process.exit)
Original file line number Diff line number Diff line change
Expand Up @@ -3276,7 +3276,7 @@
"description": "The name of the service.",
"required": true,
"type": "string"
},
},
{
"$ref": "#/parameters/apiVersionParameter"
}
Expand Down Expand Up @@ -3311,7 +3311,7 @@
"description": "The name of the service.",
"required": true,
"type": "string"
},
},
{
"$ref": "#/parameters/apiVersionParameter"
}
Expand All @@ -3328,6 +3328,55 @@
"nextLinkName": null
}
}
},
"/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/metrics/{metricName}":
{
"get": {
"tags": ["Metrics"],
"description": "Gets the list of connectors and run profile names.",
"x-ms-examples": {
"serviceMembers_getConnectorMetadata": {
"$ref": "./examples/ConnectorMetadata.json"
}
},
"operationId": "serviceMembers_getConnectorMetadata",
"parameters": [
{
"name": "serviceName",
"in": "path",
"description": "The name of the service.",
"required": true,
"type": "string"
},
{
"name": "serviceMemberId",
"in": "path",
"description": "The service member id.",
"required": true,
"type": "string",
"format": "uuid"
},
{
"name": "metricName",
"in": "path",
"description": "The name of the metric.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description":
"Gets the list of connectors and run profile names for the given service and service member.",
"schema": {
"$ref": "#/definitions/ConnectorMetadata"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -4237,6 +4286,40 @@
}
}
},
"ConnectorMetadata": {
"description": "Gets the list of connectors and run profile names.",
"type": "object",
"properties": {
"connectors": {
"description": "The list of connectors.",
"type": "array",
"items": {
"$ref": "#/definitions/ConnectorMetadataDetails"
}
},
"runProfileNames": {
"description": "The list of run profile names.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"ConnectorMetadataDetails": {
"description": "Details of the connector.",
"type": "object",
"properties": {
"connectorId": {
"description": "The Connector Id.",
"type": "string"
},
"connectorDisplayName": {
"description": "The Connector Display Name",
"type": "string"
}
}
},
"ConnectorObjectError": {
"description": "The connector object error.",
"type": "object",
Expand Down Expand Up @@ -6458,29 +6541,29 @@
}
}
},
"parameters": {
"apiVersionParameter": {
"name": "api-version",
"in": "query",
"description": "The version of the API to be used with the client request.",
"required": true,
"type": "string"
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow.",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
"parameters": {
"apiVersionParameter": {
"name": "api-version",
"in": "query",
"description": "The version of the API to be used with the client request.",
"required": true,
"type": "string"
}
}
},
"security": [
{
"azure_auth": [ "user_impersonation" ]
}
]
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow.",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"security": [
{
"azure_auth": [ "user_impersonation" ]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"serviceName": "sampleServiceName",
"serviceMemberId": "SampleServiceMemberId",
"api-version": "2014-01-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"connectors": [
{
"connectorId": "3efbb72d-5047-4816-a7dd-73fefe16a2f3",
"connectorDisplayName": "adhsdfus1runner.adhs.com"
},
{
"connectorId": "b891884f-051e-4a83-95af-2544101c9083",
"connectorDisplayName": "dfadhybridhealth.dfdomain.net - AAD"
}
],
"runProfileNames": [
"Export",
"ApplyRules",
"DeltaImport"
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z"
},
"egressConfig": {},
"context": {}
"context": {}
},
"id":"/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
"type":"Microsoft.AlertsManagement/alerts",
"name":"cpu alert"
}
}
}
}
}
8 changes: 8 additions & 0 deletions specification/azure-kusto/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ title: KustoManagementClient
description: The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases.
openapi-type: arm
tag: package-2019-01-21

directive:
- where:
- $.definitions.DataConnection.required
suppress:
- R2016
reason:
- Implements kind which is required also in patch
```

### Tag: package-2019-01-21
Expand Down
Loading