Skip to content

Commit 6b04ada

Browse files
Fix cert auth benchmark (#1762)
1 parent 257a062 commit 6b04ada

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/BenchmarksApps/Mvc/benchmarks.certapi.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ scenarios:
1616
job: mvcServer
1717
buildArguments:
1818
- "/p:UseCertAuth=true /p:UseAuthorize=true /p:UseOnlyAuth=true"
19+
variables:
20+
serverScheme: https
1921
load:
2022
job: httpclient
2123
variables:
@@ -28,9 +30,10 @@ scenarios:
2830
ApiCrudListProducts:
2931
application:
3032
job: mvcServer
31-
scheme: https
3233
buildArguments:
3334
- "/p:UseCertAuth=true /p:UseAuthorize=true"
35+
variables:
36+
serverScheme: https
3437
load:
3538
job: httpclient
3639
variables:
@@ -43,9 +46,10 @@ scenarios:
4346
ApiCrudGetProductDetails:
4447
application:
4548
job: mvcServer
46-
scheme: https
4749
buildArguments:
4850
- "/p:UseCertAuth=true /p:UseAuthorize=true"
51+
variables:
52+
serverScheme: https
4953
load:
5054
job: httpclient
5155
variables:
@@ -58,9 +62,10 @@ scenarios:
5862
ApiCrudAddProduct:
5963
application:
6064
job: mvcServer
61-
scheme: https
6265
buildArguments:
6366
- "/p:UseCertAuth=true /p:UseAuthorize=true"
67+
variables:
68+
serverScheme: https
6469
load:
6570
job: httpclient
6671
variables:
@@ -75,9 +80,10 @@ scenarios:
7580
ApiCrudUpdateProduct:
7681
application:
7782
job: mvcServer
78-
scheme: https
7983
buildArguments:
8084
- "/p:UseCertAuth=true /p:UseAuthorize=true"
85+
variables:
86+
serverScheme: https
8187
load:
8288
job: httpclient
8389
variables:
@@ -92,9 +98,10 @@ scenarios:
9298
ApiCrudDeleteProduct:
9399
application:
94100
job: mvcServer
95-
scheme: https
96101
buildArguments:
97102
- "/p:UseCertAuth=true /p:UseAuthorize=true"
103+
variables:
104+
serverScheme: https
98105
load:
99106
job: httpclient
100107
variables:

src/BenchmarksApps/Mvc/mvcserver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
waitForExit: false
99
variables:
1010
useNewtonsoftJson: false
11-
arguments: "{%if useNewtonsoftJson == true %} --useNewtonsoftJson true {% endif %}"
11+
arguments: "--urls {{serverScheme}}://{{serverAddress}}:{{serverPort}} {%if useNewtonsoftJson == true %} --useNewtonsoftJson true {% endif %}"
1212
mapaction:
1313
source:
1414
repository: https://github.com/aspnet/Benchmarks.git

0 commit comments

Comments
 (0)