34 references to TestResourceNames
Aspire.EndToEnd.Tests (34)
IntegrationServicesFixture.cs (22)
27private TestResourceNames _resourcesToSkip; 77if (_resourcesToSkip != TestResourceNames.None && _resourcesToSkip.ToCSVString() is string skipArg) 89public Task DumpComponentLogsAsync(TestResourceNames resource, ITestOutputHelper? testOutputArg = null) 91if (resource == TestResourceNames.None) 95if (resource == TestResourceNames.All || !Enum.IsDefined<TestResourceNames>(resource)) 102TestResourceNames.postgres or TestResourceNames.efnpgsql => "postgres", 103TestResourceNames.redis => "redis", 118public void EnsureAppHasResources(TestResourceNames expectedResourceNames) 120foreach (var ename in Enum.GetValues<TestResourceNames>()) 122if (ename != TestResourceNames.None && expectedResourceNames.HasFlag(ename) && _resourcesToSkip.HasFlag(ename)) 129private static TestResourceNames GetResourcesToSkip() 131TestResourceNames resourcesToInclude = TestScenario switch 133"basicservices" => TestResourceNames.redis 134| TestResourceNames.postgres 135| TestResourceNames.efnpgsql, 136"" or null => TestResourceNames.All, 140TestResourceNames resourcesToSkip = TestResourceNames.All & ~resourcesToInclude; 143resourcesToSkip |= TestResourceNames.dashboard;
IntegrationServicesTests.cs (4)
24[InlineData(TestResourceNames.postgres)] 25[InlineData(TestResourceNames.efnpgsql)] 26[InlineData(TestResourceNames.redis)] 27public Task VerifyComponentWorks(TestResourceNames resourceName)
tests\testproject\Common\TestResourceNames.cs (8)
19public static TestResourceNames Parse(IEnumerable<string> resourceNames) 21TestResourceNames resourcesToSkip = TestResourceNames.None; 24if (Enum.TryParse<TestResourceNames>(resourceName, ignoreCase: true, out var name)) 37public static string ToCSVString(this TestResourceNames resourceNames) 39return string.Join(',', Enum.GetValues<TestResourceNames>() 40.Where(ename => ename != TestResourceNames.None && resourceNames.HasFlag(ename)));