OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

mqtt-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Proposal for spec clarification section 4.7


Dear All,

While reading the 3.1.1 version of the spec I noticed that the statements in section 4.7 cover matching of publications to subscriptions could be made clearer. For someone implementing code that attempts to conform to the spec it would be really helpful IMHO to have some sort of table that lists all the various possibilities and that can be used to implement a comprehensive set of unit tests that if passed confirms to the developer that the code conforms to the spec. Here are some examples, that by any means are NOT complete and maybe even be wrong (the third example in particular):

if a client subscribes with topic "sport/tennis/+"
the server MUST publish messages that have topic:   "sport/tennis/player1" "sport/tennis/player2"
the server MUST NOT publish messages that have topis "sport/tennis/player1/score"

if a client subscribes with topic "sport/tennis/player1/#"
the server MUST publish message that have topic: "sport/tennis/player1" "sport/tennis/player1/ranking" "sport/tennis/player1/score/wimbledon"
the server MUST NOT publish message that have topic "sport/tennis/player2" "sport/tennis/player2/ranking"

if a client subscribes with topic "+/tennis/#"
the server MUST publish message that have topic: "sport/tennis" "game/tennis" "sport/tennis/ranking" "game/tennis/score" "sport/tennis/player1/raking"
the server MUST NOT publish message that have topic "sport/game/tennis/" "sport/football/score"

This could also be used to clarify the various questions that Roger Light had on this mailing list a few months ago.

If people think this would be useful I am willing to help on this.

Thank you,
Thomas van der Veen

ps. just another thought, how about a script that contains a client that connects to a broker and performs the tests as described and gives a pass/fail status at the end?


Regards

Ing. Thomas van der Veen  Hursley Park
All things Clojure in IBM
Software Engineer  Hursley, Winchester SO21 2JN
I&A System Test  United Kingdom
IBM Software Group, AIM  
Phone: +44-1962-816960  
e-mail: veent@uk.ibm.com  
Location: DW2F20  
 
 


Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]