From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=A brief description of the functionality being tested. |setup=Optionally include information on preparing the test environment |actions= Be as spec...")
 
No edit summary
 
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=A brief description of the functionality being tested.
|description=Verify that tftp works without tcp_wrappers and is not affected by its configuration by default
|setup=Optionally include information on preparing the test environment
|setup=Make sure your favorite software that could be using tcp_wrappers is installed, for example <code>tftp</code>
 
<code>rpm -q tftp tftp-server</code>
 
|actions=
|actions=
Be as specific as required for the target audience.  
# Check <code>tftp</code> <code>tftp-server</code> is NOT linked against libwrap: <code><nowiki>ldd /usr/bin/tftp |grep libwrap</nowiki></code>
# Start here ...
# Check if <code><nowiki>/var/lib/tftpboot</nowiki></code> is present as it's used for TFTP server directory
# Next do this ...
# Execcute <code><nowiki> sudo firewall-cmd --add-service=tftp --permanent && firewall-cmd --reload && systemctl enable tftp && systemctl restart tftp</nowiki></code>
# Finally click that
# Execute <code><nowiki>echo "TCP Deprecate Test Day" | sudo tee /var/lib/tftpboot/testday.txt</nowiki></code> to put a file at <code>/var/lib/tftpboot</code>
# Execute <code><nowiki>echo "get testday.txt" | tftp 127.0.0.1</nowiki></code> to get the file from tftp
# cat testday.txt to get the text
 
|results=
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.
# Step 1 completes without error
# Step #1 completes without error
# Step 2 directory should exist, if not run <code> sudo dnf install -y tftp tftp-server</code>
# The system boots into runlevel 5
# Step 3 completes without error
# Program completes with exit code 0
# Step 5 prints <code> tftp> get testday.txt</code>
 
|optional=Optionally provide hints for exploratory testing.
|optional=Optionally provide hints for exploratory testing.
}}
}}

Latest revision as of 03:16, 22 March 2018

Description

Verify that tftp works without tcp_wrappers and is not affected by its configuration by default

Setup

Make sure your favorite software that could be using tcp_wrappers is installed, for example tftp

rpm -q tftp tftp-server

How to test

  1. Check tftp tftp-server is NOT linked against libwrap: ldd /usr/bin/tftp |grep libwrap
  2. Check if /var/lib/tftpboot is present as it's used for TFTP server directory
  3. Execcute sudo firewall-cmd --add-service=tftp --permanent && firewall-cmd --reload && systemctl enable tftp && systemctl restart tftp
  4. Execute echo "TCP Deprecate Test Day" | sudo tee /var/lib/tftpboot/testday.txt to put a file at /var/lib/tftpboot
  5. Execute echo "get testday.txt" | tftp 127.0.0.1 to get the file from tftp
  6. cat testday.txt to get the text

Expected Results

  1. Step 1 completes without error
  2. Step 2 directory should exist, if not run sudo dnf install -y tftp tftp-server
  3. Step 3 completes without error
  4. Step 5 prints tftp> get testday.txt

Optional

Optionally provide hints for exploratory testing.