summaryrefslogtreecommitdiffstats
path: root/src/test/yaml/conditiongentest/test.yaml
blob: 870877acde505674854e249f5ff49772c7059feb (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Validate condition callback rendering.

- name: test path group 1
  class: group
  group: path
  members:
    - meta: PATH
      path: /xyz/openbmc_project/testing/inst4

- name: test path group 2
  class: group
  group: path
  members:
    - meta: PATH
      path: /xyz/openbmc_project/testing/inst4
    - meta: PATH
      path: /xyz/openbmc_project/testing/inst6

- name: test property group 1
  class: group
  group: property
  type: int32
  members:
    - interface: xyz.openbmc_project.Sensor.Iface1
      meta: PROPERTY
      property: Value

- name: test property group 2
  class: group
  group: property
  type: string
  members:
    - interface: xyz.openbmc_project.Sensor.Iface3
      meta: PROPERTY
      property: Value2

- name: test count condition 1
  class: condition
  condition: count
  paths: test path group 1
  properties: test property group 1
  callback: test journal callback 1
  countop: '>='
  countbound: 3
  op: '>='
  bound: 115

- name: test count condition 2
  class: condition
  condition: count
  paths: test path group 1
  properties: test property group 1
  callback: test journal callback 1
  countop: '>='
  countbound: 3
  op: '>='
  bound: 115

- name: test journal callback 1
  class: callback
  callback: journal
  paths: test path group 1
  properties: test property group 1
  severity: INFO
  message: Hello world from PDM!

- name: test count condition 3
  class: condition
  condition: count
  paths: test path group 1
  properties: test property group 1
  callback: test journal callback 2
  countop: '>='
  countbound: 3
  op: '>='
  bound: 115

- name: test count condition 4
  class: condition
  condition: count
  paths: test path group 1
  properties: test property group 1
  callback: test journal callback 2
  countop: '>='
  countbound: 3
  op: '>='
  bound: 115

- name: test journal callback 2
  class: callback
  callback: journal
  paths: test path group 1
  properties: test property group 1
  severity: INFO
  message: Hello world from PDM!
OpenPOWER on IntegriCloud