This commit is contained in:
Pavel Krymets 2020-04-03 15:29:26 -07:00 коммит произвёл GitHub
Родитель 5fcb4dec3a
Коммит 2bbb10b9b8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 288 добавлений и 74 удалений

Просмотреть файл

@ -1,53 +1,19 @@
#Requires -Version 6.0
param($name, [switch]$continue, [switch]$noDebug, [switch]$reset, [switch]$noBuild, [switch]$noProjectBuild, [switch]$fast, [switch]$updateLaunchSettings, [switch]$clean = $true)
#Requires -Version 7.0
param($name, [switch]$continue, [switch]$noDebug, [switch]$reset, [switch]$noBuild, [switch]$fast, [switch]$updateLaunchSettings, [switch]$clean = $true, [String[]]$Exclude = "SmokeTests", $parallel = 5)
Import-Module "$PSScriptRoot\Generation.psm1" -DisableNameChecking -Force;
$ErrorActionPreference = 'Stop'
function Invoke($command)
{
Write-Host "> $command"
pushd $repoRoot
cmd /c "$command 2>&1"
popd
if($LastExitCode -ne 0)
{
Write-Error "Command failed to execute: $command"
}
}
function Invoke-AutoRest($baseOutput, $title, $autoRestArguments)
{
$outputPath = Join-Path $baseOutput $title
$namespace = $title.Replace('-', '_')
$command = "$script:autorestBinary $script:debugFlags $autoRestArguments --title=$title --namespace=$namespace --output-folder=$outputPath"
if ($fast)
{
$codeModel = Join-Path $baseOutput $title "CodeModel.yaml"
$command = "dotnet run --project $script:autorestPluginProject --no-build -- --plugin=csharpgen --title=$title --namespace=$namespace --standalone --input-file=$codeModel --output-folder=$outputPath --shared-source-folder=$script:sharedSource --save-code-model=true"
}
if ($clean)
{
Get-ChildItem $outputPath -Filter Generated -Directory -Recurse | Get-ChildItem -File -Recurse | Remove-Item -Force
}
Invoke $command
}
# General configuration
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot '..')
$debugFlags = if (-not $noDebug) { '--debug', '--verbose' }
$swaggerDefinitions = @{};
# Test server test configuration
$autorestBinary = Join-Path $repoRoot 'node_modules' '.bin' 'autorest-beta'
$autorestPluginProject = (Get-AutorestProject)
$testServerDirectory = Join-Path $repoRoot 'test' 'TestServerProjects'
$sharedSource = Join-Path $repoRoot 'src' 'assets'
$autorestPluginProject = Resolve-Path (Join-Path $repoRoot 'src' 'AutoRest.CSharp.V3')
$launchSettings = Join-Path $autorestPluginProject 'Properties' 'launchSettings.json'
$configurationPath = Join-Path $repoRoot 'readme.md'
$testServerSwaggerPath = Join-Path $repoRoot 'node_modules' '@microsoft.azure' 'autorest.testserver' 'swagger'
$testNames =
@ -86,21 +52,27 @@ $testNames =
#'xms-error-responses',
'url-multi-collectionFormat';
foreach ($testName in $testNames)
if (!($Exclude -contains "TestServer"))
{
foreach ($testName in $testNames)
{
$inputFile = Join-Path $testServerSwaggerPath "$testName.json"
$swaggerDefinitions[$testName] = @{
'title'=$testName;
'output'=$testServerDirectory;
'arguments'="--require=$configurationPath --input-file=$inputFile"
}
}
}
# Local test projects
$testSwaggerPath = Join-Path $repoRoot 'test' 'TestProjects'
foreach ($directory in Get-ChildItem $testSwaggerPath -Directory)
if (!($Exclude -contains "TestProjects"))
{
# Local test projects
$testSwaggerPath = Join-Path $repoRoot 'test' 'TestProjects'
foreach ($directory in Get-ChildItem $testSwaggerPath -Directory)
{
$testName = $directory.Name
$inputFile = Join-Path $directory "$testName.json"
$swaggerDefinitions[$testName] = @{
@ -108,6 +80,7 @@ foreach ($directory in Get-ChildItem $testSwaggerPath -Directory)
'output'=$testSwaggerPath;
'arguments'="--require=$configurationPath --input-file=$inputFile"
}
}
}
# Sample configuration
$projectNames =
@ -120,20 +93,44 @@ $projectNames =
'Azure.Storage.Management',
'Azure.Network.Management.Interface'
foreach ($projectName in $projectNames)
if (!($Exclude -contains "Samples"))
{
foreach ($projectName in $projectNames)
{
$projectDirectory = Join-Path $repoRoot 'samples' $projectName
$configurationPath = Join-Path $projectDirectory 'readme.md'
$sampleConfigurationPath = Join-Path $projectDirectory 'readme.md'
$swaggerDefinitions[$projectName] = @{
'title'=$projectName;
'output'=$projectDirectory;
'arguments'="--require=$configurationPath"
'arguments'="--require=$sampleConfigurationPath"
}
}
}
# Smoke tests
if (!($Exclude -contains "SmokeTests"))
{
foreach ($input in Get-Content (Join-Path $PSScriptRoot "SmokeTestInputs.txt"))
{
if ($input -match "^[^#].*?specification/([\w-]+(/[\w-]+)+)/readme.md")
{
$projectName = $Matches[1].Replace("/", "-");
$projectDirectory = Join-Path $repoRoot 'samples' 'smoketests' $projectName
$swaggerDefinitions[$projectName] = @{
'title'=$projectName;
'output'=$projectDirectory;
'arguments'="--require=$configurationPath $input"
}
}
}
}
if ($updateLaunchSettings)
{
$launchSettings = Join-Path $autorestPluginProject 'Properties' 'launchSettings.json'
$settings = @{
'profiles' = [ordered]@{}
};
@ -157,15 +154,15 @@ if ($updateLaunchSettings)
if ($reset -or $env:TF_BUILD)
{
Invoke "$script:autorestBinary --reset"
Autorest-Reset;
}
if (!$noBuild)
{
dotnet build $autorestPluginProject
Invoke "dotnet build $autorestPluginProject"
}
$keys = $swaggerDefinitions.Keys;
$keys = $swaggerDefinitions.Keys | Sort-Object;
if (![string]::IsNullOrWhiteSpace($name))
{
if ($continue)
@ -179,14 +176,8 @@ if (![string]::IsNullOrWhiteSpace($name))
}
}
foreach ($key in $keys)
{
$definition = $swaggerDefinitions[$key];
Invoke-AutoRest $definition.output $definition.title $definition.arguments
$projectPath = Join-Path $definition.output $definition.title;
if (!$noProjectBuild)
{
Invoke "dotnet build $projectPath --verbosity quiet /nologo"
}
}
$keys | %{ $swaggerDefinitions[$_] } | ForEach-Object -Parallel {
Import-Module "$using:PSScriptRoot\Generation.psm1" -DisableNameChecking;
Invoke-Autorest $_.output $_.title $_.arguments $using:sharedSource $using:fast $using:clean;
} -ThrottleLimit $parallel

