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 {
950950 _tempdir : tempfile:: TempDir ,
951951 pub dir : Arc < Dir > ,
952952 pub path : Utf8PathBuf ,
953- src_oci : ocidir:: OciDir ,
953+ pub src_oci : ocidir:: OciDir ,
954954 destrepo : ostree:: Repo ,
955955
956956 pub bootable : bool ,
Original file line number Diff line number Diff line change @@ -1334,6 +1334,20 @@ async fn test_non_ostree() -> Result<()> {
13341334
13351335 let imgref = fixture. export_container ( ) . await . unwrap ( ) . 0 ;
13361336 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+ }
13371351 assert_eq ! ( imp. manifest_digest, src_digest) ;
13381352 Ok ( ( ) )
13391353}
You can’t perform that action at this time.
0 commit comments