You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2023/08/15 02:47:43 UTC

[james-project] branch master updated (fe81acf426 -> b990ccdfe9)

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

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


    from fe81acf426 Move blocking mail items polling operation to boundedElastic
     new a4c03bb018 [BUILD] Increase memory of Cassandra Docker container to 1GB
     new c6cfeaefb4 [FIX] Safer to test no delay with Requeue mailet with a little offset
     new b990ccdfe9 [FIX] Some S3 like object storage, like MinIO, don't accept underscores in their bucket names

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../test/java/org/apache/james/backends/cassandra/DockerCassandra.java | 2 +-
 .../java/org/apache/james/blob/api/DeleteBlobStoreDAOContract.java     | 2 +-
 .../test/java/org/apache/james/blob/objectstorage/aws/S3MinioTest.java | 1 -
 .../src/test/java/org/apache/james/transport/mailets/RequeueTest.java  | 3 ++-
 4 files changed, 4 insertions(+), 4 deletions(-)


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


[james-project] 03/03: [FIX] Some S3 like object storage, like MinIO, don't accept underscores in their bucket names

Posted by rc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit b990ccdfe99be02bca2441509206263cc0d67ad8
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Wed Aug 9 14:40:44 2023 +0700

    [FIX] Some S3 like object storage, like MinIO, don't accept underscores in their bucket names
---
 .../test/java/org/apache/james/blob/api/DeleteBlobStoreDAOContract.java | 2 +-
 .../test/java/org/apache/james/blob/objectstorage/aws/S3MinioTest.java  | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/server/blob/blob-api/src/test/java/org/apache/james/blob/api/DeleteBlobStoreDAOContract.java b/server/blob/blob-api/src/test/java/org/apache/james/blob/api/DeleteBlobStoreDAOContract.java
index 36c2b6d8c3..4a04a82c13 100644
--- a/server/blob/blob-api/src/test/java/org/apache/james/blob/api/DeleteBlobStoreDAOContract.java
+++ b/server/blob/blob-api/src/test/java/org/apache/james/blob/api/DeleteBlobStoreDAOContract.java
@@ -63,7 +63,7 @@ public interface DeleteBlobStoreDAOContract {
     default void deleteShouldNotThrowWhenBucketDoesNotExist() {
         BlobStoreDAO store = testee();
 
-        assertThatCode(() -> Mono.from(store.delete(BucketName.of("not_existing_bucket_name"), TEST_BLOB_ID)).block())
+        assertThatCode(() -> Mono.from(store.delete(BucketName.of("not-existing-bucket-name"), TEST_BLOB_ID)).block())
             .doesNotThrowAnyException();
     }
 
diff --git a/server/blob/blob-s3/src/test/java/org/apache/james/blob/objectstorage/aws/S3MinioTest.java b/server/blob/blob-s3/src/test/java/org/apache/james/blob/objectstorage/aws/S3MinioTest.java
index 3c3ff47c97..f85c656e03 100644
--- a/server/blob/blob-s3/src/test/java/org/apache/james/blob/objectstorage/aws/S3MinioTest.java
+++ b/server/blob/blob-s3/src/test/java/org/apache/james/blob/objectstorage/aws/S3MinioTest.java
@@ -119,5 +119,4 @@ public class S3MinioTest implements BlobStoreDAOContract {
             .then()
             .block();
     }
-
 }


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


[james-project] 01/03: [BUILD] Increase memory of Cassandra Docker container to 1GB

Posted by rc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a4c03bb0189c80960ba7a5aa3abf3e520a79ab29
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Wed Aug 9 10:14:29 2023 +0700

    [BUILD] Increase memory of Cassandra Docker container to 1GB
---
 .../test/java/org/apache/james/backends/cassandra/DockerCassandra.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandra.java b/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandra.java
index d654529c82..8c1b69b4e0 100644
--- a/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandra.java
+++ b/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandra.java
@@ -123,7 +123,7 @@ public class DockerCassandra {
     }
 
     private static final int CASSANDRA_PORT = 9042;
-    private static final int CASSANDRA_MEMORY = 750;
+    private static final int CASSANDRA_MEMORY = 1024;
 
     private static final String CASSANDRA_CONFIG_DIR = "$CASSANDRA_CONFIG";
     private static final String JVM_OPTIONS = CASSANDRA_CONFIG_DIR + "/jvm.options";


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


[james-project] 02/03: [FIX] Safer to test no delay with Requeue mailet with a little offset

Posted by rc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit c6cfeaefb412eaa9495a03b057030bcefa47c32f
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Thu Aug 10 09:14:29 2023 +0700

    [FIX] Safer to test no delay with Requeue mailet with a little offset
    
    That test is unstable and breaks sometimes with a value of 1 seconds. Maybe our build is too heavy and there can be some little latency sometimes, we should relax a bit the testing constraint.
---
 .../src/test/java/org/apache/james/transport/mailets/RequeueTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/RequeueTest.java b/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/RequeueTest.java
index 28933420d6..92b6e158bf 100644
--- a/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/RequeueTest.java
+++ b/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/RequeueTest.java
@@ -20,6 +20,7 @@
 package org.apache.james.transport.mailets;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.data.Offset.offset;
 
 import java.io.IOException;
 import java.time.Duration;
@@ -179,7 +180,7 @@ class RequeueTest {
             .block();
 
         assertThat(mailQueueItem).isNotNull();
-        assertThat(Duration.between(enqueueTime, dequeueTime.get()).abs().toSeconds()).isZero();
+        assertThat(Duration.between(enqueueTime, dequeueTime.get()).abs().toSeconds()).isCloseTo(0L, offset(1L));
     }
 
     @Test


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