Skip to content
Snippets Groups Projects
Commit 359bcb16 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5322 enable dummy document processor by configuration only

parent 6ac79b3f
No related branches found
No related tags found
No related merge requests found
package de.ozgcloud.bescheid.dummy;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
import com.google.common.net.MediaType;
......@@ -12,7 +12,7 @@ import de.ozgcloud.bescheid.vorgang.Vorgang;
import de.ozgcloud.common.binaryfile.TempFileUtils;
@Service
@ConditionalOnMissingBean(type = "BescheidRemoteService")
@ConditionalOnProperty("ozgcloud.feature.bescheid.enable-dummy-document-processor")
class DummyBescheidRemoteService implements BescheidRemoteService {
private static final String DUMMY_BESCHEID_FILE_NAME = "dummy-bescheid.pdf";
......
......@@ -14,7 +14,6 @@ import javax.xml.xpath.XPathFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Primary;
import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
......@@ -50,7 +49,6 @@ import reactor.core.publisher.Mono;
@Log4j2
@Service
@Primary
@ConditionalOnProperty("ozgcloud.bescheid.smart-documents.url")
class SmartDocumentsBescheidRemoteService implements BescheidRemoteService {
......
......@@ -53,6 +53,9 @@ ozgcloud:
elasticsearch:
initEnabled: true
index: test-index
feature:
bescheid:
enable-dummy-document-processor: true
mongock:
......
......@@ -72,6 +72,7 @@ import de.ozgcloud.vorgang.vorgang.VorgangTestFactory;
"grpc.server.port=-1",
"grpc.client.ozgcloud-command-manager.address=in-process:test",
"grpc.client.vorgang-manager.address=in-process:test",
"ozgcloud.feature.bescheid.enable-dummy-document-processor=true",
})
@DataITCase
@DirtiesContext
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment