From 7e84b9b583b1e743eda486a3f2274695ea84814e Mon Sep 17 00:00:00 2001 From: Pavel Vetokhin Date: Mon, 4 Mar 2024 21:53:32 +0300 Subject: [PATCH] Invoke dao --- .../bezmen/core/SepulkaServiceImpl.java | 1 + .../bezmen/core/SepulkaServiceImpl.kt | 1 + baker/ansible/tasks/product/check.yaml | 2 +- test/e2e/pom.xml | 20 ++++++++++++++++++- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/app/sepuling-java/src/main/java/smecalculus/bezmen/core/SepulkaServiceImpl.java b/app/sepuling-java/src/main/java/smecalculus/bezmen/core/SepulkaServiceImpl.java index 1e931d6a..44206962 100644 --- a/app/sepuling-java/src/main/java/smecalculus/bezmen/core/SepulkaServiceImpl.java +++ b/app/sepuling-java/src/main/java/smecalculus/bezmen/core/SepulkaServiceImpl.java @@ -36,6 +36,7 @@ public RegistrationResponse register(RegistrationRequest request) { @Override public ViewResponse view(ViewRequest request) { + dao.getBy(request.externalId()); return new ViewResponse(request.externalId()); } } diff --git a/app/sepuling-kotlin/src/main/kotlin/smecalculus/bezmen/core/SepulkaServiceImpl.kt b/app/sepuling-kotlin/src/main/kotlin/smecalculus/bezmen/core/SepulkaServiceImpl.kt index da53937d..76d98a8a 100644 --- a/app/sepuling-kotlin/src/main/kotlin/smecalculus/bezmen/core/SepulkaServiceImpl.kt +++ b/app/sepuling-kotlin/src/main/kotlin/smecalculus/bezmen/core/SepulkaServiceImpl.kt @@ -26,6 +26,7 @@ class SepulkaServiceImpl( } override fun view(request: ViewRequest): ViewResponse { + dao.getBy(request.externalId) return ViewResponse(request.externalId) } } diff --git a/baker/ansible/tasks/product/check.yaml b/baker/ansible/tasks/product/check.yaml index e805b93c..95e0bb78 100644 --- a/baker/ansible/tasks/product/check.yaml +++ b/baker/ansible/tasks/product/check.yaml @@ -23,7 +23,7 @@ ansible.builtin.command: cmd: >- mvn clean test - --activate-profiles {{ devenv }} + --activate-profiles {{ devenv }},{{ focus }} --no-snapshot-updates --batch-mode --also-make diff --git a/test/e2e/pom.xml b/test/e2e/pom.xml index 9f0bc5fc..479de06f 100644 --- a/test/e2e/pom.xml +++ b/test/e2e/pom.xml @@ -26,6 +26,24 @@ + + + api + + true + + + FuncSuite + + + + resilience + + ResilienceSuite + + + + @@ -33,7 +51,7 @@ maven-surefire-plugin ${skipTests} - smecalculus.bezmen.FuncSuite + smecalculus.bezmen.${suiteName} src/test/resources/testing.properties