Skip to content

Commit

Permalink
Merge pull request containers#482 from cgwalters/layer-ordering-bug
Browse files Browse the repository at this point in the history
Two minor test additions
  • Loading branch information
jmarrero authored May 15, 2023
2 parents 95f2366 + bb3043c commit b0242e3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion lib/tests/it/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,27 @@ async fn test_container_chunked() -> Result<()> {
assert!(layer.commit.is_none());
}
assert_eq!(digest, expected_digest);
let _import = imp.import(prep).await.context("Init pull derived").unwrap();
{
let mut layer_history = prep.layers_with_history();
assert!(layer_history
.next()
.unwrap()?
.1
.created_by()
.as_ref()
.unwrap()
.starts_with("ostree export"));
assert!(layer_history
.nth(6)
.unwrap()?
.1
.created_by()
.as_ref()
.unwrap()
.starts_with("testlink"));
}
let import = imp.import(prep).await.context("Init pull derived").unwrap();
assert_eq!(import.manifest_digest.as_str(), digest);

assert_eq!(store::list_images(fixture.destrepo()).unwrap().len(), 1);

Expand Down

0 comments on commit b0242e3

Please sign in to comment.