www.linuxbase.org -> Application Battery -> LSB 4 Functional Verification Test for lsb-apache

Functional Verification Test for lsb-apache

Install & Setup

  1. Download the lsb-apache application package that corresponds to the LSB version and processor architecture for which certification is being sought from the Download Page.
  2. Install package on system. Example command line:
    rpm -ivh lsb-apache-2.2.8-1.lsb4.i486.rpm
    
    NOTE: Application MUST be installed without use of --nodeps option, the dependency checks are part of the test.
    - Expected result: application should be installed to
    /opt/lsb/appbat
    /var/opt/lsb/appbat
    /etc/opt/lsb/appbat
    
  3. The lsb-apache package utilizes the install_initd/remove_initd commands. After the package install, lsb-apache should be listed as a system service. To verify this, use one of the following commands:
    chkconfig --list lsb-apache (Red Hat and other systems providing chkconfig)
    sysv-rc-conf --list lsb-apache (Debian and derivatives, you can 'apt-get install sysv-rc-conf' if it is not installed)
    ls /etc/rc[0-6].d/*lsb-apache (Debian and derivatives, if sysv-rc-conf is not installed)
    
  4. - Expected result: lsb-apache should listed as enabled in runlevels 3,4,5
    lsb-apache   0:off      1:off   2:off   3:on    4:on    5:on    6:off
    
  5. If the system under test is already running a webserver listening on the standard port (80), stop it before proceeding with the FVT.
  6. Run the command: grep "^nobody" /etc/passwd
    - Expected result: Output shows user "nobody" already exists. If it is not present on the system, run the command: "useradd nobody" to create the nobody user.
  7. Run the command: grep "^nobody" /etc/group
    - Expected result: Output shows group "nobody" already exists. If it is not present on the system, run the command: "groupadd nobody" to create the nobody group.
  8. Run the command: grep "^http" /etc/services
    - Expected result: Output shows tcp and udp port definitions for the http server using port 80. If definitions are not present, perform a second check: grep "^www" /etc/services. Some systems name the entry one way, some the other (either is correct, as IANA provides both in the canonical list). In the unlikely event that there is no services entry for a webserver on port 80, add the following two lines to /etc/services:
    http     80/tcp
    http     80/udp
    
    It is not necessary to add https entries, or any other http services not associated with port 80, for this test.

Functional Verification Test (FVT)

  Expected result  
achieved?
Test case scenerio
1. Yes No Run the command: /opt/lsb/appbat/sbin/apachectl start
- Expected result: The web server daemon starts as background process (check this with the ps command)
2. Yes No Run the comand: netstat -an | grep ":80"
- Expected result: The command output should include a line like:
tcp        0      0 :::80                       :::*                        LISTEN
or:
tcp6       0      0 :::80                       :::*                        LISTEN
Note: netstat is not a required command in the LSB. It is not an FVT failure if the command itself is unavailable.
3. Yes No Open a web browser using the URL: http://localhost
- Expected result: Test page stating "If works!"

Results

1. Yes No Were there any errors recorded above?
2. Yes No Were there any deviations in the install, setup, or test described above?
If yes, please describe.

Cleanup

  1. Shut down the lsb-apache webserver with the following command:
    /opt/lsb/appbat/sbin/apachectl stop
    
  2. If the native webserver was shut down to run this test, re-enable it.

Reporting Test Results

Include the results of testing this application in the Conformance Statement submitted to the LSB Certification Authority when seeking LSB Runtime Environment Certification. Note this is not a submittable form, instead you affirm on the certification form that you have followed these steps.


last change 2008-03-26 Stew Benedict