@@ -21,6 +21,7 @@ public class SerilogUiMiddlewareTest(WebAppFactory.WithMocks program, WebAppFact
21
21
[ InlineData ( "/serilog-ui/api/logs/" , 409 ) ]
22
22
[ InlineData ( "/serilog-ui/" , 418 ) ]
23
23
[ InlineData ( "/serilog-ui/index.html" , 400 ) ]
24
+ [ InlineData ( "/serilog-ui" , 400 ) ]
24
25
public async Task It_hits_ui_endpoint_when_request_matches_method_and_options_prefix ( string pathReq , int statusCode )
25
26
{
26
27
// Act
@@ -35,6 +36,7 @@ public async Task It_hits_ui_endpoint_when_request_matches_method_and_options_pr
35
36
[ InlineData ( "/test/api/logs/" , 409 ) ]
36
37
[ InlineData ( "/test/" , 418 ) ]
37
38
[ InlineData ( "/test/index.html" , 400 ) ]
39
+ [ InlineData ( "/test" , 400 ) ]
38
40
public async Task It_hits_ui_endpoint_when_request_matches_method_and_custom_options_prefix ( string pathReq , int statusCode )
39
41
{
40
42
// Act
@@ -43,7 +45,7 @@ public async Task It_hits_ui_endpoint_when_request_matches_method_and_custom_opt
43
45
// Assert
44
46
send . StatusCode . Should ( ) . Be ( ( HttpStatusCode ) statusCode ) ;
45
47
}
46
-
48
+
47
49
[ Theory ]
48
50
[ InlineData ( "/serilog-ui/assets/index.js" ) ]
49
51
[ InlineData ( "/serilog-ui/assets/index.js?query=query" , "?query=query" ) ]
@@ -83,6 +85,7 @@ public async Task It_not_map_request_to_assets_when_request_final_path_part_not_
83
85
[ InlineData ( "/fake-prefix" , 400 ) ]
84
86
[ InlineData ( "/fake-prefix/" , 400 ) ]
85
87
[ InlineData ( "/fake-prefix/index.html" , 418 ) ]
88
+ [ InlineData ( "/fake-prefix" , 418 ) ]
86
89
public async Task It_proceeds_onwards_when_request_does_not_match_options_prefix ( string pathReq , int statusCode )
87
90
{
88
91
// Act
@@ -97,6 +100,7 @@ public async Task It_proceeds_onwards_when_request_does_not_match_options_prefix
97
100
[ InlineData ( "/serilog-ui/api/logs/" , 409 ) ]
98
101
[ InlineData ( "/serilog-ui/" , 400 ) ]
99
102
[ InlineData ( "/serilog-ui/index.html" , 418 ) ]
103
+ [ InlineData ( "/serilog-ui" , 418 ) ]
100
104
public async Task It_proceeds_onwards_when_request_is_not_a_get ( string pathReq , int statusCode )
101
105
{
102
106
// Arrange
0 commit comments