You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/BusiGrpcService/Program.cs
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
{
9
9
// Setup a HTTP/2 endpoint without TLS.
10
10
options.ListenLocalhost(5005, o =>o.Protocols=HttpProtocols.Http2);
11
+
// test for workflow http branch
12
+
options.ListenLocalhost(5006, o =>o.Protocols=HttpProtocols.Http1);
11
13
});
12
14
13
15
builder.Services.AddGrpc();
@@ -20,6 +22,15 @@
20
22
21
23
// Configure the HTTP request pipeline.
22
24
app.MapGrpcService<BusiApiService>();
25
+
26
+
// test for workflow http branch
27
+
app.MapGet("/test-http-ok1",()=>"SUCCESS");
28
+
app.MapGet("/test-http-ok2",()=>"SUCCESS");
29
+
app.MapGet("/409", context =>
30
+
{
31
+
context.Response.StatusCode=409;
32
+
returncontext.Response.WriteAsync("i am body, the http branch is 409");// FAILURE
33
+
});
23
34
app.MapGet("/",()=>"Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909");
0 commit comments