Skip to content

Commit

Permalink
tests: Dynamically generate containers
Browse files Browse the repository at this point in the history
Currently we have a hardcoded "exampleos.tar" fixture, as well as
two `.ociarchive` containers that also hardcode its content.

Having pre-generated container fixtures on one hand is good because
we're testing compatibility of import from a frozen format.  But it also
means that we can't easily test changing our output format.

And I'd like to introduce some changes to the output format.  I'll
reintroduce compat testing another way.

Add some internal code to extend an OCI directory.
  • Loading branch information
cgwalters committed Jan 6, 2022
1 parent c185409 commit f08de47
Show file tree
Hide file tree
Showing 10 changed files with 653 additions and 51 deletions.
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ indicatif = "0.16.0"
once_cell = "1.9"
libc = "0.2.92"
rustix = "0.31.3"
oci-spec = "0.5.0"
oci-spec = "0.5.3"
openat = "0.1.20"
openat-ext = "0.2.0"
openssl = "0.10.33"
Expand Down
2 changes: 1 addition & 1 deletion lib/src/container/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ mod encapsulate;
pub use encapsulate::*;
mod unencapsulate;
pub use unencapsulate::*;
mod ociwriter;
pub(crate) mod ociwriter;
mod skopeo;
pub mod store;

Expand Down
Loading

0 comments on commit f08de47

Please sign in to comment.