From 3e9b8cdc44e6d5ebb9d17cbdde645ff65a1c82dd Mon Sep 17 00:00:00 2001 From: rubij Date: Sun, 20 Oct 2024 17:12:55 +0200 Subject: [PATCH] SED-3515 fixed build --- keywords/java/step-library-commons/pom.xml | 19 ++++++++++++++++--- .../kw/system/DatabaseKeywordsTest.java | 8 ++++---- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/keywords/java/step-library-commons/pom.xml b/keywords/java/step-library-commons/pom.xml index cd0f0ad..577260e 100644 --- a/keywords/java/step-library-commons/pom.xml +++ b/keywords/java/step-library-commons/pom.xml @@ -18,9 +18,22 @@ ${exense-commons.version} - com.sun.mail - jakarta.mail - 2.0.1 + com.google.guava + guava + 27.1-jre + + + jakarta.mail + jakarta.mail-api + 2.1.3 + provided + + + + org.eclipse.angus + angus-mail + 2.0.3 + runtime diff --git a/keywords/java/step-library-kw-db/src/test/java/ch/exense/step/library/kw/system/DatabaseKeywordsTest.java b/keywords/java/step-library-kw-db/src/test/java/ch/exense/step/library/kw/system/DatabaseKeywordsTest.java index dcf9534..43da0f4 100644 --- a/keywords/java/step-library-kw-db/src/test/java/ch/exense/step/library/kw/system/DatabaseKeywordsTest.java +++ b/keywords/java/step-library-kw-db/src/test/java/ch/exense/step/library/kw/system/DatabaseKeywordsTest.java @@ -13,7 +13,7 @@ public class DatabaseKeywordsTest { - private ExecutionContext ctx = KeywordRunner.getExecutionContext(Map.of("root_Password","init"),DatabaseKeywords.class); + private ExecutionContext ctx = KeywordRunner.getExecutionContext(Map.of("root_Password","xWVK!2Xi23"),DatabaseKeywords.class); @After public void tearDown() { @@ -22,9 +22,9 @@ public void tearDown() { @Test public void test() throws Exception { - Output output = ctx.run("ExecuteQuery", "{\"ConnectionString\":\"jdbc:mysql://mysql-qa1.exense.ch/TEST\", " + - "\"Query\":\"SELECT * from mysqldataset\", " + + Output output = ctx.run("ExecuteQuery", "{\"ConnectionString\":\"jdbc:mysql://34.65.202.8/mysql\", " + + "\"Query\":\"SELECT * from user where user like ('root')\", " + "\"Username\":\"root\", \"ResultLimit\":\"1\"}"); - Assert.assertEquals("{\"ColumnCount\":2,\"ResultAsJson\":\"[{\\\"ID\\\":\\\"1\\\",\\\"VALUE\\\":\\\"value1\\\"}]\"}", output.getPayload().toString()); + Assert.assertTrue(output.getPayload().toString().contains("root")); } }