Skip to content

Add a PEP scenario#58

Open
chrzaszcz wants to merge 6 commits into
masterfrom
pep-scenario
Open

Add a PEP scenario#58
chrzaszcz wants to merge 6 commits into
masterfrom
pep-scenario

Conversation

@chrzaszcz

@chrzaszcz chrzaszcz commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

Adds a PEP-focused publish-and-notify scenario for dynamic or static-domain runs.

What Changed

  • Added dynamic_domains_pep scenario, where users:

    • connect to static or dynamic domains
    • advertise PEP notification interests via entity capabilities
    • subscribe to next users' presence
    • periodically publish items to owned PEP nodes
    • count received pubsub notifications and item TTD
  • Added amoc_xmpp_pep helper:

    • API: publish_item/2, nodes_to_publish/0
    • pubsub notification handler
    • metrics: pubsub_items_published, pubsub_notifications_received, pubsub_item_ttd, response, timeouts
  • Extended amoc_xmpp_presence:

    • caps-enabled presence and disco#info replies
    • presence subscriptions with auto-accepting incoming subscriptions and added metrics
    • roster push acknowledgements with metrics
  • Updated dynamic_domains:

    • domain_count = 0 now uses host_type as a static domain
    • added make_jid/1 - reused that helper in PM and MUC Light scenarios
  • Bumped Escalus from 4.5 to 4.7.

@chrzaszcz chrzaszcz force-pushed the pep-scenario branch 4 times, most recently from 8763df4 to 1c756d0 Compare June 11, 2026 13:14
Thus, all dynamic_domains_* scenarios can be run for a static host.
@chrzaszcz chrzaszcz force-pushed the pep-scenario branch 3 times, most recently from 400c0c2 to d6b1092 Compare June 12, 2026 12:13
- Support entity capabilities (XEP-0115) - in particular,
  allow to express interest in PEP specific nodes
- Support presence subscriptions
Functionality:
- publish an item
- determine nodes to publish according to nodes_per_user
- count pep notification and register TTD for each of them
@chrzaszcz chrzaszcz marked this pull request as ready for review June 16, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant