Publishing\ContainerImageArchiveRewriterTests.cs (34)
29"{{ImageName}}:{{SourceTag}}",
31"registry.example.com:5443/team/other:{{SourceTag}}"
43"{{SourceTag}}": "owned-layer-id",
47"{{SourceTag}}": "unrelated-layer-id"
56"private-reference": "{{ImageName}}:{{SourceTag}}"
65"image": "{{ImageName}}:{{SourceTag}}"
82SourceTag,
90$"registry.example.com:5443/team/other:{SourceTag}"
119"org.opencontainers.image.ref.name": "{{SourceTag}}",
120"io.containerd.image.name": "docker.io/library/widget:{{SourceTag}}",
135"org.opencontainers.image.ref.name": "{{SourceTag}}",
136"io.containerd.image.name": "docker.io/library/other:{{SourceTag}}",
149"org.opencontainers.image.ref.name": "widget:{{SourceTag}}"
163SourceTag,
193"org.opencontainers.image.ref.name": "localhost/widget:{{SourceTag}}",
206SourceTag,
224"RepoTags": [ "docker.io/library/widget:{{SourceTag}}" ],
232"{{SourceTag}}": "layer-id"
245"org.opencontainers.image.ref.name": "{{SourceTag}}",
246"io.containerd.image.name": "docker.io/library/widget:{{SourceTag}}"
268SourceTag,
299SourceTag,
313TestContainerImageArchive.WriteDockerArchive(sourceArchive, $"other:{SourceTag}", "layer");
320SourceTag,
324Assert.Contains($"widget:{SourceTag}", exception.Message, StringComparison.Ordinal);
325Assert.Equal([$"other:{SourceTag}"], TestContainerImageArchive.ReadDockerImageReferences(sourceArchive));
345SourceTag,
364"widget:{{SourceTag}}",
378SourceTag,
392TestContainerImageArchive.WriteDockerArchive(sourceArchive, $"widget:{SourceTag}", "layer");
401SourceTag,
414TestContainerImageArchive.WriteDockerArchive(sourceArchive, $"widget:{SourceTag}", "layer");
422SourceTag,
429Assert.Equal([$"widget:{SourceTag}"], TestContainerImageArchive.ReadDockerImageReferences(sourceArchive));