diff --git a/.azure-pipelines/apiview.yml b/.azure-pipelines/apiview.yml index 82945b49a24..dba37c7b6d7 100644 --- a/.azure-pipelines/apiview.yml +++ b/.azure-pipelines/apiview.yml @@ -141,11 +141,8 @@ stages: - job: 'Test' - dependsOn: - - 'Build' - pool: - name: azsdk-pool-mms-win-2019-general + name: azsdk-pool-mms-win-2022-general vmImage: MMS2019 steps: @@ -168,25 +165,15 @@ stages: pwsh: true displayName: 'Start Azurite' - - script: | - npm install -g azurite - displayName: 'Install Azurite' - - - task: Powershell@2 - inputs: - workingDirectory: $(Agent.TempDirectory) - filePath: $(Build.SourcesDirectory)/eng/scripts/Start-LocalHostApp.ps1 - arguments: > - -Process "azurite.cmd" - -ArgumentList "--silent" - -Port "10000" - pwsh: true - displayName: 'Start Azurite' - - task: UseDotNet@2 displayName: 'Install .NET' inputs: version: '$(DotNetRuntimeVersion)' + + - pwsh: | + dotnet --list-runtimes + dotnet --version + displayName: 'List .Net run times' - task: DotNetCoreCLI@2 displayName: 'Build & Test' diff --git a/eng/pipelines/templates/steps/apiview-ui-tests.yml b/eng/pipelines/templates/steps/apiview-ui-tests.yml index 9d6efeae924..09420f43ed9 100644 --- a/eng/pipelines/templates/steps/apiview-ui-tests.yml +++ b/eng/pipelines/templates/steps/apiview-ui-tests.yml @@ -53,6 +53,10 @@ steps: APIVIEW_AUTHENTICATIONSCHEME: "Test" APIVIEW_SENDGRID__KEY: "Test" APIVIEW_APIKEY: "$(azuresdk-apiview-apikey)" + APIVIEW_APPCONFIG: "$(apiview-appconfig-connectionstring)" + AZURE_CLIENT_ID: "$(apiview-appconfig-client-id)" + AZURE_TENANT_ID: "$(apiview-appconfig-tenant-id)" + AZURE_CLIENT_SECRET: "$(apiview-appconfig-client-secret)" - task: Powershell@2 inputs: diff --git a/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Index.cshtml b/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Index.cshtml index 4290ab17474..9bea85f9483 100644 --- a/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Index.cshtml +++ b/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Index.cshtml @@ -107,6 +107,9 @@ + @@ -120,7 +123,10 @@ Swagger + @@ -237,9 +243,14 @@
    -
  1. - Provide URL to cadl project root path. -
  2. + + Provide URL to cadl project root path. + +
+
+
+
    + Upload JSON API review token file.
diff --git a/src/dotnet/APIView/APIViewWeb/Program.cs b/src/dotnet/APIView/APIViewWeb/Program.cs index f7b0dd28b61..1e1ea36dac0 100644 --- a/src/dotnet/APIView/APIViewWeb/Program.cs +++ b/src/dotnet/APIView/APIViewWeb/Program.cs @@ -19,7 +19,7 @@ public static IWebHostBuilder CreateWebHostBuilder(string[] args) => config.AddEnvironmentVariables(prefix: "APIVIEW_"); config.AddUserSecrets(typeof(Program).Assembly); IConfiguration settings = config.Build(); - string connectionString = settings.GetConnectionString("AppConfig"); + string connectionString = settings.GetValue("APPCONFIG"); // Load configuration from Azure App Configuration config.AddAzureAppConfiguration(options => {