r4 - 20 May 2008 - 14:05:05 - BeckyHYou are here: Wiki >  AppLogic23 Web > RefAppsVPSOsolTp
ALERT! AppLogic 2.3 Beta Documentation The latest production release is AppLogic 3.0.30

VPS64_OSOL - VPS based on OpenSolaris - Test Plan

Preparation

Host platform

The tests described here for the VPS64_OSOL application are designed to run on an AppLogic 2.3+ grid. The automated tests are to be run as a regular user (i.e, non-maintainer) from a remote server.

3rd-party tools

None

Test Summary

Boundary Tests

  • Properties - verify all mandatory properties must be set
  • Resources - verify the application is operational with various resource assignments

Root and user login Tests

  • Root access - verify root access to the application
  • User access - verify user access to the application

External network access Tests

Verify the application can talk to the outside world.

Build environment Tests

Verify the build environment is operational.

Running the Tests

To run the tests on a remote server, copy and uncompress the tests archive file (vps64_osol-tst.tar.bz2) to a directory of your choice. Update the setenv.sh file to setup the proper test environment (i.e., list of available IP address, gateway, and other network info). Finally, run the tests:

bash runall.sh

When necessary, the script will prompt for manual intervention.

Design

Structure

The test applications are built from the following:

  • test utilities and a remote test script, intended to run on a remote server.

Test Details

All tests use the default resource assignment unless otherwise specified.

properties

Provision the application without setting any properties and verify the build fails. A message should be displayed for each mandatory property.

root access

Provision the application and verify root can log into the application with the root password through the appliance's console and by SSHing into the application. Also, verify the hostname is correct. Console access must be verified manually in dom0 using xm console.

user access

Provision the application and verify the parameterized user can log into the application with the parameterized user password through the appliance's console and by SSHing into the application. Also, verify the hostname is correct. Console access must be verified manually in dom0 using xm console.

external network access

  • Provision and log into the application. Verify external websites are accessible by both IP address and name by executing wget.
  • Verify all dns properties are used by parameterizing one with a valid DNS server and the other two with invalid DNS servers and repeating this test.
  • Set the secondary_ip property on the application and verify the application is accessible on this IP address.
  • Set an invalid netmask and verify the application is inaccessible.
  • Set an invalid gateway and verify the application is inaccessible.

verify the appliance provides a full build environment

  1. Use pkgadd to add a package:
    • wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/bzip2-1.0.4-sol10-x86-local.gz
    • gunzip bzip2-1.0.4-sol10-x86-local.gz
    • pkgadd -d bzip2-1.0.4-sol10-x86-local
  2. Build and install a package from source
    • wget http://www.reverse.net/pub/apache/httpd/httpd-2.2.8.tar.gz
    • gtar -zxf httpd-2.2.8.tar.gz
    • cd httpd-2.2.8
    • ./configure  --prefix=/usr/apache2.2.8
    • make
    • make install

resources

Repeat the above tests with the following resource assignments:

  • minimum for all resources, with and without --cap_cpu
  • cpu.dflt=0.50, mem.dflt=1G
  • cpu.dflt=1.00, mem.dflt=2G
  • cpu.dflt=2.00, mem.dflt=4G
  • maximum for all resources (or the max limit of a server)

-- StephenQ - 25 Mar 2008

 
Copyright © CA 2005-2011. All Rights Reserved.
%