Skip to content

Commit a22b715

Browse files
authored
Update published files for 2.2-preview2 (#1370)
- Also convert env vars to UPPER_CASE for compat with Mac and Linux
1 parent b2cf502 commit a22b715

File tree

6 files changed

+26
-25
lines changed

6 files changed

+26
-25
lines changed

.vsts/builds/e2e-tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ phases:
2121
- powershell: |
2222
test/Cli.FunctionalTests/run-tests.ps1 `
2323
-ci `
24-
-ProdConManifestUrl $env:ProdConManifestUrl `
24+
-ProdConManifestUrl $env:PRODCONMANIFESTURL `
2525
-TestRuntimeIdentifier $(Test.RuntimeIdentifier)
2626
condition: ne(variables['PB_SkipTests'], 'true')
2727
displayName: Run E2E tests
@@ -50,10 +50,7 @@ phases:
5050
inputs:
5151
versionSpec: 10.x
5252
- powershell: |
53-
test/Cli.FunctionalTests/run-tests.ps1 \
54-
-ci \
55-
-ProdConManifestUrl $env:ProdConManifestUrl \
56-
-TestRuntimeIdentifier $(Test.RuntimeIdentifier)
53+
test/Cli.FunctionalTests/run-tests.ps1 -ci -ProdConManifestUrl $env:PRODCONMANIFESTURL -TestRuntimeIdentifier $(Test.RuntimeIdentifier)
5754
condition: ne(variables['PB_SkipTests'], 'true')
5855
displayName: Run E2E tests
5956
- task: PublishTestResults@2

test/Cli.FunctionalTests/Cli.FunctionalTests.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ VisualStudioVersion = 15.0.28016.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli.FunctionalTests", "Cli.FunctionalTests.csproj", "{D44EA496-EF83-4D47-8C45-4DAF5A1B0070}"
77
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0EC88B4E-B1F2-4183-9EBF-BF66C45D19D7}"
9+
ProjectSection(SolutionItems) = preProject
10+
..\..\.vsts\builds\e2e-tests.yml = ..\..\.vsts\builds\e2e-tests.yml
11+
EndProjectSection
12+
EndProject
813
Global
914
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1015
Debug|Any CPU = Debug|Any CPU

test/Cli.FunctionalTests/Templates/RazorApplicationBaseTemplate.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ public abstract class RazorApplicationBaseTemplate : WebTemplate
5151

5252
public override IEnumerable<string> ExpectedFilesAfterPublish =>
5353
base.ExpectedFilesAfterPublish
54-
.Concat(RazorUtil.GetExpectedFilesAfterPublish(this))
55-
.Concat(new[]
56-
{
57-
"appsettings.Development.json",
58-
"appsettings.json",
59-
});
54+
.Concat(RazorUtil.GetExpectedFilesAfterPublish(this));
6055
}
6156
}
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using System.Collections.Generic;
5-
using System.Linq;
64

75
namespace Cli.FunctionalTests.Templates
86
{
@@ -13,13 +11,5 @@ public WebApiTemplate() { }
1311
public override string Name => "webapi";
1412

1513
public override string RelativeUrl => "/api/values";
16-
17-
public override IEnumerable<string> ExpectedFilesAfterPublish =>
18-
base.ExpectedFilesAfterPublish
19-
.Concat(new[]
20-
{
21-
"appsettings.Development.json",
22-
"appsettings.json",
23-
});
2414
}
2515
}

test/Cli.FunctionalTests/Templates/WebTemplate.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,29 @@ public WebTemplate() { }
220220
},
221221
{ ("netcoreapp2.2", RuntimeIdentifier.None), () =>
222222
_additionalFilesAfterPublish[("netcoreapp2.1", RuntimeIdentifier.None)]()
223+
.Concat(new[]
224+
{
225+
"appsettings.Development.json",
226+
"appsettings.json",
227+
})
223228
},
224229
{ ("netcoreapp2.2", RuntimeIdentifier.Linux_x64), () =>
225230
_additionalFilesAfterPublish[("netcoreapp2.1", RuntimeIdentifier.Linux_x64)]()
231+
.Except(new[]
232+
{
233+
"Microsoft.AspNetCore.Identity.UI.Views.dll",
234+
})
226235
.Concat(new[]
227236
{
237+
"appsettings.Development.json",
238+
"appsettings.json",
228239
"Microsoft.AspNetCore.Diagnostics.HealthChecks.dll",
240+
"Microsoft.AspNetCore.Identity.UI.Views.V3.dll",
241+
"Microsoft.AspNetCore.Identity.UI.Views.V4.dll",
229242
"Microsoft.AspNetCore.Server.IIS.dll",
230243
"Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll",
231244
"Microsoft.Extensions.Diagnostics.HealthChecks.dll",
245+
"Microsoft.Extensions.Options.DataAnnotations.dll",
232246
})
233247
},
234248
{ ("netcoreapp2.2", RuntimeIdentifier.OSX_x64), () =>

test/Cli.FunctionalTests/run-tests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ The prodcon channel to use if a build.xml file isn't set.
3333

3434
param(
3535
[switch]$ci,
36-
$AssetRootUrl = $env:PB_AccessRootUrl,
37-
$AccessTokenSuffix = $env:PB_AccessTokenSuffix,
38-
$RestoreSources = $env:PB_RestoreSources,
36+
$AssetRootUrl = $env:PB_ASSETROOTURL,
37+
$AccessTokenSuffix = $env:PB_ACCESSTOKENSUFFIX,
38+
$RestoreSources = $env:PB_RESTORESOURCES,
3939
[ValidateSet('none', 'osx-x64', 'linux-x64', 'win-x64')]
4040
$TestRuntimeIdentifier,
4141
$HostRid,
@@ -138,7 +138,7 @@ try {
138138
$env:DOTNET_ROOT = $dotnetRoot
139139
$env:DOTNET_MULTILEVEL_LOOKUP = 0
140140
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 0
141-
$env:MSBuildSdksPath = ''
141+
$env:MSBUILDSDKSPATH = ''
142142
$env:PATH = "$dotnetRoot;$env:PATH"
143143

144144
# Required by the tests. It is assumed packages on this feed will end up on nuget.org

0 commit comments

Comments
 (0)