From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case tests whether you can create a container using a Linux distribution other than the default fedora-toolbox image (registry.fedoraproj...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case tests whether you can create a container using a Linux distribution other than the default fedora-toolbox image (registry.fedoraproject.org/fedora-toolbox:{{FedoraVersionNumber}}) and that you can enter into it.
|description=This test case tests whether you can create a container using a Linux distribution other than the default fedora-toolbox image, then that you can enter into it, using it and finally remove it.
|setup=
|setup=
# Ensure the {{package|distrobox}} package is installed
# Ensure the {{package|distrobox}} package is installed
Line 6: Line 6:
Select one of the distributions supported by distrobox: https://github.com/89luca89/distrobox/blob/main/docs/compatibility.md#containers-distros
Select one of the distributions supported by distrobox: https://github.com/89luca89/distrobox/blob/main/docs/compatibility.md#containers-distros


* Run <code>distrobox create -i quay.io/centos/centos:stream8 -n centos-stream-8</code>
* Run <code>distrobox create -i docker.io/library/debian:stable -n debian</code>
If the container image is not already present on your system, a question asking to pull it should appear. Answer `Y`.
If the container image is not already present on your system, a question asking to pull it should appear. Answer `Y`.
* List the available distroboxes on your system with <code>distrobox list</code> or <code>distrobox-list</code>
* List the available distroboxes on your system with <code>distrobox list</code> or <code>distrobox-list</code>
* Enter the container with <code>distrobox enter -n centos-stream-8</code>
* Enter the container with <code>distrobox enter -n debian</code>
* Execute basic operations inside the container, like
* Execute basic operations inside the container, like
** <code>ls -la</code>
** <code>ls -la</code>
** <code>cat /etc/os-release</code>
** <code>sudo whoami</code>
** <code>sudo whoami</code>
* Exit from the container
* Stop the container (i.e. <code>podman stop debian</code>)
* Remove the container with <code>distrobox rm debian</code>
|results=
|results=
* If applicable, the pull from the registry is successful
* If applicable, the pull from the registry is successful
Line 18: Line 23:
* You can successfully enter into the container
* You can successfully enter into the container
* You can run commands inside the container
* You can run commands inside the container
* You can remove the container
}}
}}
[[Category:Package_distrobox_test_cases]]
[[Category:Package_distrobox_test_cases]]

Latest revision as of 16:44, 23 January 2022

Description

This test case tests whether you can create a container using a Linux distribution other than the default fedora-toolbox image, then that you can enter into it, using it and finally remove it.

Setup

  1. Ensure the distrobox package is installed

How to test

Select one of the distributions supported by distrobox: https://github.com/89luca89/distrobox/blob/main/docs/compatibility.md#containers-distros

  • Run distrobox create -i docker.io/library/debian:stable -n debian

If the container image is not already present on your system, a question asking to pull it should appear. Answer Y.

  • List the available distroboxes on your system with distrobox list or distrobox-list
  • Enter the container with distrobox enter -n debian
  • Execute basic operations inside the container, like
    • ls -la
    • cat /etc/os-release
    • sudo whoami
  • Exit from the container
  • Stop the container (i.e. podman stop debian)
  • Remove the container with distrobox rm debian

Expected Results

  • If applicable, the pull from the registry is successful
  • The newly created container is listed
  • You can successfully enter into the container
  • You can run commands inside the container
  • You can remove the container