This is an automated email from the ASF dual-hosted git repository. hqtran pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit a68813ce39fc53face27e0b26a260e4280ee1145 Author: Quan Tran <[email protected]> AuthorDate: Thu Sep 18 11:43:57 2025 +0700 [BUILD] [james-server-distributed-app] Compact Cassandra + passThrough mode blob store tests --- ...CassandraPassThroughBlobStoreImmutableTest.java | 47 ---------------------- ... => WithCassandraPassThroughBlobStoreTest.java} | 2 +- 2 files changed, 1 insertion(+), 48 deletions(-) diff --git a/server/apps/distributed-app/src/test/java/org/apache/james/WithCassandraPassThroughBlobStoreImmutableTest.java b/server/apps/distributed-app/src/test/java/org/apache/james/WithCassandraPassThroughBlobStoreImmutableTest.java deleted file mode 100644 index bb5f10b2b7..0000000000 --- a/server/apps/distributed-app/src/test/java/org/apache/james/WithCassandraPassThroughBlobStoreImmutableTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/**************************************************************** - * Licensed to the Apache Software Foundation (ASF) under one * - * or more contributor license agreements. See the NOTICE file * - * distributed with this work for additional information * - * regarding copyright ownership. The ASF licenses this file * - * to you under the Apache License, Version 2.0 (the * - * "License"); you may not use this file except in compliance * - * with the License. You may obtain a copy of the License at * - * * - * http://www.apache.org/licenses/LICENSE-2.0 * - * * - * Unless required by applicable law or agreed to in writing, * - * software distributed under the License is distributed on an * - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * - * KIND, either express or implied. See the License for the * - * specific language governing permissions and limitations * - * under the License. * - ****************************************************************/ - -package org.apache.james; - -import org.apache.james.jmap.JmapJamesServerContract; -import org.apache.james.modules.RabbitMQExtension; -import org.apache.james.modules.TestJMAPServerModule; -import org.apache.james.modules.blobstore.BlobStoreConfiguration; -import org.junit.jupiter.api.extension.RegisterExtension; - -public class WithCassandraPassThroughBlobStoreImmutableTest implements JmapJamesServerContract, JamesServerConcreteContract, CassandraMessageOperationsContract { - @RegisterExtension - static JamesServerExtension jamesServerExtension = new JamesServerBuilder<CassandraRabbitMQJamesConfiguration>(tmpDir -> - CassandraRabbitMQJamesConfiguration.builder() - .workingDirectory(tmpDir) - .configurationFromClasspath() - .blobStore(BlobStoreConfiguration.cassandra() - .passthrough() - .noCryptoConfig()) - .searchConfiguration(SearchConfiguration.openSearch()) - .build()) - .server(configuration -> CassandraRabbitMQJamesServerMain.createServer(configuration) - .overrideWith(new TestJMAPServerModule()) - .overrideWith(new TestingSessionModule())) - .extension(new DockerOpenSearchExtension()) - .extension(new CassandraExtension()) - .extension(new RabbitMQExtension()) - .lifeCycle(JamesServerExtension.Lifecycle.PER_CLASS) - .build(); -} diff --git a/server/apps/distributed-app/src/test/java/org/apache/james/WithCassandraPassThroughBlobStoreMutableTest.java b/server/apps/distributed-app/src/test/java/org/apache/james/WithCassandraPassThroughBlobStoreTest.java similarity index 97% rename from server/apps/distributed-app/src/test/java/org/apache/james/WithCassandraPassThroughBlobStoreMutableTest.java rename to server/apps/distributed-app/src/test/java/org/apache/james/WithCassandraPassThroughBlobStoreTest.java index 91c831b02d..83a11139ad 100644 --- a/server/apps/distributed-app/src/test/java/org/apache/james/WithCassandraPassThroughBlobStoreMutableTest.java +++ b/server/apps/distributed-app/src/test/java/org/apache/james/WithCassandraPassThroughBlobStoreTest.java @@ -48,7 +48,7 @@ import com.datastax.oss.driver.api.core.CqlSession; import com.google.common.collect.ImmutableList; import com.google.common.io.Resources; -public class WithCassandraPassThroughBlobStoreMutableTest implements MailsShouldBeWellReceivedConcreteContract, CassandraMessageOperationsContract { +public class WithCassandraPassThroughBlobStoreTest implements MailsShouldBeWellReceivedConcreteContract, CassandraMessageOperationsContract { private static final String JAMES_SERVER_HOST = "127.0.0.1"; private static final String YET_ANOTHER_USER = "yet-another-user@" + DOMAIN; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
