Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f7d51d3e

Von Sven Schöling vor etwa 12 Jahren hinzugefügt

SelfTests

Es gibt jetzt ein Grundgerüst um Selbsttests durchzuführen, und bei Problemen
einen Administrator per Mail zu benachrichtigen. Die Selbsttests werden Über
das SelfTest Modul für den Taskserver verwaltet, und in config/lx_office.conf
im Block [self_test] konfiguriert. Die Tests werden in TAP ausgeliefert und
können bei Bedarf weiter maschinell ausgewertet werden.

Weitere Tests können von SL::BackgroundJob::SelfTest::Base abgeleitet werden.

Zur Demonstration gibt es einen Selbsttest Transactions, der die Datenbank
auf Fehlbuchungen untersucht.

Unterschiede anzeigen:

config/lx_office.conf.default
163 163
# The template file used for the email's body.
164 164
email_template = templates/webpages/oe/periodic_invoices_email.txt
165 165

  
166
[self_test]
167

  
168
# modules to be tested
169
# Add without SL::BackgroundJob::SelfTest:: prefix
170
# Separate with space.
171
modules = Transactions
172

  
173
# you probably don't want to be spammed with "everything ok" every day. enable
174
# this when you add new tests to make sure they run correctly for a few days
175
send_email_on_success = 0
176

  
177
# will log into the standard logfile
178
log_to_file = 0
179

  
180
# user login (!) to send the email to.
181
send_email_to  =
182
# will be used to send your report mail
183
email_from     =
184
# The subject line for your report mail
185
email_subject  = kivitendo self test report
186
# template. currently txt and html templates are recognized and correctly mime send.
187
email_template = templates/mail/self_test/status_mail.txt
188

  
166 189
[datev_check]
167 190
# it is possible to make a quick DATEV export everytime you post a record to ensure things
168 191
# work nicely with their data requirements. This will result in a slight overhead though

Auch abrufbar als: Unified diff