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 84d92fb8c2b2b85aee7ab6d7933ce8d56408192a Author: Benoit Tellier <btell...@linagora.com> AuthorDate: Thu Jul 23 11:39:35 2020 +0700 JAMES-3343 BlobStoreConfiguration validation StartUpCheck --- ...obStoreConfigurationValidationStartUpCheck.java | 36 ++++++++++++++++++++++ .../distributed/DistributedSessionRouteTest.java | 6 +++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/server/container/guice/cassandra-rabbitmq-guice/src/main/java/org/apache/james/modules/blobstore/validation/BlobStoreConfigurationValidationStartUpCheck.java b/server/container/guice/cassandra-rabbitmq-guice/src/main/java/org/apache/james/modules/blobstore/validation/BlobStoreConfigurationValidationStartUpCheck.java new file mode 100644 index 0000000..12ddf4e --- /dev/null +++ b/server/container/guice/cassandra-rabbitmq-guice/src/main/java/org/apache/james/modules/blobstore/validation/BlobStoreConfigurationValidationStartUpCheck.java @@ -0,0 +1,36 @@ +/**************************************************************** + * 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.modules.blobstore.validation; + +import org.apache.james.lifecycle.api.StartUpCheck; + +public class BlobStoreConfigurationValidationStartUpCheck implements StartUpCheck { + private static final String BLOB_STORE_CONFIGURATION_VALIDATION = "blobStore-configuration-validation"; + + @Override + public CheckResult check() { + return null; + } + + @Override + public String checkName() { + return BLOB_STORE_CONFIGURATION_VALIDATION; + } +} diff --git a/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/src/test/java/org/apache/james/jmap/rfc8621/distributed/DistributedSessionRouteTest.java b/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/src/test/java/org/apache/james/jmap/rfc8621/distributed/DistributedSessionRouteTest.java index 27d9664..70d6410 100644 --- a/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/src/test/java/org/apache/james/jmap/rfc8621/distributed/DistributedSessionRouteTest.java +++ b/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/src/test/java/org/apache/james/jmap/rfc8621/distributed/DistributedSessionRouteTest.java @@ -39,7 +39,11 @@ public class DistributedSessionRouteTest implements SessionRoutesContract { CassandraRabbitMQJamesConfiguration.builder() .workingDirectory(tmpDir) .configurationFromClasspath() - .blobStore(BlobStoreConfiguration.builder().objectStorage().disableCache().passthrough()) + .blobStore(BlobStoreConfiguration + .builder() + .objectStorage() + .disableCache() + .passthrough()) .searchConfiguration(SearchConfiguration.elasticSearch()) .build()) .extension(new DockerElasticSearchExtension()) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org