From Fedora Project Wiki

Revision as of 16:26, 17 August 2023 by Sumantrom (talk | contribs) (Created page with "{{QA/Test_Case |description=This test case ensures that the `dhcp-common` package is working as expected. It is designed to verify that the common files and utilities used by both DHCP clients and servers are functioning correctly. |setup= # Install the version of Fedora that is to be tested on a bare metal or virtual system. # Install the `dhcp-common` package using the command: `sudo dnf install dhcp-common`. |actions= # Verify that the common DHCP configuration file (...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case ensures that the dhcp-common package is working as expected. It is designed to verify that the common files and utilities used by both DHCP clients and servers are functioning correctly.

Setup

  1. Install the version of Fedora that is to be tested on a bare metal or virtual system.
  2. Install the dhcp-common package using the command: sudo dnf install dhcp-common.

How to test

  1. Verify that the common DHCP configuration file (usually /etc/dhcp/dhclient.conf or /etc/dhcp/dhcpd.conf) exists.
  2. Verify that the common DHCP lease database file exists (usually in /var/lib/dhclient or a similar directory).
  3. Check the syntax of a sample DHCP configuration file using a command like dhcpd -t -cf /etc/dhcp/dhcpd.conf.

Expected Results

  1. The common DHCP configuration file exists and is readable.
  2. The common DHCP lease database file exists and is readable.
  3. The syntax check of the DHCP configuration file completes without error.

Optional

  1. Edit the DHCP configuration file to simulate various scenarios and observe how the DHCP client or server behaves with those configurations.
  2. Test the behavior of the DHCP client and server when the common files are missing or have incorrect permissions.