skip to navigation
skip to content

erp5.util 0.3

ERP5 related utilities.

Downloads ↓

Latest Version: 0.4.3

erp5.util
=========

Package containing various ERP5 related utilities.

Modules documentation
=====================


API Documentation
-----------------

You can generate the API documentation using ``epydoc'':

$ epydoc src/erp5


testnode
--------


Utility able to call wget and varnishlog to extract Headers and return all failures
according expected caching policy.

This utility is configurable through a configuration file like:

[web_checker]
url = http://www.example.com/
working_directory = /home/me/tmp/crawled_content
varnishlog_binary_path = varnishlog
email_address = me@example.com
smtp_host = localhost
debug_level = debug

[header_list]
Last-Modified = True
Cache-Control = max-age=300
                max-age=3600
Vary = Accept-Language, Cookie, Accept-Encoding
       Accept-Language, Cookie
       Accept-Language,Cookie,Accept-Encoding
       Accept-Language,Cookie
Expires = True

[erp5_extension_list]
prohibited_file_name_list = WebSection_viewAsWeb
                            Base_viewHistory
                            list
prohibited_folder_name_list = web_page_module
                              document_module



with
  url : website to check
  working_directory : fetched data will be downloaded
  varnishlog_binary_path :  path to varnishlog
  email_address : email address to send result
  smtp_host : smtp host to use
  debug_level : log level of this utility (debug =>very verbose,
                                          info=>normal,
                                          warning=>nothing)

  header_list : Key == Header id.
                value: if equals to True, it means that header needs to be present in RESPONSE
                      if it is a tuple, the Header value must sastify at least one of the proposed values

  erp5_extension_list: Optional section.
    prohibited_file_name_list: which check that any links redirect to prohibited forms
      like WebSection_viewAsWeb, Base_viewHistory, list, ...
    prohibited_folder_name_list: usefull to detect that links does not redirect to
      specified modules like, web_page_module, document_module, ...


This utility requires wget => 1.12
And a callable varnishlog.
The utility must be run on same server where varnish is running.

web_checker reads varnishlogs to detect if a Query goes to the backend.

Changes
=======

0.3 (2011-12-23)
----------------

 * erp5.util.webchecker:

   - Imported from https://svn.erp5.org/repos/public/erp5/trunk/utils/
     Utility to check caching policy of websites

 * erp5.util.testnode:

   - improve logging [Sebastien Robin]
   - fix passing bt5_path [Gabriel Monnerat]
   - fix profile_path concatenation [Nicolas Delaby]
   - fix git updating and parsing repository paths [Julien Muchembled]

 * erp5.util.benchmark:

  - new utility, work in progress [Arnaud Fontaine]

0.2 (2011-09-20)
----------------

 * Imported from https://svn.erp5.org/repos/public/erp5/trunk/utils/

   - erp5.util.test_browser:
     Programmable browser for functional and performance tests for ERP5
   - erp5.util.benchmark:
     Performance benchmarks for ERP5 with erp5.utils.test_browser

0.1 (2011-08-08)
----------------

 * erp5.util.testnode imported from recipe like slapos.cookbook
   [Łukasz Nowak]
 
File Type Py Version Uploaded on Size # downloads
erp5.util-0.3.tar.gz (md5) Source 2011-12-23 38KB 349