31 writes to Pattern
Aspire.Hosting.Tests (31)
Pipelines\PipelineOutputDiffingTests.cs (9)
73options.Rules[0].Pattern = "artifacts/**"; 98options.Rules.Add(new() { Action = "Include", Pattern = "generated/**" }); 101options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" })); 526builder.Services.Configure<PipelineOutputDiffOptions>(options => options.Rules[0].Pattern = "generated/**"); 527builder.Services.PostConfigure<PipelineOutputDiffOptions>(options => options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" })); 926options.Rules.Add(new() { Action = "Include", Pattern = "**/*" }); 927options.Rules.Add(new() { Action = "Exclude", Pattern = "*.tmp" }); 939rule.Pattern = "**/*"; 941options.Rules.Add(new() { Action = "Exclude", Pattern = "included.txt" });
Pipelines\PipelineOutputSelectionTests.cs (18)
38options.Rules.Add(new() { Action = "Include", Pattern = "**/*" }); 39options.Rules.Add(new() { Action = "Exclude", Pattern = ".gitignore" }); 40options.Rules.Add(new() { Action = "exclude", Pattern = "src/**" }); 41options.Rules.Add(new() { Action = "INCLUDE", Pattern = "src/Ev2OutputRoot/**" }); 42options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" }); 73options.Rules.Add(new() { Action = "Include", Pattern = "artifacts/**/*.json" }); 109? new() { Action = "Include", Pattern = "**/*.json" } 110: new() { Action = "Exclude", Pattern = "**/*.tmp" }); 175options.Rules.Add(new() { Action = "Include", Pattern = includeLink ? "ignored/child" : "ignored/child/**" }); 225options.Rules.Add(new() { Action = "Include", Pattern = "ignored*" }); 226options.Rules.Add(new() { Action = "Include", Pattern = "control.txt" }); 285options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*" }); 343options.Rules.Add(new() { Action = "Include", Pattern = "artifact.txt" }); 432builder.Services.PostConfigure<PipelineOutputDiffOptions>(options => options.Rules.Add(new() { Action = "Include", Pattern = "special.txt" })); 510options.Rules.Add(new() { Action = "Include", Pattern = "**/*" }); 511options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" }); 532options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*" }); 533options.Rules.Add(new() { Action = "Include", Pattern = pattern });
Pipelines\PipelineOutputStrategyTests.cs (4)
56options.Rules.Add(new() { Action = "Include", Pattern = "**/*" }); 57options.Rules.Add(new() { Action = "Exclude", Pattern = "**/.git" }); 58options.Rules.Add(new() { Action = "Exclude", Pattern = "**/.git/**" }); 63options.Rules.Add(new() { Action = "Include", Pattern = "**/*" });
11 references to Pattern
Aspire.Hosting (6)
Pipelines\DefaultPipelineOutputSnapshotter.cs (2)
39_matcher.AddInclude(rule.Pattern); 43_matcher.AddExclude(rule.Pattern);
Pipelines\PipelineOutputDiffOptionsValidator.cs (4)
23if (rule is null || string.IsNullOrWhiteSpace(rule.Pattern) || rule.Pattern.Contains('\0') || 24Path.IsPathRooted(rule.Pattern) || rule.Pattern.Replace('\\', '/').Split('/').Contains(".."))
Aspire.Hosting.Tests (5)
Pipelines\PipelineOutputDiffingTests.cs (4)
47Assert.Equal("generated/**", Assert.Single(options.Rules).Pattern); 80Assert.Equal("artifacts/**", Assert.Single(options.Rules).Pattern); 934Assert.Equal(new[] { "**/*", "*.tmp" }, options.Rules.Select(rule => rule.Pattern)); 937Assert.Equal("*.tmp", rule.Pattern);
Pipelines\PipelineOutputSelectionTests.cs (1)
437Assert.Equal(new[] { "**/*", "src/artifacts/**", "**/*.tmp", "special.txt" }, options.Rules.Select(rule => rule.Pattern));