File tree 7 files changed +10
-14
lines changed
Arcus.Security.Tests.Integration
7 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ stages:
53
53
parameters :
54
54
dotnetSdkVersion : ' $(DotNet.Sdk.Version)'
55
55
versionSuffix : ' $(packageVersion)'
56
- includePreviewVersions : true
56
+ includePreviewVersions : $(DotNet.Sdk.IncludePreviewVersions)
57
57
- task : CopyFiles@2
58
58
displayName : ' Copy build artifacts'
59
59
inputs :
@@ -89,7 +89,7 @@ stages:
89
89
parameters :
90
90
dotnetSdkVersion : ' $(DotNet.Sdk.Version)'
91
91
projectName : ' $(Project).Tests.Unit'
92
- includePreviewVersions : true
92
+ includePreviewVersions : $(DotNet.Sdk.IncludePreviewVersions)
93
93
94
94
- stage : IntegrationTests
95
95
displayName : Integration Tests
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ stages:
39
39
parameters :
40
40
dotnetSdkVersion : ' $(DotNet.Sdk.Version)'
41
41
version : $(Build.BuildNumber)
42
- includePreviewVersions : true
42
+ includePreviewVersions : $(DotNet.Sdk.IncludePreviewVersions)
43
43
- task : CopyFiles@2
44
44
displayName : ' Copy build artifacts'
45
45
inputs :
@@ -75,7 +75,7 @@ stages:
75
75
parameters :
76
76
dotnetSdkVersion : ' $(DotNet.Sdk.Version)'
77
77
projectName : ' $(Project).Tests.Unit'
78
- includePreviewVersions : true
78
+ includePreviewVersions : $(DotNet.Sdk.IncludePreviewVersions)
79
79
80
80
- stage : IntegrationTests
81
81
displayName : Integration Tests
Original file line number Diff line number Diff line change 14
14
inputs :
15
15
packageType : ' sdk'
16
16
version : ' $(DotNet.Sdk.VersionBC)'
17
- includePreviewVersions : true
17
+ includePreviewVersions : $(DotNet.Sdk.IncludePreviewVersions)
18
18
- task : Docker@1
19
19
displayName : ' Build Docker image from ${{ parameters.dockerProjectName }}'
20
20
inputs :
33
33
parameters :
34
34
dotnetSdkVersion : ' $(DotNet.Sdk.Version)'
35
35
projectName : ' $(Project).Tests.Integration'
36
- includePreviewVersions : true
36
+ includePreviewVersions : $(DotNet.Sdk.IncludePreviewVersions)
37
37
- task : Bash@3
38
38
inputs :
39
39
targetType : ' inline'
Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ variables:
2
2
DotNet.Sdk.Version : ' 8.0.x'
3
3
# Backwards compatible .NET SDK version
4
4
DotNet.Sdk.VersionBC : ' 6.0.100'
5
+ DotNet.Sdk.IncludePreviewVersions : false
5
6
Project : ' Arcus.Security'
6
7
Vm.Image : ' ubuntu-latest'
Original file line number Diff line number Diff line change 18
18
<TreatWarningsAsErrors >true</TreatWarningsAsErrors >
19
19
</PropertyGroup >
20
20
21
- <PropertyGroup >
22
- <!-- Allows (for now) preview packages, as we are referencing Arcus' preview .NET 8 package. -->
23
- <NoWarn >NU5104</NoWarn >
24
- </PropertyGroup >
25
-
26
21
<ItemGroup >
27
22
<None Include =" ..\..\README.md" Pack =" true" PackagePath =" \" />
28
23
<None Include =" ..\..\LICENSE" Pack =" true" PackagePath =" \" />
29
24
<None Include =" ..\..\docs\static\img\icon.png" Pack =" true" PackagePath =" \" />
30
25
</ItemGroup >
31
26
32
27
<ItemGroup >
33
- <PackageReference Include =" Arcus.Observability.Telemetry.Core" Version =" [3.0.0-preview-1-net8.0 ,4.0.0)" />
28
+ <PackageReference Include =" Arcus.Observability.Telemetry.Core" Version =" [3.0.0,4.0.0)" />
34
29
<PackageReference Include =" Guard.Net" Version =" 3.0.0" />
35
30
<PackageReference Include =" Microsoft.Extensions.Caching.Memory" Version =" 6.0.0" />
36
31
<PackageReference Include =" Microsoft.Extensions.Hosting.Abstractions" Version =" 6.0.0" />
Original file line number Diff line number Diff line change 8
8
9
9
<ItemGroup >
10
10
<FrameworkReference Include =" Microsoft.AspNetCore.App" />
11
- <PackageReference Include =" Arcus.Observability.Telemetry.Serilog.Sinks.ApplicationInsights" Version =" 2.4 .0" />
11
+ <PackageReference Include =" Arcus.Observability.Telemetry.Serilog.Sinks.ApplicationInsights" Version =" 3.0 .0" />
12
12
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.7.1" />
13
13
<PackageReference Include =" Serilog.Extensions.Hosting" Version =" 3.1.0" />
14
14
<PackageReference Include =" Vault" Version =" 0.9.1.3" />
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public IntegrationTest(ITestOutputHelper testOutput)
27
27
var configuration = new LoggerConfiguration ( )
28
28
. WriteTo . XunitTestLogging ( testOutput )
29
29
. WriteTo . Sink ( InMemoryLogSink )
30
- . WriteTo . AzureApplicationInsights ( Configuration . GetValue < string > ( "Arcus:ApplicationInsights:InstrumentationKey" ) ) ;
30
+ . WriteTo . AzureApplicationInsightsWithInstrumentationKey ( Configuration . GetValue < string > ( "Arcus:ApplicationInsights:InstrumentationKey" ) ) ;
31
31
32
32
Logger = configuration . CreateLogger ( ) ;
33
33
}
You can’t perform that action at this time.
0 commit comments