From aa14fa105df71f344b75e8015c129c4c0504037d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 20 Aug 2024 16:23:17 +0200 Subject: [PATCH 1/5] Revert "fix: deactivate broken test and remove test platform config" This reverts commit 37625403d631f3961aed3ac9e2e60bc6de42233a. Signed-off-by: Marcel Hibbe From d65f1797431832eaf4c831c1556568c780e60dfc Mon Sep 17 00:00:00 2001 From: rapterjet2004 Date: Tue, 20 Aug 2024 11:29:52 -0500 Subject: [PATCH 2/5] fixed CI Signed-off-by: rapterjet2004 Signed-off-by: Marcel Hibbe --- .../com/nextcloud/talk/utils/ParticipantPermissionsTest.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/test/java/com/nextcloud/talk/utils/ParticipantPermissionsTest.kt b/app/src/test/java/com/nextcloud/talk/utils/ParticipantPermissionsTest.kt index 2b4ab0b395..3cb84fba90 100644 --- a/app/src/test/java/com/nextcloud/talk/utils/ParticipantPermissionsTest.kt +++ b/app/src/test/java/com/nextcloud/talk/utils/ParticipantPermissionsTest.kt @@ -7,6 +7,8 @@ */ package com.nextcloud.talk.utils +import com.nextcloud.talk.data.user.model.User +import com.nextcloud.talk.models.domain.ConversationModel import com.nextcloud.talk.models.json.capabilities.SpreedCapability import com.nextcloud.talk.models.json.conversations.Conversation import junit.framework.TestCase @@ -22,10 +24,13 @@ class ParticipantPermissionsTest : TestCase() { ParticipantPermissions.JOIN_CALL or ParticipantPermissions.DEFAULT + val user = User() + user.id = 1 + val attendeePermissions = ParticipantPermissions( spreedCapability, - conversation + ConversationModel.mapToConversationModel(conversation, user) ) assert(attendeePermissions.canPublishScreen) From e06de7cf278805cf25ca27644ac8e15f22278b9e Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Tue, 20 Aug 2024 20:31:01 +0200 Subject: [PATCH 3/5] chore: Update metadata Signed-off-by: Andy Scherzinger Signed-off-by: Marcel Hibbe --- gradle/verification-keyring.keys | 154 +++++++++++++++++++++++++++++++ gradle/verification-metadata.xml | 1 + 2 files changed, 155 insertions(+) diff --git a/gradle/verification-keyring.keys b/gradle/verification-keyring.keys index b74caf80be..077e6250e5 100644 --- a/gradle/verification-keyring.keys +++ b/gradle/verification-keyring.keys @@ -387,6 +387,60 @@ HdZk2xusuOEx27cIovRPHwvLcgY+4u3j =oNWb -----END PGP PUBLIC KEY BLOCK----- +pub 928B20E9AD5298CC +sub 0AA3E5C3D232E79B +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: BCPG v@RELEASE_NAME@ + +mQINBF04lUwBEAC0RF88RYNbBpBPj/tVG7R+jfMeuVm0Q7hpFtMH3XWpg8um9lPa +yLkyIk4LJ3feiCc2QJ15Gu82YXBnbHf+Kn7S5hc/sIqnF+Xz3rcfHkOIYRQGxiq6 +0NR/1l5zyDJ4RHgnK2Lp/PTlH8msym97e8RpXyvK6+EN1UrK4dpZawZGjnMQGqyl +gCRi7G6XQuoHe1JVhuTQ4bFO6lOtwQy0n/L5VY/odOPTYDUo6p7fJ1n1NMdQYMIb +G5WXpxYvT7ZAcncjd/cK2iuBjrxIE8aUisa21hFFWoi1Qlxbzrjl8NPgH8tp1kxF +y9Yr2hHYJXB8no+KZ5pjoA7DDTCZ9u7vANsg5oQ82YPu3qsSC7GDZ7uZXBbkShhR +zyMeldN22SCxPeMLujkl0hExenUd67YF69i5YHyZ2HWOOZwTDN8ZZObGk1W4SHvO +B985czkSbv/UytROIn1umvv/LGDnxsZqIC9JzbdV4IREX4+XwQ/sAYuEmXrdt2J0 +tgS91Nr22wxhfnQVieV3pFPTQCtAbjC+o7rfWc6i12BAZG1SxxHdDRvdtXGwQZmN ++9E+GPQOUbXNw7nLxaV/Oe0D8Pz7W1UGlouysFRKSgwhqb4HRU1/9Y3I6uEE80+b +M8aO08zXf5Vw4B2U+Z+Xv+vkMkynQTELSM4v1DEdiaOxQNKbrtAg00PMCQARAQAB +uQINBF04lVoBEACtqdBnYt5lBPIl4V5Gy3k/hcw9lpkmsCrUZ7C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sz40APEbrMCv7TMVTAJ +yOYoDoAxroErhnWqc250vsYhlgtz6LPeFWKjK2GA/bORObNMHA== +=Y1uz +-----END PGP PUBLIC KEY BLOCK----- + pub 928FBF39003C0425 uid Spring Builds (JAR Signing) @@ -1272,6 +1326,48 @@ IprKXtD8103BdNqrPJev2azwqWwxFpN83tEPbK4SwWPgk1nSELXZZ5ClcDgqatg+ =uOQ4 -----END PGP PUBLIC KEY BLOCK----- +pub B943F5CB616566CD +sub D73B23600E60600B +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: BCPG v@RELEASE_NAME@ + +mQINBGAc6SABEAChVqKPKOBNTaP8H0ERt6nFhvRMycGYxv/hK4rokUBOtr09ourW +VkdKmC81jS7tK/gNAcM0JmwQ7qB7sZFNBFTB7AZipJvTdpNjxPmM120fBouZ67J0 +RlwMs1gydhgovZCjZKO+cNbPFD529/yyjMVB3oczxzLPBWaSp6Fq6bP7nYB2qKnA +sSIDebj4+aeErl8V7Qp3A2bHgBveMZBQuLHFg52T2+rFLcP2GU+i1irBbFGvIB6L +2j0yImzHrpEIhYz9I5s/slAggWzGf/8IdgMb4wKGRLr34cRjFTqYrMHUAJEGlUcv +5QXcVnQ9vWRRnI0pfWyRwFlggdCqCm9ArmYJqeatyhnpfEP/LE8fW82EOsJJ/l5a +O5KBWe7pGxvq2oMEV8J9QJKYlJymcEpeLb3y+7rlZLb2qAOznz2jbVXR5Niuq0/s +DkeVPkS9/VxmwAi03Ti7B+hBQqrXyvPL/g6xSuoHYmTNhRfPFN/oD0csh+Ayxgrp +OpM1FZ0/+ahyt/jbqSPiW895vuuHaA/GQFJP1+7G74L4WsR7ZziMcRnz8pUBzQCA +5yrVcD9+abN2tIAXNftJhQeZdyIxoTe2mty8MJfSi0VKHML+bWpkYLMkCoJ8jngM +pVf3loLKHeJAh+KndiEyrCedNU/nash1Kr/EvXTrfyA/R+q6SCxt7bgIiwARAQAB +uQINBGAc6SABEAC/CnL5cqk5N9NocvTEWue7bOx4YTVnj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VYim+YOvodOEiFYWqrx1jMhH1GC7XWu8LonsHQVxSG+iLL2UNoIeOcD6 +MeFDXYMA6P/ZijBkbnu7KUPaNZxOuQbFzmchrAlWaBoJcbMQtoAFZOz0qWs8cFd7 +29RcOvT1wGiOaBLmR1xbXcJxhofUCwbma1ode2+ye1DXIIeE7/OVVGURYrVrVbRx +rK+M/k8L3H0318GUweeuj0MZ+chxDFLWIE1eXPkzMF0GgGFKkIJMX2eKp1xyhxj+ +28qijxe7YFVBK8LEuyWUMU+oxIojZEr4Wa28AYvqs32UtRyjT1kbm67mav752UPG +Ts2AQo9RvCeonVI7Q1CkIHt8u7eMgzfEkaiPLZlI0l0RpfT4pnNieqg= +=bif8 +-----END PGP PUBLIC KEY BLOCK----- + pub BCF4173966770193 sub C9F04E6E2DC4F7F8 -----BEGIN PGP PUBLIC KEY BLOCK----- @@ -1844,6 +1940,51 @@ ikmfPIGVw73RF3HXjJ8GVqTkqbo4ZpgTw/7Z3+fAYE/vxquhnpl2HvE= =5tlI -----END PGP PUBLIC KEY BLOCK----- +pub D4DA5EAB3CD7E958 +uid Jiaxiang Chen + +sub D826E3935EE9DC71 +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: BCPG v@RELEASE_NAME@ + +mQINBGETEF0BEADoVhSwI5d3PZTca1W/1HvIf5UiTJrSlZby9xRdSbfJ0dj7V0QG +aY1tsOcLLuIkj+/wDJuATokYx6IiGnntorQcLg3b0XMoPqzTVDl4lnKcNIsh/kxD +FqsWgEy43sRf/72nlQ9XoDxQITpGpZRMALTNGmuNznEBu1lPMo71/n4CmvYUtyKF +st6LqsA9ft7nVmsJrwU009ejD2Ik0nRra3euFQ+uPJ9QM5kdgyv63GsRpLMT2nMk +Iv64IoeM6hsBgggA/BvBcrDv776rR6Sjcw6QldLKmf6JgKekRgmIBFayxpuC2KWI +OcJK/UzKCab0sUlxBBy4UjoIiB4vLinqvMbQ0z8imELvGUW/R+AbaZ5ra7gTk6mh +6dUjnFOaQizbDG8BST/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AEQEAAYkCNgQYAQoAIBYh +BA1dY0dVc3oZq74pMNTaXqs81+lYBQJhExBdAhsMAAoJENTaXqs81+lYUUAP/R7N +TPZkdo2BUYF5vnTjyA6JMznnxRSC70z2JjPj0DIenzjOJ5p3E3rd5Gxa/tJIh2rL +0Zwj0p2gam1BHZZFoBtRyNP7Gnkq+L2yHih7JfgCDOaxVppx/xNMqBUaD6X3E1uy +mzNYm85OI7H0aVpQj81rqWq9r8Nbtykt6FKqB3YjaIX6GtUqMWZDJ9BXiFvEhhZs +BdhEFbFwXwBCoIcrsH4oBKj1FC990pH98SQ7AfHn5PJTzJkP3ditDYJOLYwJ7ft3 +blQ5PrWp3HUag2xdXwVrQxcg2ZYhWpOOURmes2C0s2KIMVMS1K4nWAgjrrZ5W/a/ +q8qAI5HKTG4WmMxeoLJpRB8MAUAZ1yHhw0ypNmYG9ZzwfAkBDQWYzANPKKQS4f3m +vJl8HTv3FJh+uX/QBf8DwzdtfI1vzPF8QKCXL5PcTcuCjYT7uuqz1ffyj9veBgAw +sZzwjhFkc7tus2w52ydx85xtGq5BO4/+qKB+lr2fZ1YZWIjbCw51RwKrLyOYQdmT +1NqlUja3lWI0/h/IpbVIIsQfDM3pjUcOCsBMTixn3w9vzNwxAixJow2XfQxTyl5z +j7oRrVDTIHOxZqRVVz4Zvy6RkPKTkDoSb0wgBKpLHXhCJv8WM+MbFHeI3Jje+EHo +WhVfu3jhpYE20kLZPWMTu6amKPK3dSJ4aIDjkosy +=Jp6+ +-----END PGP PUBLIC KEY BLOCK----- + pub D9B2BC72A3754BEA uid Lukasz Piliszczuk @@ -3733,6 +3874,19 @@ VZTvAGH69TDqVvdmLsKhtQidSFbes+7ku5tM61P6ggfv5FJQgQk7WEQ= =k4Pb -----END PGP PUBLIC KEY BLOCK----- +pub 23778689FBFBE047 +sub 40D34E692FCBA56E +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: BCPG v@RELEASE_NAME@ + +mDMEZXgxpxYJKwYBBAHaRw8BAQdAbIycVyFgMJnhB7aqYPz+dU9MIlsok/qclCuI +IsilKgS4OARleDGnEgorBgEEAZdVAQUBAQdA3w+8KkqAyic6PWfjlTbhe1upf6Rr +Qt0Dqns3NoQYoU0DAQgHiHgEGBYKACAWIQSxcTbQYVNVgQHbffcjd4aJ+/vgRwUC +ZXgxpwIbDAAKCRAjd4aJ+/vgR/CkAQD79gNi5NkEtK8jqYIYc4HJyHx8LuNov7Wh +A5u9ZhIgTwEAhjiQCoCjYE/F9u0Y8fQrlalxahFEfM+qf31PB6fF7Qw= +=60bi +-----END PGP PUBLIC KEY BLOCK----- + pub 280D66A55F5316C5 -----BEGIN PGP PUBLIC KEY BLOCK----- Version: BCPG v@RELEASE_NAME@ diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index e89bbbfc87..a8c113c872 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -36,6 +36,7 @@ + From 5e9aec16df6343895f5beae0d269b23161c6af29 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Thu, 5 Sep 2024 14:42:29 +0200 Subject: [PATCH 4/5] add junit-vintage-engine + remove duplicated junit dependency Signed-off-by: Marcel Hibbe --- app/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/app/build.gradle b/app/build.gradle index 684f322831..7b18b1cb7f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -365,6 +365,7 @@ dependencies { testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion" testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version" + testImplementation 'org.junit.vintage:junit-vintage-engine:5.10.0' } tasks.register('installGitHooks', Copy) { From deb6403f0e149c99b79f79f07ccab4709efbf9d2 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Thu, 5 Sep 2024 14:43:05 +0200 Subject: [PATCH 5/5] add dummy initialization of Conversation Signed-off-by: Marcel Hibbe [skip ci] --- .../talk/utils/ParticipantPermissionsTest.kt | 50 ++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/app/src/test/java/com/nextcloud/talk/utils/ParticipantPermissionsTest.kt b/app/src/test/java/com/nextcloud/talk/utils/ParticipantPermissionsTest.kt index 3cb84fba90..0e39963f71 100644 --- a/app/src/test/java/com/nextcloud/talk/utils/ParticipantPermissionsTest.kt +++ b/app/src/test/java/com/nextcloud/talk/utils/ParticipantPermissionsTest.kt @@ -11,6 +11,8 @@ import com.nextcloud.talk.data.user.model.User import com.nextcloud.talk.models.domain.ConversationModel import com.nextcloud.talk.models.json.capabilities.SpreedCapability import com.nextcloud.talk.models.json.conversations.Conversation +import com.nextcloud.talk.models.json.conversations.ConversationEnums +import com.nextcloud.talk.models.json.participants.Participant import junit.framework.TestCase import org.junit.Test @@ -19,7 +21,53 @@ class ParticipantPermissionsTest : TestCase() { @Test fun test_areFlagsSet() { val spreedCapability = SpreedCapability() - val conversation = Conversation(null, null) + val conversation = Conversation( + token = "test", + name = "test", + displayName = "test", + description = "test", + type = ConversationEnums.ConversationType.DUMMY, + lastPing = 1, + participantType = Participant.ParticipantType.DUMMY, + hasPassword = true, + sessionId = "test", + actorId = "test", + actorType = "test", + password = "test", + favorite = false, + lastActivity = 1, + unreadMessages = 1, + unreadMention = false, + lastMessage = null, + objectType = ConversationEnums.ObjectType.DEFAULT, + notificationLevel = ConversationEnums.NotificationLevel.ALWAYS, + conversationReadOnlyState = ConversationEnums.ConversationReadOnlyState.CONVERSATION_READ_WRITE, + lobbyState = ConversationEnums.LobbyState.LOBBY_STATE_ALL_PARTICIPANTS, + lobbyTimer = 1, + lastReadMessage = 1, + lastCommonReadMessage = 1, + hasCall = true, + callFlag = 1, + canStartCall = false, + canLeaveConversation = true, + canDeleteConversation = true, + unreadMentionDirect = true, + notificationCalls = 1, + permissions = 1, + messageExpiration = 1, + status = "test", + statusIcon = "test", + statusMessage = "test", + statusClearAt = 1, + callRecording = 1, + avatarVersion = "test", + hasCustomAvatar = true, + callStartTime = 1, + recordingConsentRequired = 1, + remoteServer = "", + remoteToken = "" + ) + conversation.permissions = ParticipantPermissions.PUBLISH_SCREEN or ParticipantPermissions.JOIN_CALL or ParticipantPermissions.DEFAULT