in-toto / apt-transport-in-toto

in-toto transport for apt
Other
8 stars 6 forks source link

Add more comprehensive tests that work with online and offline tests #9

Closed lukpueh closed 5 years ago

lukpueh commented 5 years ago

Description of issue or feature request: Restructure existing online and offline tests and add more comprehensive test scenarios that may be used for both.

Current behavior: Currently there are two ways of testing the apt transport:

  1. Online test using real remote rebuilders and real debian apt and apt http transport (see tests/Dockerfile)
  2. Offline test that mocks rebuilders, apt and apt http transport (see tests/test_intoto.py)

Each currently performs one specific scenario of package installation using apt, which triggers in-toto verification with the proposed intoto transport.

Expected behavior:

lukpueh commented 5 years ago

For now #18 sufficiently addresses this issue (it brings coverage with offline mock installation and unittests up to 99%).

Using the same test scenarios with online tests would be nice to have but is not a priority. We can revisit the issue if the need arises.