From 4654da998f4cd9390e2e1a02f4aa2bdf198893c0 Mon Sep 17 00:00:00 2001 From: "k.kedron" Date: Fri, 13 Mar 2020 17:15:14 +0100 Subject: Remove hardcoded timeout Added configuration for wait seconds for Cassandra connector. Also, increase the timeout value to prevent tests failed. Issue-ID: SDC-2759 Signed-off-by: Krystian Kedron Change-Id: I1008ecce98efdd8627ac3232b35fecd2a41a9c79 --- .../src/main/java/org/openecomp/sdc/be/config/Configuration.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common-app-api/src') diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java b/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java index 368a27ed8b..0bc0707822 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java @@ -739,6 +739,7 @@ public class Configuration extends BasicConfiguration { boolean ssl; String truststorePath; String truststorePassword; + int maxWaitSeconds = 120; public Integer getCassandraPort() { return cassandraPort != null ? cassandraPort : Configuration.CassandrConfig.CASSANDRA_DEFAULT_PORT; } @@ -832,6 +833,14 @@ public class Configuration extends BasicConfiguration { this.keySpaces = cassandraConfig; } + public int getMaxWaitSeconds() { + return maxWaitSeconds; + } + + public void setMaxWaitSeconds(int maxWaitSeconds) { + this.maxWaitSeconds = maxWaitSeconds; + } + public static class KeyspaceConfig { String name; -- cgit 1.2.3-korg