From 3c15f8755dca4c9a3188fd153d6bc3c8292f19e4 Mon Sep 17 00:00:00 2001 From: arjen Date: Thu, 22 Nov 2007 07:04:17 +0000 Subject: [PATCH] Added description of test scripts. Prepared for release 0.0.11 --- doc/index.html | 1 + doc/makefile | 5 +- doc/test.xml | 150 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 155 insertions(+), 1 deletion(-) create mode 100644 doc/test.xml diff --git a/doc/index.html b/doc/index.html index 2a64c8b..63f0211 100644 --- a/doc/index.html +++ b/doc/index.html @@ -85,6 +85,7 @@ The core team on Gnucomo developer day 1.
  • Gnucomo-0.0.8 Sep 04, 2003
  • Gnucomo-0.0.9 Dec 24, 2003
  • Gnucomo-0.0.10 Oct 19, 2007
  • +
  • Gnucomo-0.0.11 Nov 22, 2007
  • Gnucomo Development snapshot Jan 11, 2007
  • diff --git a/doc/makefile b/doc/makefile index 4dfb900..7d73386 100644 --- a/doc/makefile +++ b/doc/makefile @@ -25,7 +25,7 @@ PICTURES= dataflow.eps architecture.eps erd-action.eps erd-anu.eps erd-log.eps \ class-database_entity.eps classes-gcm_input.eps gcm_input-dataflow.eps \ classes-message_filter.eps -html: manifest.xhtml design.xhtml manual.xhtml +html: manifest.xhtml design.xhtml manual.xhtml test.xhtml ps: manifest.ps design.ps @@ -36,6 +36,9 @@ all: ps html txt manual.xhtml : manual.xml $(IMAGES) xml2html manual.xml > manual.xhtml +test.xhtml : test.xml + xml2html test.xml > test.xhtml + manifest.xhtml : manifest.xml $(IMAGES) xml2html manifest.xml > manifest.xhtml diff --git a/doc/test.xml b/doc/test.xml new file mode 100644 index 0000000..fa04f23 --- /dev/null +++ b/doc/test.xml @@ -0,0 +1,150 @@ + + + + + + + + + + Gnucomo - test description + + Arjen Baart <arjen@andromeda.nl> + October 25, 2007 + + 0.1 + Andromeda Technology & Automation + De Winter Information Solutions + + + + + + + + +Testing Gnucomo + +Large parts of Gnucomo are tested automatically. +The script that runs all these tests, gcmtest, +along with individual scripts and data files, is located in the +directory test in the Gnucomo source distribution. + + + + +Test cases + + +This chapter describes individual test cases. + + +
    +Test 0001: Database + +Create and destroy the database. + +
    + +
    +Test 0002a: Read syslog entries + +Create an object 'kithira.andromeda.nl' in the database and +parse a piece of a syslog file. +This tests normal operation in which gcm_input reads a syslog file +directly. + +
    + +
    +Test 0003: Read corrupted syslog entries + +Create an object 'vd.wt.tno.nl' in the database and +parse a piece of a syslog file with short and even empty lines. +There should be warnings printed on stderr. + +
    + +
    +Test 0004: Read syslog entries without hostname + +Create an object 'kithira.andromeda.nl' in the database and +try to parse a piece of a syslog file without specifying the hostname. +The message should be rejected on account of an unknown host. + +
    + +
    +Test 0005: Read syslog entries without time + +Create an object 'kithira.andromeda.nl' in the database and +parse a piece of a syslog file without specifying a time. +This tests wether an improper time still creates valid data. + +
    + +
    +Test 0008: Database upgrades + +Test the database upgrades in gcm_daemon. +Create an old, version 1, database and run gcm_daemon to perform +an upgrade to the latest version. +Then, create a latest-version database and compare dumps of these +database. They should be essentially the same. + +
    + +
    +Test 0009: Service check notifications + +Test the service check notifications. +Create a database with two objects and no services. After reading two +log file fragments for these two objects, gcm_daemon should create +'service unknown' notifications, one for each object, as well as a few +other notifications. + +This tests problem report nr. 23 + +
    + +
    +Test 0010: Processing log entries + +Test the log processing of gcm_daemon +Create a database with one object and read a piece of sendmail log + +This tests problem report nrs. 14 through 17 + +
    + +
    +Test 0011: Ambiguous log entries + +Create an object 'vd.wt.tno.nl' in the database and +parse a piece of a apache access file which may be mistaken for an rpm list + +
    + +
    +Test 0012: RPM package list + +Create an object and parse an RPM package list. +Parameters and properties are created in the database. +The first line of the RPM list is empty. This tests whether +gcm_input can handle empty lines properly. +This tests problem report nr. 30. + +
    + +
    + +
    +
    -- 2.11.0