summaryrefslogtreecommitdiffstats
path: root/tests/docker_source.py
Commit message (Collapse)AuthorAgeFilesLines
* DockerSource: Split checksum and layersRadostin Stoyanov2017-08-281-6/+6
| | | | | | | | | | | | The current implementation store in one list: - checksum - checksum type - file path - file size However, the information about checksum and checksum type is only used to verify the content of tarball before it is being extracted. Splitting these into separate lists would allow us to reuse the function untar_layers() with FileSource.
* Add regression testsRadostin Stoyanov2017-08-281-3/+240
| | | | | | These tests aim to verify the output of virt-bootstrap by creating tar archives which contain dummy root file system and call the function bootstrap(). The check the extracted root file system.
* Drop unit testsRadostin Stoyanov2017-08-281-0/+150
Unit tests were used to ensure that functions and methods work as expected. However, these tests are closely related to the implementation and will result in major changes after some refactoring. To reduce the amount of work needed to add new features or changes to the code most of these tests will be replaced with more abstract form of testing introduced in the following commits.