r1 - 14 Mar 2007 - 14:47:28 - ChristianFoliniYou are here: TWiki >  Main Web > Task47Start

Task47Start - Action-Testing of ruleset

See TasksExplained? for more infos about tasks. This task is based on the template at TaskTemplateStart

Status : closed
Category : rule-generator
Date opened : 2007-02-20
Description : Feed the ruleset into an apache webserver and perform requests against the server
Referenced in stories/tasks : WebStatistics RemoActionTests
Testsuite : test/functional/ruleset-action-test/ruleset-action-test.rb
Commited revision : 180

Remarks :


Changelog

2007-03-14 - done

I have worked for a couple of days on this task.

There are:

  • fixtures with requests
  • a stripped down apache
  • a logfile parser script: audit-log-parser.rb
    This script has the ability to reinject a request
  • A set of tested and approved autit-logs (blueprints) that define how apache/a ruleset is meant to behave

The script is useful by itself:

usage:
    test/functional/ruleset-action-test/audit-log-parser.rb filename [...]
    <STDIN> | test/functional/ruleset-action-test/audit-log-parser.rb

 filename can be serial logfile or path to tree of concurrent logfiles

-h --help      help, print this usage information
-i --id str    request id or comma-separated list of request ids
               id can be an index number or the unique_id
               of the request.
-l --list      display requests
-r --reinject  reinject requests
-q --quiet     be quiet
-s --summary   bring a summary report at the end
-v --verbose   be verbose

Filename is a mandatory parameter unless STDIN is provided.

0 returns 0 if all reinjections were successful.
1 in case there has been a failure.

2007-03-14 - defined the tests

The tests are scripted in test/functional/ruleset-action-test/blueprints/:

  • create-blueprint_index.php.sh
  • create-blueprint_submit.php.sh
  • create-blueprint_redirect.php.sh

The Tests are defined in RemoActionTests.

TaskStati
TaskStatus? closed
Task-Categories rule-generator
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
Main.TaskTemplateStart moved from Main.TaskTemplate on 19 Jan 2007 - 12:41 by ChristianFolini
 

No permission to view WebTopBar?

No permission to view WebBottomBar?