xmpp-compliance-tester

XMPP Compliance Tester, forked from github.com/iNPUTmice/ComplianceTester
git clone https://git.in0rdr.ch/xmpp-compliance-tester.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit f65750e80b05142817546168d1af4e37760bf815
parent a4caa69ccdda9578cf633a32a542d635ce8096ce
Author: Daniel Gultsch <daniel@gultsch.de>
Date:   Mon,  6 Jun 2016 13:39:32 +0200

added extra test to check for prosodys cloud notify

Diffstat:
Msrc/main/java/eu/siacs/compliance/suites/Conversations.java | 2+-
Asrc/main/java/eu/siacs/compliance/tests/PushOnServer.java | 35+++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/src/main/java/eu/siacs/compliance/suites/Conversations.java b/src/main/java/eu/siacs/compliance/suites/Conversations.java @@ -20,7 +20,7 @@ public class Conversations extends AdvancedServerIM { CSI.class, HttpUpload.class, Proxy65.class, - Push.class + PushOnServer.class ).stream()).collect(Collectors.toList()); } diff --git a/src/main/java/eu/siacs/compliance/tests/PushOnServer.java b/src/main/java/eu/siacs/compliance/tests/PushOnServer.java @@ -0,0 +1,35 @@ +package eu.siacs.compliance.tests; + +import rocks.xmpp.core.session.XmppClient; + +import java.util.Arrays; +import java.util.List; + +/** + * This test checks for availability of push on the server jid + * The XEP specifics that the availability should be announced on the account + * Prosody (the only implementation for now) does this the wrong way round + * see Test 'Push' for a proper test + */ +public class PushOnServer extends AbstractDiscoTest { + + public PushOnServer(XmppClient client) { + super(client); + } + + @Override + List<String> getNamespaces() { + return Arrays.asList("urn:xmpp:push:0"); + } + + @Override + boolean checkOnServer() { + return true; + } + + + @Override + public String getName() { + return "XEP-0357: Push Notifications (on server)"; + } +}