diff options
Diffstat (limited to 'share/python/lib/daemon.yaml')
-rw-r--r-- | share/python/lib/daemon.yaml | 77 |
1 files changed, 56 insertions, 21 deletions
diff --git a/share/python/lib/daemon.yaml b/share/python/lib/daemon.yaml index f4a2f86..5cbc7d0 100644 --- a/share/python/lib/daemon.yaml +++ b/share/python/lib/daemon.yaml @@ -1,59 +1,94 @@ - given: there is no "{args:text}" process - function: daemon_no_such_process + impl: + python: + function: daemon_no_such_process - given: a daemon helper shell script {filename} - function: _daemon_shell_script + impl: + python: + function: _daemon_shell_script - when: I start "{path}{args:text}" as a background process as {name}, on port {port} - function: daemon_start_on_port + impl: + python: + function: daemon_start_on_port - when: I start "(?P<path>[^ "]+)(?P<args>[^"]*)" as a background process as (?P<name>[^,]+), on port (?P<port>\d+), with environment (?P<env>.*) regex: true - function: daemon_start_on_port + impl: + python: + function: daemon_start_on_port - when: I try to start "{path}{args:text}" as {name}, on port {port} - function: _daemon_start_soonish - cleanup: _daemon_stop_soonish + impl: + python: + function: _daemon_start_soonish + cleanup: _daemon_stop_soonish - when: I try to start "(?P<path>[^ "]+)(?P<args>[^"]*)" as (?P<name>[^,]+), on port (?P<port>\d+), with environment (?P<env>.*) regex: true - function: _daemon_start_soonish - cleanup: _daemon_stop_soonish + impl: + python: + function: _daemon_start_soonish + cleanup: _daemon_stop_soonish - when: I start "{path}{args:text}" as a background process as {name} - function: _daemon_start + impl: + python: + function: _daemon_start - when: I start "(?P<path>[^ "]+)(?P<args>[^"]*)" as a background process as (?P<name>[^,]+), with environment (?P<env>.*) regex: true - function: _daemon_start + impl: + python: + function: _daemon_start - when: I stop background process {name} - function: daemon_stop + impl: + python: + function: daemon_stop - when: daemon {name} has produced output - function: daemon_has_produced_output + impl: + python: + function: daemon_has_produced_output - then: a process "{args:text}" is running - function: daemon_process_exists + impl: + python: + function: daemon_process_exists - then: there is no "{args:text}" process - function: daemon_no_such_process + impl: + python: + function: daemon_no_such_process - then: starting daemon fails with "{message:text}" - function: daemon_start_fails_with + impl: + python: + function: daemon_start_fails_with - then: starting the daemon succeeds - function: daemon_start_succeeds + impl: + python: + function: daemon_start_succeeds - then: daemon {name} stdout is "{text:text}" - function: daemon_stdout_is + impl: + python: + function: daemon_stdout_is - then: daemon {name} stdout contains "{text:text}" - function: daemon_stdout_contains + impl: + python: + function: daemon_stdout_contains - then: daemon {name} stdout doesn't contain "{text:text}" - function: daemon_stdout_doesnt_contain + impl: + python: + function: daemon_stdout_doesnt_contain - then: daemon {name} stderr is "{text:text}" - function: daemon_stderr_is - + impl: + python: + function: daemon_stderr_is |