test: add functional tests for autoping and service discovery (XEP-0199, XEP-0030) #88
3 Participants
Notifications
Due Date
No due date set.
Depends on
Reference: devs/cproof#88
Reference in New Issue
Block a user
No description provided.
Delete Branch "test/autoping-functional-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add functional tests for the
/autopingcommand and automatic server ping functionality (XEP-0199).Changes
test_autoping.candtest_autoping.hwith 6 new functional testsfunctionaltests.ctest groupsMakefile.amto include new test filesTests Added
Fast tests (Group 1 - no timer delays)
autoping_set_interval/autoping 60sets ping intervalautoping_set_zero_disables/autoping 0disables autopingautoping_timeout_set/autoping timeout 15sets timeoutautoping_timeout_zero_disables/autoping timeout 0disables timeoutSlow tests (Group 3 - require timer waits)
autoping_sends_ping_after_intervalautoping_server_not_supporting_ping<service-unavailable/>errorTesting
[] CI
Resolved #84
6393926dfetoa08e57743fSuggested squash commit message:
test: add functional tests for autoping and disco
Add autoping (XEP-0199) tests: interval/timeout configuration,
ping after interval, server not supporting ping.
Add disco (XEP-0030) tests: info/items queries, empty results,
error handling, multiple identities, missing attributes, JID
targeting, connection requirement.
14 disco tests, 6 autoping tests.
WIP: test: add functional tests for autoping (XEP-0199)to test: add functional tests for autoping (XEP-0199)Generally, LGTM. Thanks for the change. A minor improvement would make the PR even better.
@@ -0,0 +22,4 @@{prof_connect();prof_input("/autoping set 0");"Happy path" antipattern. Can we also test invalid values? Like -1, 9999999999, 99.123, string.
c78907bb91to9e1b95a814test: add functional tests for autoping (XEP-0199)to test: add functional tests for autoping and service discovery (XEP-0199, XEP-0030)