Add 3 cases to verify skopeo pulling from docker to ostree works.
The 3 cases include the following:
1: pull dockertar into ostree (custom name)
2: pull dockertar into ostree (default name)
3: pull docker image into ostree(e.g: docker:image:latest)
Also added a small change to ensure checkout are existant if
no installation of containers happens prior.
Closes: #1180
Approved by: giuseppe
The old tests (test_system_containers.sh) were disorganized
and lacked coverage for many commands. This refactor attempts
to improve the tests with a focus on clarity and coverage.
Improvements:
- split into 4 separate tests for clarity and independence
- section each test to better know where failures happen
- make use of shared setup functions
- use ${WORK_DIR} for test files
- better setup/teardown usage
- improved coverage for update/rollback, image commands,
environment variables and expected failures
Drawback:
- Slower
Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com>
Closes: #983
Approved by: giuseppe