Skip to content

Bug Report: TCK, Host Application Tests: Session Establishment Test fails due to QoS and Retain (wrongly, I think) #554

@peterhumaj

Description

@peterhumaj

What happened?

Hello,
Today I downloaded TCK (https://download.eclipse.org/sparkplug/3.0.0/Eclipse-Sparkplug-TCK-3.0.0.zip), configured, and I'm testing my EdgeNode (all ok), but with the Host Application I have problems. My Host Application ID is "D2000komHA" (without quotes).

Session establishment test fails with the following errors:

  • host-topic-phid-birth-qos: FAIL [tck-id-host-topic-phid-birth-qos] The MQTT Quality of Service (QoS) MUST be set to 1 (org.eclipse.sparkplug.tck.test.host.SessionEstablishmentTest.checkBirthMessage(SessionEstablishmentTest.java:767));

  • host-topic-phid-birth-retain: FAIL [tck-id-host-topic-phid-birth-retain] The MQTT retain flag for the Birth Certificate MUST be set to TRUE (org.eclipse.sparkplug.tck.test.host.SessionEstablishmentTest.checkBirthMessage(SessionEstablishmentTest.java:778));

  • host-topic-phid-birth-topic: FAIL [tck-id-host-topic-phid-birth-topic] The Sparkplug Host Application Birth topic MUST be of the form spBv1.0/STATE/sparkplug_host_id where the sparkplug_host_id must be replaced with the specific Spakrplug Host ID of this Sparkplug Host Application. (org.eclipse.sparkplug.tck.test.host.SessionEstablishmentTest.checkBirthMessage(SessionEstablishmentTest.java:657));

I can, however, prove (see attached WireShark log, packet 20) that QoS=1 and Retain=True and Topic is spBv1.0/STATE/D2000komHA

TCK error.zip

I can see packet 17 sent by the HiveMQ (from TCK) with several STATE messages, having the same 0x33 Header Flags as my packet 20.

I also tried to switch my application to MQTT3.1.1 (Protocol Level 4), but the same errors were reported by TCK.

What is the product or software this issue was discovered with?

Ipesoft D2000 SCADA (d2000.ipesoft.com)

What exact steps need to be performed to reproduce the problem?

  • Install & configure HiveMQ & TCK.
  • Connecting to http://localhost:3000 via web browser, setting MQTT configuration to the default values, and connecting to HiveMQ broker.
  • Setting "Host Application ID:" to D2000komHA
  • Start of Session Establishment Test
  • Start of Ipesoft D2000 communication process (with a specific configuration)

Is this related to a Sparkplug Listing request? If so, link the issue from https://github.com/eclipse-sparkplug/sparkplug.listings here.

No response

Version

3.0.0 (Default)

Accept EFTL Terms

  • I agree to the terms of EFTL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions