Skip to content

Commit

Permalink
Make tests local-only for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenBond committed Feb 28, 2024
1 parent f9984f4 commit e9523c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<ItemGroup>
<ProjectReference Include="..\..\src\Aspire.Hosting\Aspire.Hosting.csproj" IsAspireProjectResource="false" />
<ProjectReference Include="..\..\src\Aspire.Hosting.Testing\Aspire.Hosting.Testing.csproj" IsAspireProjectResource="false" />
<ProjectReference Include="..\Aspire.Hosting.Tests\Aspire.Hosting.Tests.csproj" />
<ProjectReference Include="..\TestingAppHost1\TestingAppHost1.AppHost\TestingAppHost1.AppHost.csproj" />
</ItemGroup>

Expand Down
3 changes: 2 additions & 1 deletion tests/Aspire.Hosting.Testing.Tests/HostingTestingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System.Net.Http.Json;
using Aspire.Hosting.Tests.Helpers;
using Xunit;

namespace Aspire.Hosting.Testing.Tests;
Expand All @@ -10,7 +11,7 @@ public class TestingHarnessTests(DistributedApplicationFixture<Program> appHostF
{
private readonly HttpClient _httpClient = appHostFixture.CreateHttpClient("mywebapp1");

[Fact]
[LocalOnlyFact]
public async Task HttpClientGetTest()
{
var result1 = await _httpClient.GetFromJsonAsync<WeatherForecast[]>("/weatherforecast");
Expand Down
5 changes: 3 additions & 2 deletions tests/Aspire.Hosting.Testing.Tests/TestingBuilderTests.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Aspire.Hosting.Tests.Helpers;
using Microsoft.Extensions.DependencyInjection;
using Xunit;

namespace Aspire.Hosting.Testing.Tests;

public class TestingBuilderTests
{
[Fact]
[LocalOnlyFact]
public async Task HasEndPoints()
{
var appHost = new DistributedApplicationTestingBuilder<Program>();
Expand All @@ -27,7 +28,7 @@ public async Task HasEndPoints()
Assert.True(pgConnectionString.Length > 0);
}

[Fact]
[LocalOnlyFact]
public async Task CanRemoveResources()
{
var appHost = new DistributedApplicationTestingBuilder<Program>();
Expand Down

0 comments on commit e9523c6

Please sign in to comment.