63
eng/Generation.psm1 Normal file
Просмотреть файл

@ -0,0 +1,63 @@
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot '..')
$autorestBinary = Join-Path $repoRoot 'node_modules' '.bin' 'autorest-beta'
$AutorestPluginProject = Resolve-Path (Join-Path $repoRoot 'src' 'AutoRest.CSharp.V3')
function Invoke($command)
{
Write-Host "> $command"
pushd $repoRoot
if ($IsLinux)
{
sh -c "$command 2>&1"
}
else
{
cmd /c "$command 2>&1"
}
popd
if($LastExitCode -ne 0)
{
Write-Error "Command failed to execute: $command"
}
}
function Invoke-Autorest($baseOutput, $title, $autoRestArguments, $sharedSource, $fast, $clean)
{
$outputPath = Join-Path $baseOutput $title
$namespace = $title.Replace('-', '_')
$command = "$script:autorestBinary $autoRestArguments --title=$title --namespace=$namespace --output-folder=$outputPath"
if ($fast)
{
$codeModel = Join-Path $baseOutput $title "CodeModel.yaml"
$command = "dotnet run --project $script:AutorestPluginProject --no-build -- --plugin=csharpgen --title=$title --namespace=$namespace --standalone --input-file=$codeModel --output-folder=$outputPath --shared-source-folder=$sharedSource --save-code-model=true"
}
if ($clean)
{
if (Test-Path $outputPath)
{
Get-ChildItem $outputPath -Filter Generated -Directory -Recurse | Get-ChildItem -File -Recurse | Remove-Item -Force
New-Item -ItemType Directory -Force -Path $outputPath | Out-Null;
}
}
Invoke $command
Invoke "dotnet build $outputPath --verbosity quiet /nologo"
}
function Autorest-Reset()
{
Invoke "$script:autorestBinary --reset"
}
function Get-AutorestProject()
{
$AutorestPluginProject;
}
Export-ModuleMember -Function "Invoke"
Export-ModuleMember -Function "Invoke-Autorest"
Export-ModuleMember -Function "Autorest-Reset"
Export-ModuleMember -Function "Get-AutorestProject"

