1
- // Copyright (c) .NET Foundation. All rights reserved.
1
+ // Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
4
using System ;
@@ -25,40 +25,29 @@ public HttpsTest(ITestOutputHelper output) : base(output)
25
25
{
26
26
}
27
27
28
- [ ConditionalTheory ]
29
- [ OSSkipCondition ( OperatingSystems . Linux | OperatingSystems . MacOSX ) ]
30
- [ FrameworkSkipCondition ( RuntimeFrameworks . CoreCLR ) ]
31
- [ InlineData ( RuntimeFlavor . Clr , RuntimeArchitecture . x64 , "https://localhost:44396/" , ApplicationType . Portable ) ]
32
- public Task Https_HelloWorld ( RuntimeFlavor runtimeFlavor , RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
33
- {
34
- return HttpsHelloWorld ( ServerType . IISExpress , runtimeFlavor , architecture , applicationBaseUrl , applicationType ) ;
35
- }
36
-
37
28
[ ConditionalTheory ( Skip = "No test configuration enabled" ) ]
38
29
[ OSSkipCondition ( OperatingSystems . Linux | OperatingSystems . MacOSX ) ]
39
- [ FrameworkSkipCondition ( RuntimeFrameworks . CLR ) ]
40
- //[InlineData(RuntimeFlavor.CoreClr, RuntimeArchitecture.x86, "https://localhost:44394/", ApplicationType.Portable)]
41
- // TODO reenable when https://github.com/dotnet/sdk/issues/696 is resolved
42
- //[InlineData(RuntimeFlavor.CoreClr, RuntimeArchitecture.x64, "https://localhost:44395/", ApplicationType.Standalone)]
43
- public Task Https_HelloWorld_CoreCLR ( RuntimeFlavor runtimeFlavor , RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
30
+ //[InlineData(RuntimeArchitecture.x86, "https://localhost:44394/", ApplicationType.Portable)]
31
+ [ InlineData ( RuntimeArchitecture . x64 , "https://localhost:44395/" , ApplicationType . Standalone ) ]
32
+ public Task Https_HelloWorld ( RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
44
33
{
45
- return HttpsHelloWorld ( ServerType . IISExpress , runtimeFlavor , architecture , applicationBaseUrl , applicationType ) ;
34
+ return HttpsHelloWorld ( ServerType . IISExpress , architecture , applicationBaseUrl , applicationType ) ;
46
35
}
47
36
48
- public async Task HttpsHelloWorld ( ServerType serverType , RuntimeFlavor runtimeFlavor , RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
37
+ public async Task HttpsHelloWorld ( ServerType serverType , RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
49
38
{
50
- var testName = $ "HttpsHelloWorld_{ serverType } _{ runtimeFlavor } _ { architecture } ";
39
+ var testName = $ "HttpsHelloWorld_{ serverType } _{ architecture } ";
51
40
using ( StartLog ( out var loggerFactory , testName ) )
52
41
{
53
42
var logger = loggerFactory . CreateLogger ( "HttpsHelloWorldTest" ) ;
54
43
55
- var deploymentParameters = new DeploymentParameters ( Helpers . GetTestSitesPath ( ) , serverType , runtimeFlavor , architecture )
44
+ var deploymentParameters = new DeploymentParameters ( Helpers . GetTestSitesPath ( ) , serverType , RuntimeFlavor . CoreClr , architecture )
56
45
{
57
46
ApplicationBaseUriHint = applicationBaseUrl ,
58
47
EnvironmentName = "HttpsHelloWorld" , // Will pick the Start class named 'StartupHttpsHelloWorld',
59
48
ServerConfigTemplateContent = ( serverType == ServerType . IISExpress ) ? File . ReadAllText ( "Https.config" ) : null ,
60
49
SiteName = "HttpsTestSite" , // This is configured in the Https.config
61
- TargetFramework = runtimeFlavor == RuntimeFlavor . Clr ? "net46" : "netcoreapp2.0" ,
50
+ TargetFramework = "netcoreapp2.0" ,
62
51
ApplicationType = applicationType
63
52
} ;
64
53
@@ -91,58 +80,37 @@ public async Task HttpsHelloWorld(ServerType serverType, RuntimeFlavor runtimeFl
91
80
}
92
81
}
93
82
94
- [ ConditionalTheory ( Skip = "No test configuration enabled" ) ]
95
- [ OSSkipCondition ( OperatingSystems . Linux | OperatingSystems . MacOSX ) ]
96
- [ FrameworkSkipCondition ( RuntimeFrameworks . CoreCLR ) ]
97
- //[InlineData(RuntimeFlavor.Clr, RuntimeArchitecture.x86, "https://localhost:44399/", ApplicationType.Standalone)]
98
- public Task Https_HelloWorld_NoClientCert ( RuntimeFlavor runtimeFlavor , RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
99
- {
100
- return HttpsHelloWorldCerts ( ServerType . IISExpress , runtimeFlavor , architecture , applicationBaseUrl , applicationType , sendClientCert : false ) ;
101
- }
102
-
103
83
[ ConditionalTheory ]
104
84
[ OSSkipCondition ( OperatingSystems . Linux | OperatingSystems . MacOSX ) ]
105
- [ FrameworkSkipCondition ( RuntimeFrameworks . CLR ) ]
106
- // TODO reenable when https://github.com/dotnet/sdk/issues/696 is resolved
107
- //[InlineData(RuntimeFlavor.CoreClr, RuntimeArchitecture.x64, "https://localhost:44397/", ApplicationType.Standalone)]
108
- [ InlineData ( RuntimeFlavor . CoreClr , RuntimeArchitecture . x64 , "https://localhost:44398/" , ApplicationType . Portable ) ]
109
- public Task Https_HelloWorld_NoClientCert_CoreCLR ( RuntimeFlavor runtimeFlavor , RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
110
- {
111
- return HttpsHelloWorldCerts ( ServerType . IISExpress , runtimeFlavor , architecture , applicationBaseUrl , applicationType , sendClientCert : false ) ;
112
- }
113
-
114
- [ ConditionalTheory ( Skip = "Manual test only, selecting a client cert is non-determanistic on different machines." ) ]
115
- [ OSSkipCondition ( OperatingSystems . Linux | OperatingSystems . MacOSX ) ]
116
- [ FrameworkSkipCondition ( RuntimeFrameworks . CoreCLR ) ]
117
- [ InlineData ( RuntimeFlavor . Clr , RuntimeArchitecture . x64 , "https://localhost:44301/" , ApplicationType . Portable ) ]
118
- public Task Https_HelloWorld_ClientCert ( RuntimeFlavor runtimeFlavor , RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
85
+ //[InlineData(RuntimeArchitecture.x86, "https://localhost:44399/", ApplicationType.Standalone)]
86
+ [ InlineData ( RuntimeArchitecture . x64 , "https://localhost:44398/" , ApplicationType . Portable ) ]
87
+ public Task Https_HelloWorld_NoClientCert ( RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
119
88
{
120
- return HttpsHelloWorldCerts ( ServerType . IISExpress , runtimeFlavor , architecture , applicationBaseUrl , applicationType , sendClientCert : true ) ;
89
+ return HttpsHelloWorldCerts ( ServerType . IISExpress , architecture , applicationBaseUrl , applicationType , sendClientCert : false ) ;
121
90
}
122
91
123
92
[ ConditionalTheory ( Skip = "Manual test only, selecting a client cert is non-determanistic on different machines." ) ]
124
93
[ OSSkipCondition ( OperatingSystems . Linux | OperatingSystems . MacOSX ) ]
125
- [ FrameworkSkipCondition ( RuntimeFrameworks . CLR ) ]
126
- //[InlineData(RuntimeFlavor.CoreClr, RuntimeArchitecture.x86, "https://localhost:44302/", ApplicationType.Standalone)]
127
- public Task Https_HelloWorld_ClientCert_CoreCLR ( RuntimeFlavor runtimeFlavor , RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
94
+ [ InlineData ( RuntimeArchitecture . x64 , "https://localhost:44301/" , ApplicationType . Portable ) ]
95
+ public Task Https_HelloWorld_ClientCert ( RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType )
128
96
{
129
- return HttpsHelloWorldCerts ( ServerType . IISExpress , runtimeFlavor , architecture , applicationBaseUrl , applicationType , sendClientCert : true ) ;
97
+ return HttpsHelloWorldCerts ( ServerType . IISExpress , architecture , applicationBaseUrl , applicationType , sendClientCert : true ) ;
130
98
}
131
99
132
- public async Task HttpsHelloWorldCerts ( ServerType serverType , RuntimeFlavor runtimeFlavor , RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType , bool sendClientCert )
100
+ public async Task HttpsHelloWorldCerts ( ServerType serverType , RuntimeArchitecture architecture , string applicationBaseUrl , ApplicationType applicationType , bool sendClientCert )
133
101
{
134
- var testName = $ "HttpsHelloWorldCerts_{ serverType } _{ runtimeFlavor } _ { architecture } ";
102
+ var testName = $ "HttpsHelloWorldCerts_{ serverType } _{ architecture } ";
135
103
using ( StartLog ( out var loggerFactory , testName ) )
136
104
{
137
105
var logger = loggerFactory . CreateLogger ( "HttpsHelloWorldTest" ) ;
138
106
139
- var deploymentParameters = new DeploymentParameters ( Helpers . GetTestSitesPath ( ) , serverType , runtimeFlavor , architecture )
107
+ var deploymentParameters = new DeploymentParameters ( Helpers . GetTestSitesPath ( ) , serverType , RuntimeFlavor . CoreClr , architecture )
140
108
{
141
109
ApplicationBaseUriHint = applicationBaseUrl ,
142
110
EnvironmentName = "HttpsHelloWorld" , // Will pick the Start class named 'StartupHttpsHelloWorld',
143
111
ServerConfigTemplateContent = ( serverType == ServerType . IISExpress ) ? File . ReadAllText ( "Https.config" ) : null ,
144
112
SiteName = "HttpsTestSite" , // This is configured in the Https.config
145
- TargetFramework = runtimeFlavor == RuntimeFlavor . Clr ? "net46" : "netcoreapp2.0" ,
113
+ TargetFramework = "netcoreapp2.0" ,
146
114
ApplicationType = applicationType
147
115
} ;
148
116
0 commit comments