41 references to Rules
Aspire.Hosting (3)
Pipelines\DefaultPipelineOutputSnapshotter.cs (2)
31
if (policy.
Rules
.Count == 0)
35
foreach (var rule in policy.
Rules
)
Pipelines\PipelineOutputDiffOptionsValidator.cs (1)
21
foreach (var rule in options.
Rules
)
Aspire.Hosting.Tests (38)
Pipelines\PipelineOutputDiffingTests.cs (14)
47
Assert.Equal("generated/**", Assert.Single(options.
Rules
).Pattern);
54
Assert.Empty(options.
Rules
);
73
options.
Rules
[0].Pattern = "artifacts/**";
80
Assert.Equal("artifacts/**", Assert.Single(options.
Rules
).Pattern);
98
options.
Rules
.Add(new() { Action = "Include", Pattern = "generated/**" });
101
options.
Rules
.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" }));
526
builder.Services.Configure<PipelineOutputDiffOptions>(options => options.
Rules
[0].Pattern = "generated/**");
527
builder.Services.PostConfigure<PipelineOutputDiffOptions>(options => options.
Rules
.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" }));
926
options.
Rules
.Add(new() { Action = "Include", Pattern = "**/*" });
927
options.
Rules
.Add(new() { Action = "Exclude", Pattern = "*.tmp" });
934
Assert.Equal(new[] { "**/*", "*.tmp" }, options.
Rules
.Select(rule => rule.Pattern));
935
var rule = Assert.Single(options.
Rules
, rule => rule.Action == "Exclude");
940
options.
Rules
.Clear();
941
options.
Rules
.Add(new() { Action = "Exclude", Pattern = "included.txt" });
Pipelines\PipelineOutputSelectionTests.cs (19)
38
options.
Rules
.Add(new() { Action = "Include", Pattern = "**/*" });
39
options.
Rules
.Add(new() { Action = "Exclude", Pattern = ".gitignore" });
40
options.
Rules
.Add(new() { Action = "exclude", Pattern = "src/**" });
41
options.
Rules
.Add(new() { Action = "INCLUDE", Pattern = "src/Ev2OutputRoot/**" });
42
options.
Rules
.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" });
73
options.
Rules
.Add(new() { Action = "Include", Pattern = "artifacts/**/*.json" });
108
options.
Rules
.Add(includeJson
148
Assert.Empty(options.
Rules
);
175
options.
Rules
.Add(new() { Action = "Include", Pattern = includeLink ? "ignored/child" : "ignored/child/**" });
225
options.
Rules
.Add(new() { Action = "Include", Pattern = "ignored*" });
226
options.
Rules
.Add(new() { Action = "Include", Pattern = "control.txt" });
285
options.
Rules
.Add(new() { Action = "Exclude", Pattern = "**/*" });
343
options.
Rules
.Add(new() { Action = "Include", Pattern = "artifact.txt" });
432
builder.Services.PostConfigure<PipelineOutputDiffOptions>(options => options.
Rules
.Add(new() { Action = "Include", Pattern = "special.txt" }));
437
Assert.Equal(new[] { "**/*", "src/artifacts/**", "**/*.tmp", "special.txt" }, options.
Rules
.Select(rule => rule.Pattern));
510
options.
Rules
.Add(new() { Action = "Include", Pattern = "**/*" });
511
options.
Rules
.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" });
532
options.
Rules
.Add(new() { Action = "Exclude", Pattern = "**/*" });
533
options.
Rules
.Add(new() { Action = "Include", Pattern = pattern });
Pipelines\PipelineOutputStrategyTests.cs (5)
49
Assert.Empty(options.
Rules
);
56
options.
Rules
.Add(new() { Action = "Include", Pattern = "**/*" });
57
options.
Rules
.Add(new() { Action = "Exclude", Pattern = "**/.git" });
58
options.
Rules
.Add(new() { Action = "Exclude", Pattern = "**/.git/**" });
63
options.
Rules
.Add(new() { Action = "Include", Pattern = "**/*" });