Skip to content

Commit

Permalink
Update GHA workflow to install dev certs
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Jul 11, 2024
1 parent 8628c0e commit 67d5922
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/azure-dev-build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Install local certs
shell: pwsh
run: |
dotnet dev-certs https --clean
dotnet dev-certs https --trust
dotnet tool update -g linux-dev-certs
dotnet linux-dev-certs install
- name: Install Aspire workload
shell: pwsh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
- name: Install local certs
shell: pwsh
run: |
dotnet dev-certs https --clean
dotnet dev-certs https --trust
dotnet tool update -g linux-dev-certs
dotnet linux-dev-certs install
- name: Install Aspire workload
shell: pwsh
Expand Down
36 changes: 18 additions & 18 deletions test/AzureOpenAIProxy.AppHost.Tests/WebTests.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// using System.Net;
using System.Net;

// namespace AzureOpenAIProxy.Tests;
namespace AzureOpenAIProxy.Tests;

// public class WebTests
// {
// [Fact]
// public async Task GetWebResourceRootReturnsOkStatusCode()
// {
// // Arrange
// var appHost = await DistributedApplicationTestingBuilder.CreateAsync<Projects.AzureOpenAIProxy_AppHost>();
// await using var app = await appHost.BuildAsync();
// await app.StartAsync();
public class WebTests
{
[Fact]
public async Task GetWebResourceRootReturnsOkStatusCode()
{
// Arrange
var appHost = await DistributedApplicationTestingBuilder.CreateAsync<Projects.AzureOpenAIProxy_AppHost>();
await using var app = await appHost.BuildAsync();
await app.StartAsync();

// // Act
// var httpClient = app.CreateHttpClient("playgroundapp");
// var response = await httpClient.GetAsync("/");
// Act
var httpClient = app.CreateHttpClient("playgroundapp");
var response = await httpClient.GetAsync("/");

// // Assert
// Assert.Equal(HttpStatusCode.OK, response.StatusCode);
// }
// }
// Assert
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
}
}

0 comments on commit 67d5922

Please sign in to comment.