This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch postgresql
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 6848d8f36755976b7dcb370e52b674c55e55fd0e
Author: TungTV <vtt...@linagora.com>
AuthorDate: Thu Nov 28 09:05:41 2024 +0700

    JAMES-2586 - Update correct PostgresExtension mode (Disable RLS) for some 
test class
    
    - The RLS PostgresExtension for test case that use without domain part 
don't make sense
---
 .../james/mailbox/postgres/PostgresThreadIdGuessingAlgorithmTest.java   | 2 +-
 .../postgres/mail/PostgresMessageMapperRowLevelSecurityTest.java        | 2 +-
 .../org/apache/james/mailbox/postgres/mail/PostgresMessageMoveTest.java | 2 +-
 .../postgres/mail/task/PostgresRecomputeCurrentQuotasServiceTest.java   | 2 +-
 .../james/mailbox/postgres/user/PostgresSubscriptionMapperTest.java     | 2 +-
 .../james/vacation/postgres/PostgresNotificationRegistryTest.java       | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/PostgresThreadIdGuessingAlgorithmTest.java
 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/PostgresThreadIdGuessingAlgorithmTest.java
index 3d064e4e62..d9e5067c71 100644
--- 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/PostgresThreadIdGuessingAlgorithmTest.java
+++ 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/PostgresThreadIdGuessingAlgorithmTest.java
@@ -56,7 +56,7 @@ import reactor.core.publisher.Flux;
 
 public class PostgresThreadIdGuessingAlgorithmTest extends 
ThreadIdGuessingAlgorithmContract {
     @RegisterExtension
-    static PostgresExtension postgresExtension = 
PostgresExtension.withRowLevelSecurity(PostgresMailboxAggregateModule.MODULE);
+    static PostgresExtension postgresExtension = 
PostgresExtension.withoutRowLevelSecurity(PostgresMailboxAggregateModule.MODULE);
 
     private PostgresMailboxManager mailboxManager;
     private PostgresThreadDAO.Factory threadDAOFactory;
diff --git 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/PostgresMessageMapperRowLevelSecurityTest.java
 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/PostgresMessageMapperRowLevelSecurityTest.java
index d096645bfe..3023cd717a 100644
--- 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/PostgresMessageMapperRowLevelSecurityTest.java
+++ 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/PostgresMessageMapperRowLevelSecurityTest.java
@@ -58,7 +58,7 @@ import org.junit.jupiter.api.extension.RegisterExtension;
 public class PostgresMessageMapperRowLevelSecurityTest {
     private static final int BODY_START = 16;
     private static final UidValidity UID_VALIDITY = UidValidity.of(42);
-    private static final Username BENWA = Username.of("benwa");
+    private static final Username BENWA = Username.of("be...@domain.org");
     protected static final MailboxPath benwaInboxPath = 
MailboxPath.forUser(BENWA, "INBOX");
     private static final MailboxSession aliceSession = 
MailboxSessionUtil.create(Username.of("alice@domain1"));
     private static final MailboxSession bobSession = 
MailboxSessionUtil.create(Username.of("bob@domain1"));
diff --git 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/PostgresMessageMoveTest.java
 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/PostgresMessageMoveTest.java
index b9c87c578f..bb524ca6c6 100644
--- 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/PostgresMessageMoveTest.java
+++ 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/PostgresMessageMoveTest.java
@@ -28,7 +28,7 @@ import org.junit.jupiter.api.extension.RegisterExtension;
 class PostgresMessageMoveTest extends MessageMoveTest {
 
     @RegisterExtension
-    static PostgresExtension postgresExtension = 
PostgresExtension.withRowLevelSecurity(PostgresMailboxAggregateModule.MODULE);
+    static PostgresExtension postgresExtension = 
PostgresExtension.withoutRowLevelSecurity(PostgresMailboxAggregateModule.MODULE);
 
     @Override
     protected MapperProvider createMapperProvider() {
diff --git 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/task/PostgresRecomputeCurrentQuotasServiceTest.java
 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/task/PostgresRecomputeCurrentQuotasServiceTest.java
index 0f4b8243d4..5055c77abc 100644
--- 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/task/PostgresRecomputeCurrentQuotasServiceTest.java
+++ 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/task/PostgresRecomputeCurrentQuotasServiceTest.java
@@ -53,7 +53,7 @@ import com.google.common.collect.ImmutableSet;
 class PostgresRecomputeCurrentQuotasServiceTest implements 
RecomputeCurrentQuotasServiceContract {
 
     @RegisterExtension
-    static PostgresExtension postgresExtension = 
PostgresExtension.withRowLevelSecurity(PostgresModule.aggregateModules(
+    static PostgresExtension postgresExtension = 
PostgresExtension.withoutRowLevelSecurity(PostgresModule.aggregateModules(
         PostgresMailboxAggregateModule.MODULE,
         PostgresQuotaModule.MODULE,
         PostgresUserModule.MODULE));
diff --git 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/user/PostgresSubscriptionMapperTest.java
 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/user/PostgresSubscriptionMapperTest.java
index f4fbebb434..282d5cbfa4 100644
--- 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/user/PostgresSubscriptionMapperTest.java
+++ 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/user/PostgresSubscriptionMapperTest.java
@@ -27,7 +27,7 @@ import org.junit.jupiter.api.extension.RegisterExtension;
 public class PostgresSubscriptionMapperTest extends SubscriptionMapperTest {
 
     @RegisterExtension
-    static PostgresExtension postgresExtension = 
PostgresExtension.withRowLevelSecurity(PostgresSubscriptionModule.MODULE);
+    static PostgresExtension postgresExtension = 
PostgresExtension.withoutRowLevelSecurity(PostgresSubscriptionModule.MODULE);
 
     @Override
     protected SubscriptionMapper createSubscriptionMapper() {
diff --git 
a/server/data/data-postgres/src/test/java/org/apache/james/vacation/postgres/PostgresNotificationRegistryTest.java
 
b/server/data/data-postgres/src/test/java/org/apache/james/vacation/postgres/PostgresNotificationRegistryTest.java
index 84599f1a67..d9a18faa70 100644
--- 
a/server/data/data-postgres/src/test/java/org/apache/james/vacation/postgres/PostgresNotificationRegistryTest.java
+++ 
b/server/data/data-postgres/src/test/java/org/apache/james/vacation/postgres/PostgresNotificationRegistryTest.java
@@ -30,7 +30,7 @@ import org.junit.jupiter.api.extension.RegisterExtension;
 
 class PostgresNotificationRegistryTest implements NotificationRegistryContract 
{
     @RegisterExtension
-    static PostgresExtension postgresExtension = 
PostgresExtension.withRowLevelSecurity(PostgresModule.aggregateModules(PostgresVacationModule.MODULE));
+    static PostgresExtension postgresExtension = 
PostgresExtension.withoutRowLevelSecurity(PostgresModule.aggregateModules(PostgresVacationModule.MODULE));
 
     NotificationRegistry notificationRegistry;
     RecipientId recipientId;


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to