Commit Graph

31 Commits

Author SHA1 Message Date
Henry 385b98a3a1 add privacy mode and role tests (fixes #185)
* denied/remove
* denied/add
* invites/revoke
* members/remove
* notices/edit
* notices/add

also:
* add members.CheckAction helper
* fix muxrpc abort bug and update to v2.0.5
* strictly use SeeOther not 307 (fixes #149)
2021-05-14 14:27:01 +02:00
Henry 7c75b27c8d
have a clear error on taken aliases
fixes #194
2021-05-10 13:51:05 +02:00
Henry 3969372993 reconnect testing 2021-04-26 10:06:34 +02:00
Henry 3093385635 refactor makeTestClient
re-use keys and be able to change the mocks
2021-04-26 09:39:11 +02:00
Henry bdf99ab4fa add staleness and tunnel.connect tests 2021-04-26 09:39:11 +02:00
Henry 7a74f7806c move makeTestClient to utils 2021-04-26 09:39:11 +02:00
cblgh c3ac3a1678 test that non-members are not blocked from establishing connections for community mode servers 2021-04-26 09:29:22 +02:00
cblgh 346ba14ec9 test connection establishment for non-members in restricted rooms 2021-04-26 09:29:22 +02:00
Henry 6aaee070c6 fix test assumption 2021-04-21 08:28:36 +02:00
Henry a965333f90 add assertions to the new test 2021-04-20 18:17:56 +02:00
Henry 9cd7aa0b5a introduce tunnel.endpoint tests 2021-04-20 18:17:56 +02:00
Henry 51ad16ccd5 refactor testSession setup 2021-04-20 18:17:56 +02:00
Henry 940cd2b3d1 Fix ssb-ws connections
The landing path (/) can now also be used as a websocket endpoint.
This enables use of the room server with ssb-browser-demo and similar
applications that can't use TCP connections.

also pin WIP muxrpc branch (fix-stupid-timeout)
2021-04-20 18:10:26 +02:00
Henry e1db5d5162 fix muxrpc tests 2021-04-19 15:00:35 +02:00
Henry 52ec94e878 fix link generation for alias registration
fixes #160
2021-04-19 15:00:35 +02:00
cblgh dfddd63225 fix up old test exhibiting a false positive 2021-04-13 09:04:40 +02:00
cblgh 462f9be27f test: verify denied keys can't get endpoint 2021-04-13 09:04:40 +02:00
cblgh 8508987b9c refactor muxrpc tests 2021-04-13 09:04:40 +02:00
cblgh 5e4b48c1b8 update test util to match new mksrv signature 2021-04-07 12:58:03 +02:00
cblgh 1b366dcf9f wip fix tests after new roomdb.RoomConfig interface added 2021-04-06 17:21:41 +02:00
Henry 377f3512a2 remove member nickname and alias suggestion
insert-user: remove nickname
2021-03-29 15:53:33 +02:00
Henry 4325e0fb3d various fixes
* fill in sid and sc
* fix logout
* cascade member removal
* fix links
* trim suffix from signature
* fix /sse/login link
* fix sse links and filenames
* fix logout
* fix typos
* fix test compilation
* fix bridge test
* correct alias url test
* add some comments
* fix potentiall "can't send" deadlock on bridge

some documentation and license headers
2021-03-26 13:45:17 +01:00
Henry abaff98f77 move aliases signing to internal 2021-03-23 17:13:06 +01:00
Henry 0065312db1 change muxrpc room.registerAlias to return the resolve URL 2021-03-23 16:50:25 +01:00
Henry a0be3e998b various fixes 2021-03-22 13:02:39 +01:00
Henry 8f4c60e710 muxrpc changes 2021-03-22 13:02:39 +01:00
Henry 6fe202cead license headers 2021-03-16 08:49:47 +01:00
Henry 71c013ee81 some polish 2021-03-16 08:49:47 +01:00
Henry 8335a74c0e add test for alias registration over muxrpc 2021-03-16 08:49:40 +01:00
Henry 033efe5145 muxrcp: alias.register
* re-work muxrpc handler registration
* update muxrpc tests
2021-03-16 08:49:18 +01:00
Henry 23c7e02c45 rename muxrpc packages 2021-03-10 16:57:49 +01:00