File tree Expand file tree Collapse file tree 3 files changed +22
-22
lines changed
test/AzureOpenAIProxy.AppHost.Tests Expand file tree Collapse file tree 3 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 25
25
- name : Install local certs
26
26
shell : pwsh
27
27
run : |
28
- dotnet dev-certs https --clean
29
- dotnet dev-certs https --trust
28
+ dotnet tool update -g linux-dev-certs
29
+ dotnet linux- dev-certs install
30
30
31
31
- name : Install Aspire workload
32
32
shell : pwsh
Original file line number Diff line number Diff line change 34
34
- name : Install local certs
35
35
shell : pwsh
36
36
run : |
37
- dotnet dev-certs https --clean
38
- dotnet dev-certs https --trust
37
+ dotnet tool update -g linux-dev-certs
38
+ dotnet linux- dev-certs install
39
39
40
40
- name : Install Aspire workload
41
41
shell : pwsh
Original file line number Diff line number Diff line change 1
- // using System.Net;
1
+ using System . Net ;
2
2
3
- // namespace AzureOpenAIProxy.Tests;
3
+ namespace AzureOpenAIProxy . Tests ;
4
4
5
- // public class WebTests
6
- // {
7
- // [Fact]
8
- // public async Task GetWebResourceRootReturnsOkStatusCode()
9
- // {
10
- // // Arrange
11
- // var appHost = await DistributedApplicationTestingBuilder.CreateAsync<Projects.AzureOpenAIProxy_AppHost>();
12
- // await using var app = await appHost.BuildAsync();
13
- // await app.StartAsync();
5
+ public class WebTests
6
+ {
7
+ [ Fact ]
8
+ public async Task GetWebResourceRootReturnsOkStatusCode ( )
9
+ {
10
+ // Arrange
11
+ var appHost = await DistributedApplicationTestingBuilder . CreateAsync < Projects . AzureOpenAIProxy_AppHost > ( ) ;
12
+ await using var app = await appHost . BuildAsync ( ) ;
13
+ await app . StartAsync ( ) ;
14
14
15
- // // Act
16
- // var httpClient = app.CreateHttpClient("playgroundapp");
17
- // var response = await httpClient.GetAsync("/");
15
+ // Act
16
+ var httpClient = app . CreateHttpClient ( "playgroundapp" ) ;
17
+ var response = await httpClient . GetAsync ( "/" ) ;
18
18
19
- // // Assert
20
- // Assert.Equal(HttpStatusCode.OK, response.StatusCode);
21
- // }
22
- // }
19
+ // Assert
20
+ Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments