Skip to content

Commit 67d5922

Browse files
committed
Update GHA workflow to install dev certs
1 parent 8628c0e commit 67d5922

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.github/workflows/azure-dev-build-only.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
- name: Install local certs
2626
shell: pwsh
2727
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
3030
3131
- name: Install Aspire workload
3232
shell: pwsh

.github/workflows/azure-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
- name: Install local certs
3535
shell: pwsh
3636
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
3939
4040
- name: Install Aspire workload
4141
shell: pwsh
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
// using System.Net;
1+
using System.Net;
22

3-
// namespace AzureOpenAIProxy.Tests;
3+
namespace AzureOpenAIProxy.Tests;
44

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();
1414

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("/");
1818

19-
// // Assert
20-
// Assert.Equal(HttpStatusCode.OK, response.StatusCode);
21-
// }
22-
// }
19+
// Assert
20+
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
21+
}
22+
}

0 commit comments

Comments
 (0)