136
eng/SmokeTestInputs.txt Normal file
Просмотреть файл

@ -0,0 +1,136 @@
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/addons/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/adhybridhealthservice/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/advisor/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/analysisservices/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/apimanagement/control-plane/readme.md - https://github.com/Azure/autorest.csharp/issues/623
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/apimanagement/resource-manager/readme.md - https://github.com/Azure/autorest.csharp/issues/622
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/appconfiguration/data-plane/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/appconfiguration/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/applicationinsights/data-plane/readme.md - https://github.com/Azure/autorest.csharp/issues/624
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/appplatform/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/attestation/data-plane/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/attestation/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/authorization/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/azurebridge/readme.md - https://github.com/Azure/autorest.csharp/issues/623
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/backup/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/commerce/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/compute/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/deployment/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/fabric/readme.md - https://github.com/Azure/autorest.csharp/issues/625
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/gallery/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/infrastructureinsights/readme.md - https://github.com/Azure/autorest.csharp/issues/626
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/keyvault/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/network/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/storage/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/subscriptions/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/update/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/user-subscriptions/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azureactivedirectory/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azuredata/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azure-kusto/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azurestack/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/batchai/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/batch/data-plane/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/batch/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/billing/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/blockchain/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/botservice/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/cognitiveservices/data-plane/InkRecognizer/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/cognitiveservices/data-plane/LocalSearch/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/cognitiveservices/data-plane/Personalizer/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/cognitiveservices/data-plane/QnAMaker/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/cognitiveservices/data-plane/TextAnalytics/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/cognitiveservices/data-plane/TranslatorText/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/cognitiveservices/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/consumption/resource-manager/readme.md - https://github.com/Azure/autorest.csharp/issues/621
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/containerregistry/data-plane/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/customer-insights/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/customproviders/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/databoxedge/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/databox/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/databricks/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/datacatalog/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/datalake-analytics/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/datalake-store/data-plane/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/datalake-store/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/deviceprovisioningservices/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/devops/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/devspaces/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/devtestlabs/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/dns/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/domainservices/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/engagementfabric/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/EnterpriseKnowledgeGraph/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/eventgrid/data-plane/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/eventgrid/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/eventhub/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/graphrbac/data-plane/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/guestconfiguration/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/hanaonazure/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/hardwaresecuritymodules/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/hdinsight/data-plane/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/healthcareapis/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/hybriddatamanager/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/imagebuilder/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/imds/data-plane/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/intune/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/iotcentral/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/iothub/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/iotspaces/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/keyvault/data-plane/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/keyvault/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/labservices/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/logic/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/machinelearningcompute/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/machinelearningexperimentation/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/machinelearningservices/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/maintenance/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/managednetwork/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/managedservices/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/managementgroups/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/managementpartner/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/maps/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/marketplaceordering/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/migrateprojects/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/migrate/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/monitor/data-plane/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/msi/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/netapp/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/network/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/notificationhubs/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/operationalinsights/data-plane/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/peering/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/portal/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/powerbidedicated/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/powerbiembedded/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/privatedns/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/recoveryservices/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/recoveryservicessiterecovery/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/redhatopenshift/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/redis/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/relay/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/resourcegraph/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/resourcehealth/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/scheduler/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/search/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/serialconsole/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/signalr/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/softwareplan/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/sqlvirtualmachine/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/storagecache/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/storageimportexport/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/storagesync/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/storSimple1200Series/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/storsimple8000series/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/support/resource-manager/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/synapse/data-plane/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/synapse/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/timeseriesinsights/data-plane/readme.md
#https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/timeseriesinsights/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/trafficmanager/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/vmwarecloudsimple/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/vmwarevirtustream/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/windowsesu/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/windowsiot/resource-manager/readme.md
https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/workloadmonitor/resource-manager/readme.md

Просмотреть файл

@ -47,3 +47,26 @@ jobs:
condition: succeeded()
failOnStderr: false
displayName: 'Publish to GitHub and coverage report'
- job: SmokeTest
variables:
DotNetCoreSDKVersion: 3.0.100
pool:
vmImage: windows-2019
steps:
- task: DotNetCoreInstaller@2
displayName: "Use .NET Core sdk $(DotNetCoreSDKVersion)"
inputs:
version: "$(DotNetCoreSDKVersion)"
- task: NodeTool@0
displayName: "Install Node 13.x"
inputs:
versionSpec: '13.x'
- script: |
npm ci
displayName: "Install packages"
- pwsh: .\eng\Generate.ps1 -Exclude TestServer,TestProjects,Samples -reset -noDebug
displayName: "Check if code is up-to-date"
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_MULTILEVEL_LOOKUP: 0

1
samples/.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1 @@
smoketests