# tests-broadcast_raw.tavern.yaml
---

test_name: Test mqtt message - raw ledr pulse

includes:
  - !include common.yaml

paho-mqtt: &mqtt_spec
  client:
    transport: tcp
    client_id: tavern-tester
  connect:
    host: "{mqtt_host:s}"
    port: !int "{mqtt_port:d}"
    timeout: 5

#broadcast - dpa raw
stages:
  - name: ledr pulse raw
    max_retries: 1
    mqtt_publish:
      topic: Iqrf/DpaRequest
      json: !include messages/broadcast/iqrfRaw-request-1-0-0.yaml

    mqtt_response:
      topic: Iqrf/DpaResponse
      json: !include messages/broadcast/iqrfRaw-response-1-0-0.yaml
      timeout: 1

---

test_name: Test mqtt message - raw hdp ledr pulse
paho-mqtt: *mqtt_spec

#broadcast - raw hdp
stages:

  - name: ledr pulse raw hdp
    max_retries: 1
    mqtt_publish:
      topic: Iqrf/DpaRequest
      json: !include messages/broadcast/iqrfRawHdp-request-1-0-0.yaml

    mqtt_response:
      topic: Iqrf/DpaResponse
      json: !include messages/broadcast/iqrfRawHdp-response-1-0-0.yaml
      timeout: 1
