[PATCH] rostermanager: Signal pre-approval in roster pushes (fixes #1924)

13 views
Skip to first unread message

Goot the ticklegoblin!

unread,
Apr 18, 2025, 7:09:15 AMApr 18
to proso...@googlegroups.com
Attached is a patch for issue #1924, fixing a compliance issue with RFC 6121.

While following the instructions on the website for creating patches,
`make test` gave the following output:

> GNUmakefile:2: config.unix: No such file or directory
> make: *** No rule to make target 'config.unix'. Stop.

However, considering the trivial nature of the change, it's unlikely that it
wouldn't pass any automated test.

Thank you
signal-pre-approval.patch

Kim Alvefur

unread,
May 5, 2025, 11:04:53 AMMay 5
to 'Goot the ticklegoblin!' via prosody-dev
On Thu, Apr 17, 2025 at 09:05:20PM -0400, 'Goot the ticklegoblin!' via prosody-dev wrote:
>Attached is a patch for issue #1924, fixing a compliance issue with RFC 6121.

Thanks for the patch.

>While following the instructions on the website for creating patches,
>`make test` gave the following output:
>
>> GNUmakefile:2: config.unix: No such file or directory
>> make: *** No rule to make target 'config.unix'. Stop.

This happens because `./configure && make` needs to be run first.
However, that runs the unit tests, which do not cover roster
interactions.

Rather we would want to have scansionน and run `make integration-test`.
The tests it runs are in `spec/scansion/`, e.g. this one would be
relevant to update, or base a new one on:
https://hg.prosody.im/trunk/file/tip/spec/scansion/basic_roster.scs

>However, considering the trivial nature of the change, it's unlikely that it
>wouldn't pass any automated test.

Attempting to adjust our tests to check for this, I noticed that this
only covers roster pushes, not roster fetches, which are implemented in
mod_roster.

--
Zash

https://matthewwild.co.uk/projects/scansion/
Reply all
Reply to author
Forward
0 new messages