summaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)Author
2020-12-15Merge pull request #4762 from ↵Vincent Petry
nextcloud/bugfix/noid/allow-to-respond-with-modified-common-read-value Allow to respond with modified common read value on "not modified" messages
2020-12-15Allow to respond with modified common read value on "not modified" messagesJoas Schilling
We need to set the status code to 200 when the header is modified, because as per "section 10.3.5 of RFC 2616" entity headers shall be stripped out on 304: https://stackoverflow.com/a/17822709 This means the header would not be sent to the clients at all, so they wouldn't update the read marker when idling in the chat. For the web interface this is not needed, as we update the info every 30 seconds with the conversation list refresh and can therefor save the query Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-14Add a capability for the phonebook searchJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-11Small adjustments to listable feature after reviewsVincent Petry
Co-authored-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Changed wording to say visible instead of listableVincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Fix tests for listable conversationsVincent Petry
Fix number detection in participantType tests The guests app is now enabled. The spreed app is whitelisted for guest account users. A password is now set for the guest account users to be able to log in properly. Added system message tests for listable and read-only attributes. Added tests scenarios for permission checks and room type checks before setting listable attribute. Added integration tests for /listed-rooms endpoint Covers permissions to search and also with and without search terms. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Abort php test server on ctrl+cVincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Extend spreedcheats to allow creating guest account usersVincent Petry
Added a spreedcheats endpoint to allow creating guest account users for integration tests. Grabs the GuestManager from the guests app to create a guest user in the correct backend. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Added integration tests for joining listable roomsVincent Petry
Added guest app to CI for callapi tests. Added test scenarios for joining listable rooms. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Unit tests for system messagesVincent Petry
Bootstrap SystemMessage/ListenerTest. Add test cases for user add event. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Apply suggestions from code review of listable rooms featureVincent Petry
Always join as USER when joining group or public room Allow nulls for Oracle Changes after review Removed populateBaseRoomData and reused the existing code by adding an extra condition for when querying listable rooms with null participant. Co-authored-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Adjustments for listable rooms after reviewVincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Added search provider for listed conversationsVincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Add listable flags attribute for conversationsVincent Petry
Added ability to set a conversation as listable for regular users and/or guest users from the guest app. This only implements the flag, endpoint and UI to manage it but not yet making it appear in search results. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-11Merge pull request #4735 from nextcloud/techdebt/noid/cluster-compatibilityVincent Petry
Create a new table for internal signaling and guest names with a PK
2020-12-10Add integration tests for the read status of messagesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-10Add a capability for the chat-read-status and the user settingJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-09Create a new table for internal signaling and guest names with a PKJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-08Increase maximum description length to 500 charactersDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-12-08Fix typo in scenario namesDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-12-08Add system message when the description of a conversation is changedDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-12-08Add integration tests for description in occ commandsDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-12-08Return raw description also when getting the conversation listDaniel Calviño Sánchez
As the description length is limited and the response for the conversation list endpoint is gzip compressed the hash does not provide too much of a reduction, but introduces a more complex logic in the clients. Due to all this, for simplicity now the raw description is also returned when getting the conversation list. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-12-08Notify external signaling server when description changesDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-12-08Add integration tests for getting and setting the room descriptionDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-12-08Add integration test for getting room data when lobby is enabledDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-12-08Add description field to conversationsDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-12-08Update Spreed Cheats for 21Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-08Write integration tests for enabling SIPJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-08Make sure participant names are optional (required for v3)Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-01Fix unit testsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-30Add docs and capabilityJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-30Allow picking the API version on all endpointsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-30Make possible to fetch room data with a specific API versionDaniel Calviño Sánchez
By default API version 1 will be used. To use a specific API version " (v1)", " (v2)" or " (v3)" can be appended to the step name. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-27Merge pull request #4656 from ↵Joas Schilling
nextcloud/fix-user-management-in-password-request-rooms Fix user management in password request rooms
2020-11-26Update baselineJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-26Simplify getting the participantJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-26Fix baselineJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-26Update baselineJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-26Add a comment about the non-0 exit code of the talk:active-call commandJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-24Fix owner being able to add more users to a password request roomDaniel Calviño Sánchez
Only the owner and another participant will be allowed to join a password request room, so there is no point in being able to add more participants to those rooms. Although throwing the exception in the listener is enough to prevent adding the participants unhandled exceptions in the endpoint are returned as error 404, but the expected error would be 400. To minimize conflicts with other pull requests and backports it is explicitly checked if the room is a password request room instead of refactoring the code to handle the exception. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-24Fix additional participants being able to join a password request roomDaniel Calviño Sánchez
This fixes a regression introduced in 4afa2d7946. The active guests are only those who are currently in a call, and not those who are currently in the conversation. Therefore other guests or users were not prevented from joining a password request conversation if a guest was in the conversation but not in the call. Fortunately in practice this was not a problem, as the Web UI starts a call immediately after joining the conversation, which made the guest immediately active and thus prevented others from joining. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-24Add integration tests for password request roomsDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-24Make possible to verify room data also for single roomsDaniel Calviño Sánchez
Until now it was possible to verify the room data when getting the full room list with the "user is participant of the following rooms" step. Now the same can be optionally done when using "user is participant of room XXX" too. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-02Automatic cleanup Psalm baselineVincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-11-02Update Psalm baseline for listenerVincent Petry
Updated for some acceptable issues around the listener introduced by server side changes. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-10-30Only use the Mapper in the ServicesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30Fix the unit testsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30Remove talk:room:* unit tests as they don't work anymore and should be ↵Joas Schilling
integration tests mostly anyway Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30Add integration tests for creation (as that tests all parts of the service)Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>