Crate fuchsia_pkg_testing

Crate fuchsia_pkg_testing 

Source
Expand description

Test tools for building Fuchsia packages and TUF repositories.

Modules§

blobfs
Fake implementation of blobfs for blobfs::Client.
serve
Test tools for serving TUF repositories.

Structs§

BlobContents
Contents of a Blob.
FakeUpdatePackage
A fake update_package::UpdatePackage backed by a temp dir.
Package
A package generated by a PackageBuilder, suitable for assembling into a TUF repository.
PackageBuilder
A builder to simplify construction of Fuchsia packages.
PackageDir
A subdirectory of a package being built.
PackageEntry
Metadata for a package contained within a Repository.
Repository
A TUF repository generated by a RepositoryBuilder.
RepositoryBuilder
A builder to simplify construction of TUF repositories containing Fuchsia packages.
SystemImageBuilder
Builds a system_image package.
UpdatePackage
A crate::Package used to drive an OTA.
UpdatePackageBuilder
Like crate::PackageBuilder except it only makes update packages.

Enums§

VerificationError
An error that can occur while verifying the contents of a directory.

Constants§

SOURCE_EPOCH
Integration test source epoch

Functions§

get_inspect_hierarchy
Get the Inspect NodeHierarchy for the component under test running in the nested environment.
make_current_epoch_json
Constructs an epoch.json with the current epoch and returns the JSON as a string.
make_epoch_json
Provided an epoch, constructs an epoch.json and returns the JSON as a string.
make_packages_json
Provided a list of strings representing fuchsia-pkg URLs, constructs a packages.json representing those packages and returns the JSON as a string.