summaryrefslogtreecommitdiff
path: root/share/python/lib/daemon.yaml
blob: f4a2f8652142215bbcfbbe660c6e7a7560563b9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
- given: there is no "{args:text}" process
  function: daemon_no_such_process

- given: a daemon helper shell script {filename}
  function: _daemon_shell_script

- when: I start "{path}{args:text}" as a background process as {name}, on port {port}
  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

- when: I try to start "{path}{args:text}" as {name}, on port {port}
  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

- when: I start "{path}{args:text}" as a background process as {name}
  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

- when: I stop background process {name}
  function: daemon_stop

- when: daemon {name} has produced output
  function: daemon_has_produced_output

- then: a process "{args:text}" is running
  function: daemon_process_exists

- then: there is no "{args:text}" process
  function: daemon_no_such_process

- then: starting daemon fails with "{message:text}"
  function: daemon_start_fails_with

- then: starting the daemon succeeds
  function: daemon_start_succeeds

- then: daemon {name} stdout is "{text:text}"
  function: daemon_stdout_is

- then: daemon {name} stdout contains "{text:text}"
  function: daemon_stdout_contains

- then: daemon {name} stdout doesn't contain "{text:text}"
  function: daemon_stdout_doesnt_contain

- then: daemon {name} stderr is "{text:text}"
  function: daemon_stderr_is