Endian banner

endian.job.test package

Submodules

endian.job.test.base module

class BaseJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.broken module

class BrokenJob

Bases: endian.job.job.Job

broken(job, *args, **argv)
start(job, *args, **argv)
stop(job, *args, **argv)

endian.job.test.broken_test module

class BrokenJob

Bases: endian.job.job.Job

start(job, *args, **argv)
stop(job, *args, **argv)

endian.job.test.cleanup module

class CleanupJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.collectd module

class CollectdJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.console module

class ConsoleJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.emi module

class EmiJob

Bases: endian.job.job.Job

restart(job, *args, **argv)
start(job, *args, **argv)

endian.job.test.firewall module

class FirewallJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.hostname module

class HostnameJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.hwclock module

class HwClockJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.ipac module

class EmiJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.j1 module

class J1

Bases: endian.job.job.Job

job_actions = {'start': {'priority': 80, 'use_notifications': True, 'depends': ['system_accessible=start'], 'options': {'debug': (<type 'bool'>, 'Be more verbose.'), 'force': (<type 'bool'>, 'Forces restart.')}}, 'restart': {'use_notifications': True, 'depends': ['system_accessible=start'], 'options': {'debug': (<type 'bool'>, 'Be more verbose.'), 'force': (<type 'bool'>, 'Forces restart.')}}}
time(job, *args, **argv)

endian.job.test.jobsengine module

class JobsengineJob

Bases: endian.job.generic.handlersjob.HandlersJob, endian.job.job.Job

restart(job, *args, **argv)
run_parts(job, *args, **argv)

Runs a number of scripts and jobsengine commands found in a single directory directory. Scripts and jobsengine commands are recognized by the filename.

  • scripts – Filenames should consist entirely of upper and lower case letters,

    digits, underscores, and hyphens (e.g. 01interfacemark)

  • jobsengine cmd – Filename format [PRIORITY].cmd.args (e.g. 05.restart.xyz, restart.xyz)

    If the file is not empty, the file content is used as additional argument.

Options:

  • directory directory path

  • prefix prefix added to the jobsengine cmds (e.g. internal)

  • environ if it is not None, it must be a mapping that defines the

    environment variables for the new process; these are used instead of inheriting the jobsengine environment, which is the default behavior.

All the additional argument except directory, prefix and eviron are converted in environ vars passed to the triggered commands.

start(job, *args, **argv)

endian.job.test.monit module

class MonitJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.network module

class NetworkJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.save_defaults module

class SaveDefaultsJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.slow module

class SlowJob

Bases: endian.job.generic.handlersjob.HandlersJob, endian.job.job.Job

aecho(job, *args, **argv)
echo(job, *args, **argv)
handlerstest(job, *args, **argv)
job_groups = ['slowgroup']
lines(job, *args, **argv)
name = 'slow'
restart(job, *args, **argv)
secho(job, *args, **argv)
start(job, *args, **argv)
stop(job, *args, **argv)
time(job, *args, **argv)

endian.job.test.slow2 module

class Slow2Job

Bases: endian.job.job.Job

job_actions = {'start': {'use_notifications': True, 'options': {'debug': (<type 'bool'>, 'enable debug'), 'force': (<type 'bool'>, 'force restart')}}, 'stop': {'use_notifications': True, 'options': {'debug': (<type 'bool'>, 'enable debug'), 'force': (<type 'bool'>, 'force restart')}}, 'restart': {'options': {'debug': (<type 'bool'>, 'enable debug'), 'force': (<type 'bool'>, 'force restart')}}}
job_groups = ['slowgroup']
name = 'slow_two'
restart(options)
start(options)

endian.job.test.startup_done module

class StartupDoneJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.sysinit module

class SysInitJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.ulogd module

class UlogdJob

Bases: endian.job.job.Job

start(job, *args, **argv)

endian.job.test.uplinksdaemon module

class UplinksDaemonJob

Bases: endian.job.job.Job

start(job, *args, **argv)