From Fedora Project Wiki
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
.
How to test
- Verify that the common DHCP configuration file (usually
/etc/dhcp/dhclient.conf
or/etc/dhcp/dhcpd.conf
) exists. - Verify that the common DHCP lease database file exists (usually in
/var/lib/dhclient
or a similar directory). - Check the syntax of a sample DHCP configuration file using a command like
dhcpd -t -cf /etc/dhcp/dhcpd.conf
.
Expected Results
- The common DHCP configuration file exists and is readable.
- The common DHCP lease database file exists and is readable.
- The syntax check of the DHCP configuration file completes without error.
Optional
- Edit the DHCP configuration file to simulate various scenarios and observe how the DHCP client or server behaves with those configurations.
- Test the behavior of the DHCP client and server when the common files are missing or have incorrect permissions.