You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2019/11/20 14:08:17 UTC

[syncope] branch 2_1_X updated: [SYNCOPE-1513] Restoring console IT tests

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


View the commit online:
https://github.com/apache/syncope/commit/9f6d97a6847db08945a111d8a712fc13b9863d55

The following commit(s) were added to refs/heads/2_1_X by this push:
     new 9f6d97a  [SYNCOPE-1513] Restoring console IT tests
9f6d97a is described below

commit 9f6d97a6847db08945a111d8a712fc13b9863d55
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Wed Nov 20 15:08:03 2019 +0100

    [SYNCOPE-1513] Restoring console IT tests
---
 .../org/apache/syncope/client/console/SyncopeConsoleApplication.java | 5 ++---
 docker/console/src/main/resources/console.properties.template        | 2 --
 fit/core-reference/src/test/resources/console.properties             | 2 +-
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java b/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
index 0fd291f..b280430 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
@@ -77,9 +77,8 @@ public class SyncopeConsoleApplication extends AuthenticatedWebApplication {
     private static final String CONSOLE_PROPERTIES = "console.properties";
 
     public static final List<Locale> SUPPORTED_LOCALES = Collections.unmodifiableList(Arrays.asList(
-            new Locale[] {
-                Locale.ENGLISH, Locale.ITALIAN, new Locale("pt", "BR"), new Locale("ru"), Locale.JAPANESE
-            }));
+            Locale.ENGLISH, Locale.ITALIAN, new Locale("pt", "BR"), new Locale("ru"), Locale.JAPANESE
+    ));
 
     public static SyncopeConsoleApplication get() {
         return (SyncopeConsoleApplication) WebApplication.get();
diff --git a/docker/console/src/main/resources/console.properties.template b/docker/console/src/main/resources/console.properties.template
index 29490cc..fe3ecbc 100644
--- a/docker/console/src/main/resources/console.properties.template
+++ b/docker/console/src/main/resources/console.properties.template
@@ -16,8 +16,6 @@
 # under the License.
 console.directory=/etc/apache-syncope
 
-site=http://syncope.apache.org
-
 anonymousUser=${anonymousUser}
 anonymousKey=${anonymousKey}
 
diff --git a/fit/core-reference/src/test/resources/console.properties b/fit/core-reference/src/test/resources/console.properties
index 28e1822..fe998b2 100644
--- a/fit/core-reference/src/test/resources/console.properties
+++ b/fit/core-reference/src/test/resources/console.properties
@@ -48,7 +48,7 @@ topology.corePoolSize=50
 topology.maxPoolSize=100
 topology.queueCapacity=10
 
-csrf=true
+csrf=false
 
 security.headers.X-XSS-Protection=1; mode=block
 security.headers.Strict-Transport-Security=max-age=31536000; includeSubDomains; preload