Skip to content
Snippets Groups Projects
Commit 57ecf2b5 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5917 adjust ITCase

parent a0799b4d
No related branches found
No related tags found
No related merge requests found
...@@ -71,13 +71,14 @@ import de.ozgcloud.vorgang.files.OzgFile; ...@@ -71,13 +71,14 @@ import de.ozgcloud.vorgang.files.OzgFile;
import io.grpc.stub.StreamObserver; import io.grpc.stub.StreamObserver;
@SpringBootTest(classes = { VorgangManagerServerApplication.class, OsiPostfachProperties.class }, properties = { @SpringBootTest(classes = { VorgangManagerServerApplication.class, OsiPostfachProperties.class }, properties = {
"grpc.server.inProcessName=test", "grpc.server.in-process-name=postfachitcase",
"grpc.server.port=-1",
"ozgcloud.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message", "ozgcloud.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message",
"ozgcloud.osi.postfach.proxyapi.key=1234", "ozgcloud.osi.postfach.proxyapi.key=1234",
"ozgcloud.osi.postfach.proxyapi.realm=test-realm", "ozgcloud.osi.postfach.proxyapi.realm=test-realm",
"ozgcloud.osi.postfach.notification.mail-from=test@local.host", "ozgcloud.osi.postfach.notification.mail-from=test@local.host",
"grpc.client.ozgcloud-command-manager.address=in-process:test", "grpc.client.ozgcloud-command-manager.address=in-process:postfachitcase",
"grpc.client.command-manager.address=in-process:postfachitcase",
}) })
@WithMockUser @WithMockUser
@DataITCase @DataITCase
...@@ -96,8 +97,6 @@ class PostfachMailITCase { ...@@ -96,8 +97,6 @@ class PostfachMailITCase {
@MockBean @MockBean
private PolicyService policyService; private PolicyService policyService;
private MockRestServiceServer mockServer;
@Mock @Mock
private StreamObserver<GrpcFindPostfachMailsResponse> responseObserver; private StreamObserver<GrpcFindPostfachMailsResponse> responseObserver;
@Captor @Captor
...@@ -108,6 +107,7 @@ class PostfachMailITCase { ...@@ -108,6 +107,7 @@ class PostfachMailITCase {
@SpyBean @SpyBean
private CommandService commandService; private CommandService commandService;
private MockRestServiceServer mockServer;
@BeforeEach @BeforeEach
void prepareDatabase() { void prepareDatabase() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment