From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=This test case tests whether you can create a container using the default fedora-toolbox image (registry.fedoraproject.org/fedora-toolbox:{{FedoraV...") |
No edit summary |
||
Line 4: | Line 4: | ||
# Ensure the {{package|distrobox}} package is installed | # Ensure the {{package|distrobox}} package is installed | ||
|actions= | |actions= | ||
* Run <code>distrobox create</code> or <code>distrobox-create</code> | * Run <code>distrobox create -n fedora-test</code> or <code>distrobox-create -n fedora-test</code> | ||
If the fedora-toolbox image is not already present on your system, a question asking to pull it should appear. Answer `Y`. | If the fedora-toolbox 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> | |||
* Enter the container with <code>distrobox enter -n fedora-test</code> or <code>distrobox-enter --name fedora-test</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/redhat-release</code> | |||
** <code>sudo whoami</code> | ** <code>sudo whoami</code> | ||
* Exit from the container | |||
* Stop the container (i.e. <code>podman stop fedora-test</code>) | |||
* Remove the container with <code>distrobox rm fedora-test</code> | |||
|results= | |results= | ||
* If applicable, the pull from the registry is successful | * If applicable, the pull from the registry is successful | ||
* The newly created container is listed | |||
* 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:50, 23 January 2022
Description
This test case tests whether you can create a container using the default fedora-toolbox image (registry.fedoraproject.org/fedora-toolbox:41) and that you can enter into it.
Setup
- Ensure the
distrobox
package is installed
How to test
- Run
distrobox create -n fedora-test
ordistrobox-create -n fedora-test
If the fedora-toolbox 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
ordistrobox-list
- Enter the container with
distrobox enter -n fedora-test
ordistrobox-enter --name fedora-test
- Execute basic operations inside the container, like
ls -la
cat /etc/redhat-release
sudo whoami
- Exit from the container
- Stop the container (i.e.
podman stop fedora-test
) - Remove the container with
distrobox rm fedora-test
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