# Validate nested callback groups.

- 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 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 journal callback 2
  class: callback
  callback: journal
  paths: test path group 1
  properties: test property group 1
  severity: INFO
  message: Hello world from PDM!

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

- name: test elog callback 1
  class: callback
  callback: elog
  paths: test path group 2
  properties: test property group 2
  error: xyz::openbmc_project::Common::Error::InvalidArgument
  metadata:
      - name: xyz::openbmc_project::Common::InvalidArgument::ARGUMENT_NAME
        value: testing...
        type: string
      - name: xyz::openbmc_project::Common::InvalidArgument::ARGUMENT_VALUE
        value: testing...
        type: string

- name: test elog callback 2
  class: callback
  callback: elog
  paths: test path group 2
  properties: test property group 2
  error: xyz::openbmc_project::Common::Error::InternalFailure

- name: test group callback 1
  class: callback
  callback: group
  members:
      - test journal callback 1
      - test journal callback 2
      - test journal callback 3
      - test elog callback 1

- name: test group callback 2
  class: callback
  callback: group
  members:
      - test journal callback 1
      - test journal callback 2
      - test elog callback 2

- name: test group callback 3
  class: callback
  callback: group
  members:
      - test journal callback 3
      - test group callback 2
      - test group callback 3

- name: test group callback 4
  class: callback
  callback: group
  members:
      - test group callback 3
