[java-idp-integration-tests] 02/05: Avoid duplicate IP addresses in access-control.xml

Tom Zeller tzeller at dragonacea.biz
Wed Jun 9 18:54:10 UTC 2021


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch main
in repository java-idp-integration-tests.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=e9c7b30fa25fcfeff3beb30cc55e40eb29614ce1

commit e9c7b30fa25fcfeff3beb30cc55e40eb29614ce1
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Wed Jun 9 13:33:50 2021 -0500

    Avoid duplicate IP addresses in access-control.xml
---
 src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
index 5fbada8..bcfd9a7 100644
--- a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
@@ -35,9 +35,11 @@ import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Iterator;
+import java.util.LinkedHashSet;
 import java.util.List;
 import java.util.Properties;
 import java.util.ServiceLoader;
+import java.util.Set;
 import java.util.SortedSet;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
@@ -284,7 +286,7 @@ public abstract class BaseIntegrationTest
     @Nonnull protected boolean useSecureBaseURL = true;
 
     /** Client IP range to allow access from. Defaults to "127.0.0.1/32". */
-    @Nonnull protected List<String> clientIPRanges = new ArrayList<>(Arrays.asList("127.0.0.1/32"));
+    @Nonnull protected Set<String> clientIPRanges = new LinkedHashSet(Arrays.asList("127.0.0.1/32"));
 
     /** Path to idp.home. */
     @NonnullAfterInit protected Path pathToIdPHome;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list