private void VerifyAcrManifestAttributesBase(ManifestAttributesBase expectedManifestBase, ManifestAttributesBase actualManifestBase) { Assert.Equal(expectedManifestBase.Architecture, actualManifestBase.Architecture); Assert.Equal(expectedManifestBase.Digest, actualManifestBase.Digest); Assert.Equal(expectedManifestBase.MediaType, actualManifestBase.MediaType); Assert.Equal(expectedManifestBase.Os, actualManifestBase.Os); Assert.Equal(expectedManifestBase.Tags.Count, actualManifestBase.Tags.Count); Assert.Equal(expectedManifestBase.Tags[0], actualManifestBase.Tags[0]); Assert.Equal(expectedManifestBase.ChangeableAttributes.DeleteEnabled, actualManifestBase.ChangeableAttributes.DeleteEnabled); Assert.Equal(expectedManifestBase.ChangeableAttributes.ListEnabled, actualManifestBase.ChangeableAttributes.ListEnabled); Assert.Equal(expectedManifestBase.ChangeableAttributes.ReadEnabled, actualManifestBase.ChangeableAttributes.ReadEnabled); Assert.Equal(expectedManifestBase.ChangeableAttributes.WriteEnabled, actualManifestBase.ChangeableAttributes.WriteEnabled); }
public PSManifestAttributeBase(ManifestAttributesBase attribute) { Digest = attribute?.Digest; ImageSize = attribute?.ImageSize; CreatedTime = attribute?.CreatedTime; LastUpdateTime = attribute?.LastUpdateTime; Architecture = attribute?.Architecture; Os = attribute?.Os; MediaType = attribute?.MediaType; ConfigMediaType = attribute?.ConfigMediaType; Tags = attribute?.Tags; if (attribute != null) { ChangeableAttributes = new PSChangeableAttribute(attribute.ChangeableAttributes); } }
internal ManifestAttributes(string registry, string imageName, ManifestAttributesBase attributes) { Registry = registry; ImageName = imageName; Attributes = attributes; }