Skip to content

Commit

Permalink
Uncomment test for apphost
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Jul 10, 2024
1 parent abc75f6 commit c019e72
Showing 1 changed file with 18 additions and 18 deletions.
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 c019e72

Please sign in to comment.