mirror of
https://github.com/distribution/distribution.git
synced 2025-08-28 03:11:32 +00:00
Update test asserts
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
parent
11c341a369
commit
df2787c6cf
@ -1053,10 +1053,15 @@ func addTestManifestWithoutDigestHeader(repo reference.Named, reference string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func checkEqualManifest(m1, m2 *ocischema.DeserializedManifest) error {
|
func checkEqualManifest(m1, m2 *ocischema.DeserializedManifest) error {
|
||||||
if !reflect.DeepEqual(m1.Config, m2.Config) {
|
if !reflect.DeepEqual(m1.Versioned, m2.Versioned) {
|
||||||
return fmt.Errorf("config do not match %v != %v", m1.Config, m2.Config)
|
return fmt.Errorf("versions do not match: %v != %v", m1.Versioned, m2.Versioned)
|
||||||
|
}
|
||||||
|
if !reflect.DeepEqual(m1.Config, m2.Config) {
|
||||||
|
return fmt.Errorf("config do not match: %v != %v", m1.Config, m2.Config)
|
||||||
|
}
|
||||||
|
if !reflect.DeepEqual(m1.Layers, m2.Layers) {
|
||||||
|
return fmt.Errorf("layers do not match: %v != %v", m1.Layers, m2.Layers)
|
||||||
}
|
}
|
||||||
// TODO(rest of the fields)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user