File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -950,7 +950,7 @@ pub struct NonOstreeFixture {
950
950
_tempdir : tempfile:: TempDir ,
951
951
pub dir : Arc < Dir > ,
952
952
pub path : Utf8PathBuf ,
953
- src_oci : ocidir:: OciDir ,
953
+ pub src_oci : ocidir:: OciDir ,
954
954
destrepo : ostree:: Repo ,
955
955
956
956
pub bootable : bool ,
Original file line number Diff line number Diff line change @@ -1334,6 +1334,20 @@ async fn test_non_ostree() -> Result<()> {
1334
1334
1335
1335
let imgref = fixture. export_container ( ) . await . unwrap ( ) . 0 ;
1336
1336
let imp = fixture. must_import ( & imgref) . await ?;
1337
+ if imp. manifest_digest != src_digest {
1338
+ let src_manifest: oci_image:: ImageManifest = {
1339
+ let idx = fixture. src_oci . read_index ( ) ?. unwrap ( ) ;
1340
+ let manifest = idx
1341
+ . manifests ( )
1342
+ . iter ( )
1343
+ . find ( |m| m. digest ( ) == & src_digest)
1344
+ . unwrap ( ) ;
1345
+ fixture. src_oci . read_json_blob ( manifest) ?
1346
+ } ;
1347
+ let src_manifest = serde_json:: to_string_pretty ( & src_manifest) . unwrap ( ) ;
1348
+ let dest_manifest = serde_json:: to_string_pretty ( & imp. manifest ) . unwrap ( ) ;
1349
+ similar_asserts:: assert_eq!( & src_manifest, & dest_manifest) ;
1350
+ }
1337
1351
assert_eq ! ( imp. manifest_digest, src_digest) ;
1338
1352
Ok ( ( ) )
1339
1353
}
You can’t perform that action at this time.
0 commit comments