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