Skip to content

Commit

Permalink
Combining tests to see if this makes them more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpowell committed Sep 27, 2024
1 parent 1e9461d commit 4c4c648
Showing 1 changed file with 4 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,12 @@ namespace Aspire.CommunityToolkit.Hosting.Java.Tests;
#pragma warning disable CTASPIRE001
public class JavaHostingComponentTests(AspireIntegrationTestFixture<Projects.Aspire_CommunityToolkit_Hosting_Java_AppHost> fixture) : IClassFixture<AspireIntegrationTestFixture<Projects.Aspire_CommunityToolkit_Hosting_Java_AppHost>>
{
[ConditionalFact]
[ConditionalTheory]
[OSSkipCondition(OperatingSystems.Windows)]
public async Task ContainerAppResourceWillRespondWithOk()
[InlineData("containerapp")]
[InlineData("executableapp")]
public async Task AppResourceWillRespondWithOk(string resourceName)
{
var resourceName = "containerapp";
var httpClient = fixture.CreateHttpClient(resourceName);

await fixture.App.WaitForTextAsync("Started SpringMavenApplication", resourceName).WaitAsync(TimeSpan.FromMinutes(5));

var response = await httpClient.GetAsync("/");

response.StatusCode.Should().Be(HttpStatusCode.OK);
}

[ConditionalFact]
[OSSkipCondition(OperatingSystems.Windows)]
public async Task ExecutableAppResourceWillRespondWithOk()
{
var resourceName = "executableapp";
var httpClient = fixture.CreateHttpClient(resourceName);

await fixture.App.WaitForTextAsync("Started SpringMavenApplication", resourceName).WaitAsync(TimeSpan.FromMinutes(5));
Expand Down

0 comments on commit 4c4c648

Please sign in to comment.