From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case ensures that the default user has been created, and that it has been configured for sudo |setup= |actions= # If you already have WSL running in Fedora, `exit` # Run a new Fedora shell by running `wsl.exe -d Fedora` (for WSL 2.4.4+), or `wsl.exe -d Fedora -u <username` (for WSL < 2.4.4) # Verify your username is what you configured with `id -u` # Run `sudo su`, then `id -u` again to confirm you can assume root |results= # Step 3...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
# Run a new Fedora shell by running `wsl.exe -d Fedora` (for WSL 2.4.4+), or `wsl.exe -d Fedora -u <username` (for WSL < 2.4.4)
# Run a new Fedora shell by running `wsl.exe -d Fedora` (for WSL 2.4.4+), or `wsl.exe -d Fedora -u <username` (for WSL < 2.4.4)
# Verify your username is what you configured with `id -u`
# Verify your username is what you configured with `id -u`
# Run `sudo su`, then `id -u` again to confirm you can assume root  
# Run `sudo su`, then `id -u` again to confirm you can assume root
# Install a text-based package such as `fastfetch` with `sudo dnf install fastfetch`, and run it
# Install a Wayland-based app such as `foot` with `sudo dnf install foot`, and run it. It should create a new window with a shell prompt. Run a few commands, then `exit` or click the X in the window title to close it.
# Install a X11-based app such as `firefox` with `sudo dnf install firefox`, and run it with `firefox &`. It should open a new Firefox window with `https://fedoraproject.org/start` loaded.
# Install and run a container with `sudo dnf install podman ; podman run hello`
|results=
|results=
# Step 3 should return your default username
# Step 3 should return your default username
# Step 4 should return `root`
# Step 4 should return `root`
# Step 5 should succeed, and `fastfetch` should run without errors
# Step 6 should open a new window with a shell prompt.
# Step 7 should open Firefox and successfully load `https://fedoraproject.org/start`
# Step 8 should install correctly with no errors, and `podman run hello` should display some ascii-tastic otters.
}}
}}

Latest revision as of 00:58, 3 February 2025

Description

This test case ensures that the default user has been created, and that it has been configured for sudo


How to test

  1. If you already have WSL running in Fedora, exit
  2. Run a new Fedora shell by running wsl.exe -d Fedora (for WSL 2.4.4+), or wsl.exe -d Fedora -u <username (for WSL < 2.4.4)
  3. Verify your username is what you configured with id -u
  4. Run sudo su, then id -u again to confirm you can assume root
  5. Install a text-based package such as fastfetch with sudo dnf install fastfetch, and run it
  6. Install a Wayland-based app such as foot with sudo dnf install foot, and run it. It should create a new window with a shell prompt. Run a few commands, then exit or click the X in the window title to close it.
  7. Install a X11-based app such as firefox with sudo dnf install firefox, and run it with firefox &. It should open a new Firefox window with https://fedoraproject.org/start loaded.
  8. Install and run a container with sudo dnf install podman ; podman run hello

Expected Results

  1. Step 3 should return your default username
  2. Step 4 should return root
  3. Step 5 should succeed, and fastfetch should run without errors
  4. Step 6 should open a new window with a shell prompt.
  5. Step 7 should open Firefox and successfully load https://fedoraproject.org/start
  6. Step 8 should install correctly with no errors, and podman run hello should display some ascii-tastic otters.