Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema Tag Tests #5878

Open
wants to merge 6 commits into
base: nightly
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/Microsoft.DotNet.Docker.Tests/ManifestHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ namespace Microsoft.DotNet.Docker.Tests
{
public static class ManifestHelper
{
private static string DockerfileRegex = @"src/(?<repo>.+)/(?<major_minor>\d+\.\d+)/(?<os>.+)/(?<architecture>.+)";

public record DockerfileInfo(string Repo, string MajorMinor, string Os, string Architecture);

public static Manifest GetManifest() =>
Expand All @@ -34,6 +32,8 @@ public static List<string> GetResolvedSharedTags(Image image) =>
public static List<string> GetResolvedTags(Platform platform) =>
platform.Tags.Keys.Select(GetVariableValue).ToList();

private static readonly string DockerfileRegex = @"src/(?<repo>.+)/(?<major_minor>\d+\.\d+)/(?<os>.+)/(?<architecture>.+)";

public static Dictionary<DockerfileInfo, List<string>> GetDockerfileTags(Repo repo)
{
Dictionary<DockerfileInfo, List<string>> dockerfileTags = new Dictionary<DockerfileInfo, List<string>>();
Expand Down
Loading
Loading